diff --git a/helm/polaris/templates/configmap.yaml b/helm/polaris/templates/configmap.yaml index 358e2edfb..97bc983e5 100644 --- a/helm/polaris/templates/configmap.yaml +++ b/helm/polaris/templates/configmap.yaml @@ -21,6 +21,7 @@ apiVersion: v1 kind: ConfigMap metadata: name: {{ include "polaris.fullname" . }} + namespace: {{ .Release.Namespace }} labels: {{- include "polaris.labels" . | nindent 4 }} {{- if .Values.configMapLabels }} diff --git a/helm/polaris/templates/deployment.yaml b/helm/polaris/templates/deployment.yaml index b36b03a54..b32fc8ba8 100644 --- a/helm/polaris/templates/deployment.yaml +++ b/helm/polaris/templates/deployment.yaml @@ -21,6 +21,7 @@ apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "polaris.fullname" . }} + namespace: {{ .Release.Namespace }} labels: {{- include "polaris.labels" . | nindent 4 }} {{- if .Values.podLabels }} diff --git a/helm/polaris/templates/hpa.yaml b/helm/polaris/templates/hpa.yaml index 96e44f982..a49c406d2 100644 --- a/helm/polaris/templates/hpa.yaml +++ b/helm/polaris/templates/hpa.yaml @@ -22,6 +22,7 @@ apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: {{ include "polaris.fullname" . }} + namespace: {{ .Release.Namespace }} labels: {{- include "polaris.labels" . | nindent 4 }} spec: diff --git a/helm/polaris/templates/ingress.yaml b/helm/polaris/templates/ingress.yaml index a9bbd9896..8fffc3b19 100644 --- a/helm/polaris/templates/ingress.yaml +++ b/helm/polaris/templates/ingress.yaml @@ -25,6 +25,7 @@ apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: {{ $fullName }} + namespace: {{ .Release.Namespace }} labels: {{- include "polaris.labels" . | nindent 4 }} annotations: diff --git a/helm/polaris/templates/job.yaml b/helm/polaris/templates/job.yaml index 4abff14b5..79d51bf2f 100644 --- a/helm/polaris/templates/job.yaml +++ b/helm/polaris/templates/job.yaml @@ -22,6 +22,7 @@ apiVersion: batch/v1 kind: Job metadata: name: {{ include "polaris.fullname" . }} + namespace: {{ .Release.Namespace }} labels: {{- include "polaris.labels" . | nindent 4 }} {{- if .Values.podLabels }} diff --git a/helm/polaris/templates/service.yaml b/helm/polaris/templates/service.yaml index 3055bcdd3..f3281ee08 100644 --- a/helm/polaris/templates/service.yaml +++ b/helm/polaris/templates/service.yaml @@ -21,6 +21,7 @@ apiVersion: v1 kind: Service metadata: name: {{ include "polaris.fullname" . }} + namespace: {{ .Release.Namespace }} labels: {{- include "polaris.labels" . | nindent 4 }} annotations: diff --git a/helm/polaris/templates/serviceaccount.yaml b/helm/polaris/templates/serviceaccount.yaml index 7cc8bacc9..f05df09c6 100644 --- a/helm/polaris/templates/serviceaccount.yaml +++ b/helm/polaris/templates/serviceaccount.yaml @@ -22,6 +22,7 @@ apiVersion: v1 kind: ServiceAccount metadata: name: {{ include "polaris.serviceAccountName" . }} + namespace: {{ .Release.Namespace }} labels: {{- include "polaris.labels" . | nindent 4 }} annotations: diff --git a/helm/polaris/templates/tests/test-connection.yaml b/helm/polaris/templates/tests/test-connection.yaml index e7a243f09..50f49939f 100644 --- a/helm/polaris/templates/tests/test-connection.yaml +++ b/helm/polaris/templates/tests/test-connection.yaml @@ -21,6 +21,7 @@ apiVersion: v1 kind: Pod metadata: name: "{{ include "polaris.fullname" . }}-test-connection" + namespace: {{ .Release.Namespace }} labels: helm.sh/chart: {{ include "polaris.chart" . }} app.kubernetes.io/managed-by: {{ .Release.Service }}