This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git
The following commit(s) were added to refs/heads/main by this push:
new 53f8b742 Helm chart: explicitly include namespace in created resources
(#351)
53f8b742 is described below
commit 53f8b7420c5c3e9fe702c80dfc915ebaa9389a57
Author: Alexandre Dutra <[email protected]>
AuthorDate: Fri Oct 11 17:22:12 2024 +0200
Helm chart: explicitly include namespace in created resources (#351)
---
helm/polaris/templates/configmap.yaml | 1 +
helm/polaris/templates/deployment.yaml | 1 +
helm/polaris/templates/hpa.yaml | 1 +
helm/polaris/templates/ingress.yaml | 1 +
helm/polaris/templates/job.yaml | 1 +
helm/polaris/templates/service.yaml | 1 +
helm/polaris/templates/serviceaccount.yaml | 1 +
helm/polaris/templates/tests/test-connection.yaml | 1 +
8 files changed, 8 insertions(+)
diff --git a/helm/polaris/templates/configmap.yaml
b/helm/polaris/templates/configmap.yaml
index 358e2edf..97bc983e 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 b36b03a5..b32fc8ba 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 96e44f98..a49c406d 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 a9bbd989..8fffc3b1 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 4abff14b..79d51bf2 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 3055bcdd..f3281ee0 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 7cc8bacc..f05df09c 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 e7a243f0..50f49939 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 }}