Added: --packages-with-index parameter (#148)
* Added: --packages-with-index parameter Signed-off-by: Valeriano Manassero <14011549+valeriano-manassero@users.noreply.github.com> --------- Signed-off-by: Valeriano Manassero <14011549+valeriano-manassero@users.noreply.github.com>
This commit is contained in:
@@ -49,6 +49,7 @@ main() {
|
||||
local skip_packaging=
|
||||
local skip_existing=
|
||||
local mark_as_latest=true
|
||||
local packages_with_index=false
|
||||
|
||||
parse_command_line "$@"
|
||||
|
||||
@@ -194,6 +195,12 @@ parse_command_line() {
|
||||
shift
|
||||
fi
|
||||
;;
|
||||
--packages-with-index)
|
||||
if [[ -n "${2:-}" ]]; then
|
||||
packages_with_index="$2"
|
||||
shift
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
break
|
||||
;;
|
||||
@@ -295,7 +302,9 @@ release_charts() {
|
||||
if [[ -n "$config" ]]; then
|
||||
args+=(--config "$config")
|
||||
fi
|
||||
if [[ -n "$skip_existing" ]]; then
|
||||
if [[ -n "$packages_with_index" ]]; then
|
||||
args+=(--packages-with-index --push --skip-existing)
|
||||
elif [[ -n "$skip_existing" ]]; then
|
||||
args+=(--skip-existing)
|
||||
fi
|
||||
if [[ "$mark_as_latest" = false ]]; then
|
||||
@@ -311,6 +320,9 @@ update_index() {
|
||||
if [[ -n "$config" ]]; then
|
||||
args+=(--config "$config")
|
||||
fi
|
||||
if [[ -n "$packages_with_index" ]]; then
|
||||
args+=(--packages-with-index --index-path .)
|
||||
fi
|
||||
|
||||
echo 'Updating charts repo index...'
|
||||
cr index "${args[@]}"
|
||||
|
||||
Reference in New Issue
Block a user