Skip to content

Commit

Permalink
Merge pull request #4808 from cw-sakamoto/add_namespace_to_chart
Browse files Browse the repository at this point in the history
[CA][Helm]Add .Release.Namespace to each template
  • Loading branch information
k8s-ci-robot authored Apr 22, 2022
2 parents b848aa3 + b615ad6 commit d6de5f6
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/cluster-autoscaler/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ name: cluster-autoscaler
sources:
- https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler
type: application
version: 9.17.2
version: 9.18.0
1 change: 1 addition & 0 deletions charts/cluster-autoscaler/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ metadata:
labels:
{{ include "cluster-autoscaler.labels" . | indent 4 }}
name: {{ template "cluster-autoscaler.fullname" . }}
namespace: {{ .Release.Namespace }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
Expand Down
1 change: 1 addition & 0 deletions charts/cluster-autoscaler/templates/pdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
labels:
{{ include "cluster-autoscaler.labels" . | indent 4 }}
name: {{ template "cluster-autoscaler.fullname" . }}
namespace: {{ .Release.Namespace }}
spec:
selector:
matchLabels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: cluster-autoscaler-priority-expander
namespace: {{ .Release.Namespace }}
labels:
{{ include "cluster-autoscaler.labels" . | indent 4 }}
{{- if .Values.priorityConfigMapAnnotations }}
Expand Down
1 change: 1 addition & 0 deletions charts/cluster-autoscaler/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
labels:
{{ include "cluster-autoscaler.labels" . | indent 4 }}
name: {{ template "cluster-autoscaler.fullname" . }}
namespace: {{ .Release.Namespace }}
rules:
- apiGroups:
- ""
Expand Down
1 change: 1 addition & 0 deletions charts/cluster-autoscaler/templates/rolebinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
labels:
{{ include "cluster-autoscaler.labels" . | indent 4 }}
name: {{ template "cluster-autoscaler.fullname" . }}
namespace: {{ .Release.Namespace }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
Expand Down
1 change: 1 addition & 0 deletions charts/cluster-autoscaler/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: v1
kind: Secret
metadata:
name: {{ template "cluster-autoscaler.fullname" . }}
namespace: {{ .Release.Namespace }}
data:
{{- if eq .Values.cloudProvider "azure" }}
ClientID: "{{ .Values.azureClientID | b64enc }}"
Expand Down
1 change: 1 addition & 0 deletions charts/cluster-autoscaler/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ metadata:
{{ toYaml .Values.service.labels | indent 4 }}
{{- end }}
name: {{ template "cluster-autoscaler.fullname" . }}
namespace: {{ .Release.Namespace }}
spec:
{{- if .Values.service.clusterIP }}
clusterIP: "{{ .Values.service.clusterIP }}"
Expand Down
1 change: 1 addition & 0 deletions charts/cluster-autoscaler/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
labels:
{{ include "cluster-autoscaler.labels" . | indent 4 }}
name: {{ template "cluster-autoscaler.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
{{- if .Values.rbac.serviceAccount.annotations }}
annotations: {{ toYaml .Values.rbac.serviceAccount.annotations | nindent 4 }}
{{- end }}
Expand Down

0 comments on commit d6de5f6

Please sign in to comment.