Skip to content

Commit

Permalink
Helm chart: allow custom service labels
Browse files Browse the repository at this point in the history
  • Loading branch information
dnrce committed Jan 13, 2024
1 parent b766c6c commit d2676eb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/k8s-gateway/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: k8s-gateway
description: A Helm chart for the k8s_gateway CoreDNS plugin
type: application
version: 2.1.0
version: 2.2.0
appVersion: 0.4.0
maintainers:
- email: mmkashin@gmail.com
Expand Down
3 changes: 3 additions & 0 deletions charts/k8s-gateway/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ kind: Service
metadata:
name: {{ include "k8s-gateway.fullname" . }}
labels:
{{- if .Values.service.labels }}
{{- toYaml .Values.service.labels | nindent 4 }}
{{- end }}
{{- include "k8s-gateway.labels" . | nindent 4 }}
annotations:
{{- if .Values.service.annotations }}
Expand Down
1 change: 1 addition & 0 deletions charts/k8s-gateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ service:
type: LoadBalancer
port: 53
annotations: {}
labels: {}
# nodePort: 30053
# loadBalancerIP: 192.168.1.2
# clusterIP: 10.43.0.53
Expand Down

0 comments on commit d2676eb

Please sign in to comment.