Skip to content

Commit

Permalink
Merge branch 'main' into add-node-selector
Browse files Browse the repository at this point in the history
  • Loading branch information
adinhodovic authored Mar 22, 2024
2 parents eba9ab7 + 8473f86 commit b3a5f1e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions deploy/charts/version-checker/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,11 @@ app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end -}}

{{/*
Common selector
*/}}
{{- define "version-checker.selector" -}}
app.kubernetes.io/name: {{ include "version-checker.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end -}}
2 changes: 1 addition & 1 deletion deploy/charts/version-checker/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "version-checker.labels" . | nindent 6 }}
{{- include "version-checker.selector" . | nindent 6 }}
template:
metadata:
labels:
Expand Down
2 changes: 1 addition & 1 deletion deploy/charts/version-checker/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ spec:
protocol: TCP
name: web
selector:
{{ include "version-checker.labels" . | nindent 4 }}
{{- include "version-checker.selector" . | nindent 4 }}

0 comments on commit b3a5f1e

Please sign in to comment.