Expand the name of the chart.
*/}}
{{- define "ricxapp.name" -}}
- {{- default .Chart.Name .Values.ricxapp.name | trunc 63 | trimSuffix "-" -}}
+ {{- default .Chart.Name .Values.name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
{{- define "ricxapp.fullname" -}}
{{- $name := ( include "ricxapp.name" . ) -}}
{{- $fullname := ( printf "%s-%s" .Release.Namespace $name ) -}}
- {{- default $fullname .Values.ricxapp.fullname | trunc 63 | trimSuffix "-" -}}
+ {{- default $fullname .Values.fullname | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
{{- printf "container-%s" $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
+
{{- define "ricxapp.imagepullsecret" -}}
- {{- printf "docker-reg-cred" -}}
-{{- end -}}
+ {{- $reponame := .repo -}}
+ {{- $postfix := $reponame | replace "." "-" | replace ":" "-" | replace "/" "-" | trunc 63 | trimSuffix "-" -}}
+ {{- printf "secret-%s" $postfix -}}
+{{- end -}}
\ No newline at end of file