Skip to content

Commit

Permalink
Helm chart: explicitly include namespace in created resources (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
adutra authored Oct 11, 2024
1 parent 980d106 commit 53f8b74
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions helm/polaris/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions helm/polaris/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions helm/polaris/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "polaris.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "polaris.labels" . | nindent 4 }}
spec:
Expand Down
1 change: 1 addition & 0 deletions helm/polaris/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $fullName }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "polaris.labels" . | nindent 4 }}
annotations:
Expand Down
1 change: 1 addition & 0 deletions helm/polaris/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions helm/polaris/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ apiVersion: v1
kind: Service
metadata:
name: {{ include "polaris.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "polaris.labels" . | nindent 4 }}
annotations:
Expand Down
1 change: 1 addition & 0 deletions helm/polaris/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "polaris.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "polaris.labels" . | nindent 4 }}
annotations:
Expand Down
1 change: 1 addition & 0 deletions helm/polaris/templates/tests/test-connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 53f8b74

Please sign in to comment.