Skip to content

Commit

Permalink
Merge pull request #11 from livyfu/service-name-override
Browse files Browse the repository at this point in the history
Give the ability to override service name separately
  • Loading branch information
haad authored Mar 17, 2021
2 parents c4e1c99 + 45ff9be commit 72121b9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
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: v2
name: coredns
version: 1.14.3
version: 1.15.0
appVersion: 1.8.0
home: https://coredns.io
icon: https://coredns.io/images/CoreDNS_Colour_Horizontal.png
Expand Down
2 changes: 1 addition & 1 deletion stable/coredns/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: Service
metadata:
name: {{ template "coredns.fullname" . }}
name: {{ default (include "coredns.fullname" .) .Values.service.name }}
labels:
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
Expand Down
5 changes: 4 additions & 1 deletion stable/coredns/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,16 @@ service:
# loadBalancerIP: ""
# externalIPs: []
# externalTrafficPolicy: ""
# The name of the Service
# If not set, a name is generated using the fullname template
name: ""
annotations: {}

serviceAccount:
create: false
# The name of the ServiceAccount to use
# If not set and create is true, a name is generated using the fullname template
name:
name: ""
annotations: {}

rbac:
Expand Down

0 comments on commit 72121b9

Please sign in to comment.