Skip to content

Commit

Permalink
k8s: add extra selectors to deployed pods
Browse files Browse the repository at this point in the history
  • Loading branch information
kofemann committed Sep 17, 2024
1 parent a272d53 commit 94f0357
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
{{/*
Selector labels
*/}}
{{- define "dcache.selectorLabels" -}}
app.kubernetes.io/name: {{ .Chart.Name }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Add CA certs and generate host certificate
Expand Down
1 change: 1 addition & 0 deletions templates/door.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ spec:
template:
metadata:
labels:
{{- include "dcache.selectorLabels" . | nindent 8 }}
app: door
spec:
containers:
Expand Down
1 change: 1 addition & 0 deletions templates/pool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ spec:
metadata:
labels:
app: pool-{{ . }}
{{- include "dcache.selectorLabels" $ | nindent 8 }}
spec:
securityContext:
fsGroup: 1000
Expand Down

0 comments on commit 94f0357

Please sign in to comment.