Prechádzať zdrojové kódy

Reduce time needed to update chart dependencies (#7575)

Signed-off-by: juan131 <juanariza@vmware.com>
Juan Ariza Toledano 4 rokov pred
rodič
commit
da8821f431
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 2 1
      githooks/pre-push/helm-lint

+ 2 - 1
githooks/pre-push/helm-lint

@@ -15,7 +15,8 @@ for chart_name in $( cut -d'/' -f1,2 <<< "$files_to_push" | uniq ); do
     # Avoid running 'helm lint|install' when modified dirs are not charts
     if [[ $chart_name = bitnami/* ]]; then
         printf '\033[01;33mUpdating dependencies for %s with helm dep update:\n\033[0m' "$chart_name"
-        helm dep update "$chart_name"
+        helm repo update bitnami
+        helm dep update --skip-refresh "$chart_name"
 
         printf '\033[01;33mValidating %s with helm lint:\n\033[0m' "$chart_name"
         if ! run_helm_lint_chart "$chart_name"; then