Skip to content

Commit

Permalink
feat: add support for service extraLabels (#266)
Browse files Browse the repository at this point in the history
Add support for service extraLabels
  • Loading branch information
wolviecb committed Jan 24, 2024
1 parent bdf2bf4 commit 4a09a58
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/pihole/templates/service-dhcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ metadata:
chart: {{ template "pihole.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- if .Values.serviceDhcp.extraLabels }}
{{ toYaml .Values.servicesDhcp.extraLabels | indent 4 }}
{{- end }}
{{- if .Values.serviceDhcp.annotations }}
annotations:
{{ toYaml .Values.serviceDhcp.annotations | indent 4 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/pihole/templates/service-dns-tcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ metadata:
chart: {{ template "pihole.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- if .Values.serviceDns.extraLabels }}
{{ toYaml .Values.serviceDns.extraLabels | indent 4 }}
{{- end }}
{{- if .Values.serviceDns.annotations }}
annotations:
{{ toYaml .Values.serviceDns.annotations | indent 4 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/pihole/templates/service-dns-udp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ metadata:
chart: {{ template "pihole.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- if .Values.serviceDns.extraLabels }}
{{ toYaml .Values.serviceDns.extraLabels | indent 4 }}
{{- end }}
{{- if .Values.serviceDns.annotations }}
annotations:
{{ toYaml .Values.serviceDns.annotations | indent 4 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/pihole/templates/service-dns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ metadata:
chart: {{ template "pihole.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- if .Values.serviceDns.extraLabels }}
{{ toYaml .Values.serviceDns.extraLabels | indent 4 }}
{{- end }}
{{- if .Values.serviceDns.annotations }}
annotations:
{{ toYaml .Values.serviceDns.annotations | indent 4 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/pihole/templates/service-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ metadata:
chart: {{ template "pihole.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- if .Values.serviceWeb.extraLabels }}
{{ toYaml .Values.serviceWeb.extraLabels | indent 4 }}
{{- end }}
{{- if .Values.serviceWeb.annotations }}
annotations:
{{ toYaml .Values.serviceWeb.annotations | indent 4 }}
Expand Down
11 changes: 11 additions & 0 deletions charts/pihole/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ serviceDns:
# metallb.universe.tf/address-pool: network-services
# metallb.universe.tf/allow-shared-ip: pihole-svc

# -- Labels for the DNS service
extraLabels:
{}

# -- Configuration for the DHCP service on port 67
serviceDhcp:
# -- Generate a Service resource for DHCP traffic
Expand All @@ -85,6 +89,9 @@ serviceDhcp:
annotations: {}
# metallb.universe.tf/address-pool: network-services
# metallb.universe.tf/allow-shared-ip: pihole-svc
# -- Labels for the DHCP service
extraLabels:
{}

# -- Configuration for the web interface service
serviceWeb:
Expand Down Expand Up @@ -126,6 +133,10 @@ serviceWeb:
# metallb.universe.tf/address-pool: network-services
# metallb.universe.tf/allow-shared-ip: pihole-svc

# -- Labels for the web interface service
extraLabels:
{}

virtualHost: pi.hole

# -- Configuration for the Ingress
Expand Down

0 comments on commit 4a09a58

Please sign in to comment.