Skip to content

Commit

Permalink
feat: add the label app.kubernetes.io/name to deployment and services
Browse files Browse the repository at this point in the history
  • Loading branch information
mivek committed Nov 10, 2024
1 parent d6f4520 commit 3bda42d
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/pihole/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ metadata:
name: {{ template "pihole.fullname" . }}
labels:
app: {{ template "pihole.name" . }}
app.kubernetes.io/name: {{ template "pihole.name" . }}
chart: {{ template "pihole.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
Expand Down Expand Up @@ -34,6 +35,7 @@ spec:
{{- end }}
labels:
app: {{ template "pihole.name" . }}
app.kubernetes.io/name: {{ template "pihole.name" . }}
release: {{ .Release.Name }}
spec:
{{- if .Values.antiaff.enabled }}
Expand Down
2 changes: 2 additions & 0 deletions charts/pihole/templates/service-dhcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
name: {{ template "pihole.fullname" . }}-dhcp
labels:
app: {{ template "pihole.name" . }}
app.kubernetes.io/name: {{ template "pihole.name" . }}
chart: {{ template "pihole.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
Expand Down Expand Up @@ -48,6 +49,7 @@ metadata:
name: {{ template "pihole.fullname" . }}-dhcp-ivp6
labels:
app: {{ template "pihole.name" . }}
app.kubernetes.io/name: {{ template "pihole.name" . }}
chart: {{ template "pihole.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
Expand Down
2 changes: 2 additions & 0 deletions charts/pihole/templates/service-dns-tcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
name: {{ template "pihole.fullname" . }}-dns-tcp
labels:
app: {{ template "pihole.name" . }}
app.kubernetes.io/name: {{ template "pihole.name" . }}
chart: {{ template "pihole.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
Expand Down Expand Up @@ -54,6 +55,7 @@ metadata:
name: {{ template "pihole.fullname" . }}-dns-tcp-ipv6
labels:
app: {{ template "pihole.name" . }}
app.kubernetes.io/name: {{ template "pihole.name" . }}
chart: {{ template "pihole.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
Expand Down
2 changes: 2 additions & 0 deletions charts/pihole/templates/service-dns-udp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
name: {{ template "pihole.fullname" . }}-dns-udp
labels:
app: {{ template "pihole.name" . }}
app.kubernetes.io/name: {{ template "pihole.name" . }}
chart: {{ template "pihole.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
Expand Down Expand Up @@ -48,6 +49,7 @@ metadata:
name: {{ template "pihole.fullname" . }}-dns-udp-ipv6
labels:
app: {{ template "pihole.name" . }}
app.kubernetes.io/name: {{ template "pihole.name" . }}
chart: {{ template "pihole.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
Expand Down
2 changes: 2 additions & 0 deletions charts/pihole/templates/service-dns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
name: {{ template "pihole.fullname" . }}-dns
labels:
app: {{ template "pihole.name" . }}
app.kubernetes.io/name: {{ template "pihole.name" . }}
chart: {{ template "pihole.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
Expand Down Expand Up @@ -55,6 +56,7 @@ metadata:
name: {{ template "pihole.fullname" . }}-dns-ipv6
labels:
app: {{ template "pihole.name" . }}
app.kubernetes.io/name: {{ template "pihole.name" . }}
chart: {{ template "pihole.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
Expand Down
2 changes: 2 additions & 0 deletions charts/pihole/templates/service-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
name: {{ template "pihole.fullname" . }}-web
labels:
app: {{ template "pihole.name" . }}
app.kubernetes.io/name: {{ template "pihole.name" . }}
chart: {{ template "pihole.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
Expand Down Expand Up @@ -64,6 +65,7 @@ metadata:
name: {{ template "pihole.fullname" . }}-web-ipv6
labels:
app: {{ template "pihole.name" . }}
app.kubernetes.io/name: {{ template "pihole.name" . }}
chart: {{ template "pihole.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
Expand Down

0 comments on commit 3bda42d

Please sign in to comment.