sprig-template-functions Questions
3
Solved
I am writing a Helm 3 library chart and would like to create a YAML with default values. However, when trying to set a default value for a nested key that does not exist, Helm fails with the follow...
Bodyguard asked 11/4, 2020 at 9:40
2
Solved
I have my own helm chart and I'm trying to perform split without using the _helpers.tpl in one line
my values.yaml file content:
deployment:
domain: my.domain
I need to split domain name in my...
Multiplicity asked 5/12, 2018 at 14:31
4
Solved
I would like to convert a part of the structure in values.yaml to properties file in a config map.
Is it possible to convert a yaml structure like:
field1: value1
field2:
field21: value21
field...
Ers asked 12/2, 2020 at 8:40
2
Solved
The below works
{{- if hasKey (index $envAll.Values.policy) "type" }}
{{- if has "two-wheeler" (index $envAll.Values.policy "type") }}
<code goes here>
{{- end }}
{{- end }}
while the bel...
Germane asked 1/4, 2019 at 23:3
3
Solved
I'm trying to use a helm template helper to filter out values from a list in my values.yaml file, based on the value of one of the keys in each list member.
My chart is currently comprised of thes...
Phial asked 11/4, 2020 at 8:1
1
Solved
New to k8s & helm.
Trying to declare a field in a deployment using the {{ .Release.Name }}, that must not contain characters other than letters (upper + lower), digits and _.
Excluded charact...
Rivet asked 26/4, 2020 at 10:37
1
Solved
Since Helm v3 built-in object .Release.Time is removed.
What is the preferred way of injecting a release time into a template now?
Crook asked 10/4, 2020 at 12:52
1
Simple question is it possible to get size list with helm and sprig function ?
My list :
list:
- a
- b
- c
I tried like this :
{{ .Values.list | len }}
{{ .Values.list | size }}
{{ .Values....
Cue asked 18/4, 2019 at 7:52
1
© 2022 - 2024 — McMap. All rights reserved.