From 08f9a87e664d4523975551c9808cbb1d1dc9c3bb Mon Sep 17 00:00:00 2001 From: Ye Cao Date: Tue, 19 Sep 2023 20:43:54 +0800 Subject: [PATCH] Delete the latest tag so that the helm chart use the Chart.AppVersion as the image tag (#1572) Fixes #1571 Signed-off-by: Ye Cao --- charts/vineyard-operator/values.yaml | 1 - k8s/Makefile | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/vineyard-operator/values.yaml b/charts/vineyard-operator/values.yaml index e743095d..75154612 100644 --- a/charts/vineyard-operator/values.yaml +++ b/charts/vineyard-operator/values.yaml @@ -23,7 +23,6 @@ controllerManager: manager: image: repository: vineyardcloudnative/vineyard-operator - tag: latest imagePullPolicy: IfNotPresent resources: limits: diff --git a/k8s/Makefile b/k8s/Makefile index ab232e5e..ad2b09ad 100644 --- a/k8s/Makefile +++ b/k8s/Makefile @@ -287,5 +287,6 @@ generate-helm-chart: helmify kustomize cd ../charts && $(KUSTOMIZE) build ../k8s/config/default | $(HELMIFY) --cert-manager-as-subchart vineyard-operator && \ sed -i 's/\/var\/run\/vineyard-kubernetes\/{{.Namespace}}\/{{.Name}}/\/var\/run\/vineyard-kubernetes\/{{ \"{{.Namespace}}\/{{.Name}}\" }}/g' \ vineyard-operator/templates/vineyardd-crd.yaml && \ + sed -i '/tag: latest/d' vineyard-operator/values.yaml && \ sed -i 's/certManager/cert-manager/g' vineyard-operator/values.yaml && \ sed -i '4i\ extraArgs:\n - --enable-certificate-owner-ref=true' vineyard-operator/values.yaml