diff --git a/src/common/Chart.yaml b/src/common/Chart.yaml index 06a2ac5..189a47a 100644 --- a/src/common/Chart.yaml +++ b/src/common/Chart.yaml @@ -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 diff --git a/src/common/templates/_pdb.tpl b/src/common/templates/_pdb.tpl index fb5f09a..fee9f53 100644 --- a/src/common/templates/_pdb.tpl +++ b/src/common/templates/_pdb.tpl @@ -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 }} \ No newline at end of file