From ede18be08e74f1798e9af10706c3cfeaa08067ad Mon Sep 17 00:00:00 2001 From: Denis Krivenko Date: Wed, 1 Feb 2023 10:19:28 +0100 Subject: [PATCH] feat(helm): Make Chart.AppVersion default value for image tag (#22854) --- helm/superset/Chart.yaml | 4 ++-- helm/superset/README.md | 4 ++-- helm/superset/templates/deployment-beat.yaml | 2 +- helm/superset/templates/deployment-flower.yaml | 2 +- helm/superset/templates/deployment-worker.yaml | 2 +- helm/superset/templates/deployment.yaml | 2 +- helm/superset/templates/init-job.yaml | 2 +- helm/superset/values.yaml | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/helm/superset/Chart.yaml b/helm/superset/Chart.yaml index 2de0f2636b..0525fc627e 100644 --- a/helm/superset/Chart.yaml +++ b/helm/superset/Chart.yaml @@ -15,7 +15,7 @@ # limitations under the License. # apiVersion: v2 -appVersion: "1.0" +appVersion: "2.0.1" description: Apache Superset is a modern, enterprise-ready business intelligence web application name: superset icon: https://artifacthub.io/image/68c1d717-0e97-491f-b046-754e46f46922@2x @@ -29,7 +29,7 @@ maintainers: - name: craig-rueda email: craig@craigrueda.com url: https://github.com/craig-rueda -version: 0.8.4 +version: 0.8.5 dependencies: - name: postgresql version: 12.1.6 diff --git a/helm/superset/README.md b/helm/superset/README.md index d777b8ba45..ed0d818fc3 100644 --- a/helm/superset/README.md +++ b/helm/superset/README.md @@ -23,7 +23,7 @@ NOTE: This file is generated by helm-docs: https://github.com/norwoodj/helm-docs # superset -![Version: 0.8.4](https://img.shields.io/badge/Version-0.8.4-informational?style=flat-square) +![Version: 0.8.5](https://img.shields.io/badge/Version-0.8.5-informational?style=flat-square) Apache Superset is a modern, enterprise-ready business intelligence web application @@ -70,7 +70,7 @@ helm install my-superset superset/superset | hostAliases | list | `[]` | Custom hostAliases for all superset pods # https://kubernetes.io/docs/tasks/network/customize-hosts-file-for-pods/ | | image.pullPolicy | string | `"IfNotPresent"` | | | image.repository | string | `"apache/superset"` | | -| image.tag | string | `"latest"` | | +| image.tag | string | `""` | | | imagePullSecrets | list | `[]` | | | ingress.annotations | object | `{}` | | | ingress.enabled | bool | `false` | | diff --git a/helm/superset/templates/deployment-beat.yaml b/helm/superset/templates/deployment-beat.yaml index a69b2b5b4a..72de7ab204 100644 --- a/helm/superset/templates/deployment-beat.yaml +++ b/helm/superset/templates/deployment-beat.yaml @@ -77,7 +77,7 @@ spec: {{- end }} containers: - name: "{{ .Chart.Name }}-celerybeat" - image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} {{- if .Values.supersetCeleryBeat.containerSecurityContext }} securityContext: {{- toYaml .Values.supersetCeleryBeat.containerSecurityContext | nindent 12 }} diff --git a/helm/superset/templates/deployment-flower.yaml b/helm/superset/templates/deployment-flower.yaml index 1961ee12b2..aefdf0f7de 100644 --- a/helm/superset/templates/deployment-flower.yaml +++ b/helm/superset/templates/deployment-flower.yaml @@ -67,7 +67,7 @@ spec: {{- end }} containers: - name: "{{ .Chart.Name }}-flower" - image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} {{- if .Values.supersetCeleryFlower.containerSecurityContext }} securityContext: {{- toYaml .Values.supersetCeleryFlower.containerSecurityContext | nindent 12 }} diff --git a/helm/superset/templates/deployment-worker.yaml b/helm/superset/templates/deployment-worker.yaml index 33023c93ff..2098064b00 100644 --- a/helm/superset/templates/deployment-worker.yaml +++ b/helm/superset/templates/deployment-worker.yaml @@ -82,7 +82,7 @@ spec: {{- end }} containers: - name: {{ .Chart.Name }} - image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} {{- if .Values.supersetWorker.containerSecurityContext }} securityContext: {{- toYaml .Values.supersetWorker.containerSecurityContext | nindent 12 }} diff --git a/helm/superset/templates/deployment.yaml b/helm/superset/templates/deployment.yaml index 278326e624..6b2a3933ea 100644 --- a/helm/superset/templates/deployment.yaml +++ b/helm/superset/templates/deployment.yaml @@ -85,7 +85,7 @@ spec: {{- end }} containers: - name: {{ .Chart.Name }} - image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} {{- if .Values.supersetNode.containerSecurityContext }} securityContext: {{- toYaml .Values.supersetNode.containerSecurityContext | nindent 12 }} diff --git a/helm/superset/templates/init-job.yaml b/helm/superset/templates/init-job.yaml index 96b063ff4f..8555253881 100644 --- a/helm/superset/templates/init-job.yaml +++ b/helm/superset/templates/init-job.yaml @@ -46,7 +46,7 @@ spec: {{- end }} containers: - name: {{ template "superset.name" . }}-init-db - image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" {{- if or .Values.extraEnv .Values.extraEnvRaw }} env: {{- range $key, $value := .Values.extraEnv }} diff --git a/helm/superset/values.yaml b/helm/superset/values.yaml index ff5dd0ed0a..fc64ad8052 100644 --- a/helm/superset/values.yaml +++ b/helm/superset/values.yaml @@ -183,7 +183,7 @@ extraConfigMountPath: "/app/configs" image: repository: apache/superset - tag: latest + tag: "" pullPolicy: IfNotPresent imagePullSecrets: []