From 960452d7e6d10ec96a0edf58e84c98210d7caf6c Mon Sep 17 00:00:00 2001 From: Igor Nikolenko Date: Mon, 27 May 2024 19:10:50 +0200 Subject: [PATCH 1/5] Update cr.sh Signed-off-by: Igor Nikolenko --- cr.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cr.sh b/cr.sh index 4897b65..fe7521d 100755 --- a/cr.sh +++ b/cr.sh @@ -315,6 +315,11 @@ package_chart() { } release_charts() { + if [[ -n "$skip_upload" ]]; then + echo "Skipping index upload..." + return + fi + local args=(-o "$owner" -r "$repo" -c "$(git rev-parse HEAD)") if [[ -n "$config" ]]; then args+=(--config "$config") From 1364cd94512b252669f98fac4954345e57f5ac84 Mon Sep 17 00:00:00 2001 From: Igor Nikolenko Date: Wed, 9 Oct 2024 23:46:10 +0200 Subject: [PATCH 2/5] fixed output Signed-off-by: Igor Nikolenko --- cr.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cr.sh b/cr.sh index fe7521d..689bbe5 100755 --- a/cr.sh +++ b/cr.sh @@ -316,7 +316,7 @@ package_chart() { release_charts() { if [[ -n "$skip_upload" ]]; then - echo "Skipping index upload..." + echo "Skipping release upload..." return fi From c05f6664f5bc3c80aff2713eff1dbaf5116ffb1e Mon Sep 17 00:00:00 2001 From: Igor Nikolenko Date: Fri, 15 Nov 2024 14:07:05 +0100 Subject: [PATCH 3/5] added update dependencies for modified helm charts Signed-off-by: Igor Nikolenko --- cr.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/cr.sh b/cr.sh index 689bbe5..2894833 100755 --- a/cr.sh +++ b/cr.sh @@ -84,6 +84,7 @@ main() { for chart in "${changed_charts[@]}"; do if [[ -d "$chart" ]]; then + helm dependencies build "$chart" package_chart "$chart" else echo "Nothing to do. No chart changes detected." From fe2503fadce47237b9198cce04e8831b01b3e8b6 Mon Sep 17 00:00:00 2001 From: Igor Nikolenko Date: Fri, 15 Nov 2024 16:11:13 +0100 Subject: [PATCH 4/5] explicitly add bitnami registry Signed-off-by: Igor Nikolenko --- cr.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/cr.sh b/cr.sh index 2894833..eed7d22 100755 --- a/cr.sh +++ b/cr.sh @@ -84,6 +84,7 @@ main() { for chart in "${changed_charts[@]}"; do if [[ -d "$chart" ]]; then + helm repo add bitnami https://charts.bitnami.com/bitnami helm dependencies build "$chart" package_chart "$chart" else From 10d03cc3805b7b40ac8a0f03893e06051c8bb0de Mon Sep 17 00:00:00 2001 From: Igor Nikolenko Date: Fri, 15 Nov 2024 16:34:18 +0100 Subject: [PATCH 5/5] testing withoud explicit dependency Signed-off-by: Igor Nikolenko --- cr.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cr.sh b/cr.sh index eed7d22..b6ff1e3 100755 --- a/cr.sh +++ b/cr.sh @@ -85,7 +85,7 @@ main() { for chart in "${changed_charts[@]}"; do if [[ -d "$chart" ]]; then helm repo add bitnami https://charts.bitnami.com/bitnami - helm dependencies build "$chart" + # helm dependencies build "$chart" package_chart "$chart" else echo "Nothing to do. No chart changes detected."