Skip to content

Commit

Permalink
feat: [PL-56709]: Add fix to pdb helper for charts using different na…
Browse files Browse the repository at this point in the history
…mes (#127)
  • Loading branch information
arya-harness authored Sep 18, 2024
1 parent 871ff77 commit f3218b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/common/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: library
# 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: 1.3.58
version: 1.3.59

# 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
4 changes: 2 additions & 2 deletions src/common/templates/_pdb.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ spec:
{{- if $maxUnavailable }}
maxUnavailable: {{ $maxUnavailable }}
{{- end }}
{{- $selectorFunction := printf "%s.selectorLabels" $.Chart.Name }}
{{- $selectorFunction := printf "%s.selectorLabels" (default $.Chart.Name $.Values.nameOverride) }}
selector:
matchLabels: {{ include $selectorFunction $ | nindent 6 }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit f3218b6

Please sign in to comment.