Reputation: 179
I have below values in values.yaml file
spec:
teamId: "postgres"
volume:
size: 1Gi
numberOfInstances: 1
users: # Application/Robot users
a3s:
- superuser
tls:
secretName: ""
I would like to override the secretName to {{ .Release.Name }} when some condition is met and print the values.yaml file with {{ .Release.Name }} else it should print as it is Any suggestion please ?
Upvotes: 1
Views: 2017
Reputation: 6471
In values.yaml
tls:
secretName: "{{ if condition_check_here }} {{.Release.Name}} {{else }} othervalue {{end}}"
where the tls.secretName
will be used, use like following
{{tpl .Values.tls.secretName . }}
Upvotes: 1