Skip to content

Commit

Permalink
Merge pull request #250 from camptocamp/nameOverride
Browse files Browse the repository at this point in the history
Fix fullnameOverride
  • Loading branch information
sbrunner authored Dec 17, 2024
2 parents d405d0c + 3efdc09 commit f6a9822
Show file tree
Hide file tree
Showing 5 changed files with 113 additions and 89 deletions.
6 changes: 3 additions & 3 deletions templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Create the name of the service account to use
{{- $definition := get .root.Values.externalSecrets $name }}
name: {{ include "common.fullname" ( dict "root" .root "service" $definition "serviceName" $name ) }}
{{ else if and (hasKey .value "name" ) ( eq .value.name "self-metadata" ) -}}
name: {{ include "common.fullname" ( dict "root" .root "service" .root.Values "serviceName" "metadata" ) }}
name: {{ include "common.fullname" ( dict "root" .root "service" .root.Values.metadata "serviceName" "metadata" ) }}
{{ else -}}
name: {{ default .value.name ( get .configMapNameOverride .value.name ) | quote }}
{{ end -}}
Expand All @@ -52,7 +52,7 @@ imagePullSecrets:
{{- if .root.Values.dockerregistry -}}
{{- if .root.Values.dockerregistry.enabled -}}
imagePullSecrets:
- name: {{ include "common.fullname" ( dict "root" .root "service" .root.Values "serviceName" "docker-registry" ) }}
- name: {{ include "common.fullname" ( dict "root" .root "service" .root.Values.dockerregistry "serviceName" "docker-registry" ) }}
{{- end }}
{{- end }}
{{- end }}
Expand Down Expand Up @@ -232,7 +232,7 @@ volumes:
{{- if eq ( default "self" $value.configMap.name ) "self" }}
name: {{ include "common.fullname" ( dict "root" $root "service" $root.Values.configMaps ) }}
{{- else if eq ( default "self" $value.configMap.name ) "self-metadata" }}
name: {{ include "common.fullname" ( dict "root" $root "service" $root.Values "serviceName" "metadata" ) }}
name: {{ include "common.fullname" ( dict "root" $root "service" $root.Values.metadata "serviceName" "metadata" ) }}
{{- else }}
name: {{ default $value.configMap.name ( get $root.Values.global.configMapNameOverride $value.configMap.name ) | quote }}
{{- end }}
Expand Down
Loading

0 comments on commit f6a9822

Please sign in to comment.