Skip to content

Commit

Permalink
[stable/coredns] add back the service account for autoscaler (helm#20823
Browse files Browse the repository at this point in the history
)

* [stable/coredns] add back the service account for autoscaler

Signed-off-by: Alex Williams <[email protected]>

* [stable/coredns] I didn't actually rename the file

Signed-off-by: Alex Williams <[email protected]>

* [stable/coredns] check if rbac needs to be created

Signed-off-by: Alex Williams <[email protected]>
  • Loading branch information
Smirl authored Feb 18, 2020
1 parent 5d1a52a commit aa4f226
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/coredns/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: coredns
version: 1.9.2
version: 1.9.3
appVersion: 1.6.7
description: CoreDNS is a DNS server that chains plugins and provides Kubernetes DNS Services
keywords:
Expand Down
21 changes: 21 additions & 0 deletions stable/coredns/templates/serviceaccount-autoscaler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{{- if and .Values.autoscaler.enabled .Values.rbac.create }}
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ template "coredns.fullname" . }}-autoscaler
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
{{- if .Values.isClusterService }}
k8s-app: {{ .Chart.Name }}-autoscaler
kubernetes.io/cluster-service: "true"
kubernetes.io/name: "CoreDNS"
{{- end }}
app.kubernetes.io/name: {{ template "coredns.name" . }}-autoscaler
{{- if .Values.customLabels }}
{{ toYaml .Values.customLabels | indent 4 }}
{{- end }}
{{- end }}

0 comments on commit aa4f226

Please sign in to comment.