2 min read
If we want to get the values we have set for a particular helm chart we can use the helm get values command. Where are these values stored?
27/01/2022
Read more...2 min read
If we try to use the template fullname function inside a range block as follows:
{{ range .Values.secrets }}
---
apiVersion: 'kubernetes-client.io/v1'
kind: ExternalSecret
metadata:
name: "{{ template "pet2cattle.fullname" . }}-{{ . | replace "_" "-" }}"
(...)
{{ end }}
We will get a can't evaluate field Values in type string like follows:
Error: template: pet2cattle/templates/_helpers.tpl:14:14: executing "pet2cattle.fullname" at <.Values.fullnameOverride>: can't evaluate field Values in type string
29/12/2021
Read more...2 min read
When we already have some applicacions installed using helm we might need to retrieve the values we used to install the same application somewhere else. To do so we can use helm get values
02/12/2021
Read more...1 min read
Sometimes writting helm charts can be very challenging due to the weird errors we might get:
<sha256sum>: wrong type for value; expected string; got chartutil.Values
26/11/2021
Read more...2 min read
While working on Helm charts we might be interested on using a particular element of an array (most likely the first). To achieve this we won't be able to use the regular square brackets approach, instead we will have to use the index function
25/11/2021
Read more...