Skip to content

Commit

Permalink
move labels to helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasthuen committed Feb 14, 2024
1 parent 33c98b9 commit eb26842
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stable/svai/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.6
version: 0.1.7

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
1 change: 1 addition & 0 deletions stable/svai/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ Selector labels
{{- define "svai.selectorLabels" -}}
app.kubernetes.io/name: {{ include "svai.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app: {{ include "svai.name" . }}
{{- end }}

{{/*
Expand Down
2 changes: 0 additions & 2 deletions stable/svai/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ metadata:
name: {{ $name }}
labels:
{{- include "svai.labels" . | nindent 4 }}
app: {{ $name }}
spec:
selector:
matchLabels:
Expand All @@ -18,7 +17,6 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
app: {{ $name }}
{{- include "svai.selectorLabels" . | nindent 8 }}
{{- toYaml .Values.selectorLabels | nindent 8 }}
spec:
Expand Down

0 comments on commit eb26842

Please sign in to comment.