From 1ea29a772ecd3bc51ef97a6ae5de7fb3d1004225 Mon Sep 17 00:00:00 2001 From: wangyang Date: Wed, 15 Mar 2023 14:41:25 +0800 Subject: [PATCH] The mirror installation version of the main branch is the latest, and it is more reasonable to use the Always policy for mirror download Signed-off-by: wangyang --- hack/run-e2e-kind.sh | 1 + installer/helm/chart/volcano/values.yaml | 2 +- installer/volcano-development.yaml | 8 ++++---- installer/volcano-monitoring-latest.yaml | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/hack/run-e2e-kind.sh b/hack/run-e2e-kind.sh index 374190cfa2..35ffbffa52 100755 --- a/hack/run-e2e-kind.sh +++ b/hack/run-e2e-kind.sh @@ -55,6 +55,7 @@ function install-volcano { echo "Install volcano chart with crd version $crd_version" helm install ${CLUSTER_NAME} installer/helm/chart/volcano --namespace volcano-system --kubeconfig ${KUBECONFIG} \ + --set basic.image_pull_policy=IfNotPresent \ --set basic.image_tag_version=${TAG} \ --set basic.scheduler_config_file=config/volcano-scheduler-ci.conf \ --set basic.crd_version=${crd_version} \ diff --git a/installer/helm/chart/volcano/values.yaml b/installer/helm/chart/volcano/values.yaml index d8bfc58b20..7e7d464ef1 100644 --- a/installer/helm/chart/volcano/values.yaml +++ b/installer/helm/chart/volcano/values.yaml @@ -6,7 +6,7 @@ basic: admission_config_file: "config/volcano-admission.conf" scheduler_config_file: "config/volcano-scheduler.conf" image_pull_secret: "" - image_pull_policy: "IfNotPresent" + image_pull_policy: "Always" image_tag_version: "latest" admission_port: 8443 custom: diff --git a/installer/volcano-development.yaml b/installer/volcano-development.yaml index a4a67d7b48..051e0e4641 100644 --- a/installer/volcano-development.yaml +++ b/installer/volcano-development.yaml @@ -151,7 +151,7 @@ spec: - -v=4 - 2>&1 image: volcanosh/vc-webhook-manager:latest - imagePullPolicy: IfNotPresent + imagePullPolicy: Always name: admission volumeMounts: - mountPath: /admission.local.config/certificates @@ -186,7 +186,7 @@ spec: containers: - name: main image: volcanosh/vc-webhook-manager:latest - imagePullPolicy: IfNotPresent + imagePullPolicy: Always command: ["./gen-admission-secret.sh", "--service", "volcano-admission-service", "--namespace", "volcano-system", "--secret", "volcano-admission-secret"] --- @@ -8616,7 +8616,7 @@ spec: - --enable-healthz=true - -v=4 - 2>&1 - imagePullPolicy: IfNotPresent + imagePullPolicy: Always --- # Source: volcano/templates/scheduler.yaml apiVersion: v1 @@ -8779,7 +8779,7 @@ spec: - --enable-metrics=true - -v=3 - 2>&1 - imagePullPolicy: IfNotPresent + imagePullPolicy: Always volumeMounts: - name: scheduler-config mountPath: /volcano.scheduler diff --git a/installer/volcano-monitoring-latest.yaml b/installer/volcano-monitoring-latest.yaml index 017b53f97c..eb85b7961c 100644 --- a/installer/volcano-monitoring-latest.yaml +++ b/installer/volcano-monitoring-latest.yaml @@ -433,7 +433,7 @@ spec: spec: containers: - image: quay.io/coreos/kube-state-metrics:v1.9.7 - imagePullPolicy: IfNotPresent + imagePullPolicy: Always name: kube-state-metrics ports: - name: http-metrics