This is an automated email from the ASF dual-hosted git repository.
craigrueda pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 53ed8f2d5a feat(helm): add `metadata namespace` (#22020)
53ed8f2d5a is described below
commit 53ed8f2d5a64a655cf508d38f1b617df435d3628
Author: waynewenswag <[email protected]>
AuthorDate: Thu Nov 10 02:41:40 2022 +0800
feat(helm): add `metadata namespace` (#22020)
---
helm/superset/Chart.yaml | 2 +-
helm/superset/README.md | 2 +-
helm/superset/templates/configmap-superset.yaml | 1 +
helm/superset/templates/deployment-beat.yaml | 1 +
helm/superset/templates/deployment-flower.yaml | 1 +
helm/superset/templates/deployment-worker.yaml | 1 +
helm/superset/templates/deployment-ws.yaml | 1 +
helm/superset/templates/deployment.yaml | 1 +
helm/superset/templates/ingress.yaml | 1 +
helm/superset/templates/init-job.yaml | 1 +
helm/superset/templates/secret-env.yaml | 1 +
helm/superset/templates/secret-superset-config.yaml | 1 +
helm/superset/templates/secret-ws.yaml | 1 +
helm/superset/templates/service-account.yaml | 1 +
helm/superset/templates/service.yaml | 3 +++
15 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/helm/superset/Chart.yaml b/helm/superset/Chart.yaml
index cfe3d3fdd9..7394d150ca 100644
--- a/helm/superset/Chart.yaml
+++ b/helm/superset/Chart.yaml
@@ -29,7 +29,7 @@ maintainers:
- name: craig-rueda
email: [email protected]
url: https://github.com/craig-rueda
-version: 0.7.6
+version: 0.7.7
dependencies:
- name: postgresql
version: 11.1.22
diff --git a/helm/superset/README.md b/helm/superset/README.md
index 5b704ab78a..3564c205f5 100644
--- a/helm/superset/README.md
+++ b/helm/superset/README.md
@@ -19,7 +19,7 @@
# superset
-
+
Apache Superset is a modern, enterprise-ready business intelligence web
application
diff --git a/helm/superset/templates/configmap-superset.yaml
b/helm/superset/templates/configmap-superset.yaml
index a7d7b09339..eb8564619b 100644
--- a/helm/superset/templates/configmap-superset.yaml
+++ b/helm/superset/templates/configmap-superset.yaml
@@ -24,6 +24,7 @@ metadata:
chart: {{ template "superset.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
+ namespace: {{ .Release.Namespace }}
data:
{{- range $path, $config := .Values.extraConfigs }}
{{ $path }}: |
diff --git a/helm/superset/templates/deployment-beat.yaml
b/helm/superset/templates/deployment-beat.yaml
index 2988c77553..01e66a83b6 100644
--- a/helm/superset/templates/deployment-beat.yaml
+++ b/helm/superset/templates/deployment-beat.yaml
@@ -28,6 +28,7 @@ metadata:
annotations:
{{- toYaml .Values.supersetCeleryBeat.deploymentAnnotations | nindent 4 }}
{{- end }}
+ namespace: {{ .Release.Namespace }}
spec:
# This must be a singleton
replicas: 1
diff --git a/helm/superset/templates/deployment-flower.yaml
b/helm/superset/templates/deployment-flower.yaml
index 35b31cf55e..197aa5822f 100644
--- a/helm/superset/templates/deployment-flower.yaml
+++ b/helm/superset/templates/deployment-flower.yaml
@@ -28,6 +28,7 @@ metadata:
annotations:
{{- toYaml .Values.supersetCeleryFlower.deploymentAnnotations | nindent 4
}}
{{- end }}
+ namespace: {{ .Release.Namespace }}
spec:
replicas: {{ .Values.supersetCeleryFlower.replicaCount }}
selector:
diff --git a/helm/superset/templates/deployment-worker.yaml
b/helm/superset/templates/deployment-worker.yaml
index c2e924438e..06b52a7c7c 100644
--- a/helm/superset/templates/deployment-worker.yaml
+++ b/helm/superset/templates/deployment-worker.yaml
@@ -27,6 +27,7 @@ metadata:
annotations:
{{- toYaml .Values.supersetWorker.deploymentAnnotations | nindent 4 }}
{{- end }}
+ namespace: {{ .Release.Namespace }}
spec:
replicas: {{ .Values.supersetWorker.replicaCount }}
selector:
diff --git a/helm/superset/templates/deployment-ws.yaml
b/helm/superset/templates/deployment-ws.yaml
index 735edc8330..1713ee74c5 100644
--- a/helm/superset/templates/deployment-ws.yaml
+++ b/helm/superset/templates/deployment-ws.yaml
@@ -28,6 +28,7 @@ metadata:
annotations:
{{- toYaml .Values.supersetWebsockets.deploymentAnnotations | nindent 4 }}
{{- end }}
+ namespace: {{ .Release.Namespace }}
spec:
replicas: {{ .Values.supersetWebsockets.replicaCount }}
selector:
diff --git a/helm/superset/templates/deployment.yaml
b/helm/superset/templates/deployment.yaml
index a02c9cf293..d668cb7a0b 100644
--- a/helm/superset/templates/deployment.yaml
+++ b/helm/superset/templates/deployment.yaml
@@ -27,6 +27,7 @@ metadata:
annotations:
{{- toYaml .Values.supersetNode.deploymentAnnotations | nindent 4 }}
{{- end }}
+ namespace: {{ .Release.Namespace }}
spec:
replicas: {{ .Values.supersetNode.replicaCount }}
{{- if .Values.supersetNode.strategy }}
diff --git a/helm/superset/templates/ingress.yaml
b/helm/superset/templates/ingress.yaml
index c0df1e90e6..d166149c00 100644
--- a/helm/superset/templates/ingress.yaml
+++ b/helm/superset/templates/ingress.yaml
@@ -29,6 +29,7 @@ metadata:
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
+ namespace: {{ .Release.Namespace }}
spec:
{{- if .Values.ingress.ingressClassName }}
ingressClassName: {{ .Values.ingress.ingressClassName }}
diff --git a/helm/superset/templates/init-job.yaml
b/helm/superset/templates/init-job.yaml
index 878e930958..96b063ff4f 100644
--- a/helm/superset/templates/init-job.yaml
+++ b/helm/superset/templates/init-job.yaml
@@ -22,6 +22,7 @@ metadata:
annotations:
"helm.sh/hook": post-install,post-upgrade
"helm.sh/hook-delete-policy": "before-hook-creation"
+ namespace: {{ .Release.Namespace }}
spec:
template:
metadata:
diff --git a/helm/superset/templates/secret-env.yaml
b/helm/superset/templates/secret-env.yaml
index 4126507324..0164d96a8c 100644
--- a/helm/superset/templates/secret-env.yaml
+++ b/helm/superset/templates/secret-env.yaml
@@ -23,6 +23,7 @@ metadata:
chart: {{ template "superset.chart" . }}
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
+ namespace: {{ .Release.Namespace }}
type: Opaque
stringData:
REDIS_HOST: {{ tpl .Values.supersetNode.connections.redis_host . | quote }}
diff --git a/helm/superset/templates/secret-superset-config.yaml
b/helm/superset/templates/secret-superset-config.yaml
index ddf0befcd2..c1f4102858 100644
--- a/helm/superset/templates/secret-superset-config.yaml
+++ b/helm/superset/templates/secret-superset-config.yaml
@@ -23,6 +23,7 @@ metadata:
chart: {{ template "superset.chart" . }}
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
+ namespace: {{ .Release.Namespace }}
type: Opaque
stringData:
superset_config.py: |
diff --git a/helm/superset/templates/secret-ws.yaml
b/helm/superset/templates/secret-ws.yaml
index 0e48e0377e..c3ac55d96c 100644
--- a/helm/superset/templates/secret-ws.yaml
+++ b/helm/superset/templates/secret-ws.yaml
@@ -24,6 +24,7 @@ metadata:
chart: {{ template "superset.chart" . }}
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
+ namespace: {{ .Release.Namespace }}
type: Opaque
stringData:
config.json: |
diff --git a/helm/superset/templates/service-account.yaml
b/helm/superset/templates/service-account.yaml
index 8d1171fad4..994ad8333a 100755
--- a/helm/superset/templates/service-account.yaml
+++ b/helm/superset/templates/service-account.yaml
@@ -31,4 +31,5 @@ metadata:
{{- if .Values.serviceAccount.annotations }}
annotations: {{- toYaml .Values.serviceAccount.annotations | nindent 4 }}
{{- end }}
+ namespace: {{ .Release.Namespace }}
{{- end -}}
diff --git a/helm/superset/templates/service.yaml
b/helm/superset/templates/service.yaml
index 431d03704e..6ac950d1da 100644
--- a/helm/superset/templates/service.yaml
+++ b/helm/superset/templates/service.yaml
@@ -27,6 +27,7 @@ metadata:
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
+ namespace: {{ .Release.Namespace }}
spec:
type: {{ .Values.service.type }}
ports:
@@ -55,6 +56,7 @@ metadata:
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
+ namespace: {{ .Release.Namespace }}
spec:
type: {{ .Values.supersetCeleryFlower.service.type }}
ports:
@@ -84,6 +86,7 @@ metadata:
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
+ namespace: {{ .Release.Namespace }}
spec:
type: {{ .Values.supersetWebsockets.service.type }}
ports: