Open benjamin-tucker opened 1 year ago
Can you send to full output of the helmfile template
command with/without the transformers? I'm interested to see what the product is.
I've never used transformers but on the surface I don't see any reason why they wouldn't work. Any chance of differences of versions of helm, helmfile, kustomize, etc?
I'm currently in the process of investigating a similar issue. This appears to be caused by the --api-versions
that are passed to helm template
by way of helmfile template --args <...>
not being passed to chartify which is only being involved once you specify patches/transformers.
If the templates use .Capabilities.APIVersions
the resources will not be in included.
It appears that those versions defined in the state file via apiVersions
will get passed on, so I was able to work around this by defining in my helmfile:
apiVersions:
{{ env "KUBE_API_VERSIONS" | splitList "," | toYaml | nindent 2 }}
Wow good find. Here is a base file all my files include.
# note that helm currently *appends* these values vs replaces them
# https://github.com/helm/helm/pull/10108
apiVersions:
- networking.k8s.io/v1/IngressClass
#- networking.k8s.io/v1beta1/IngressClass
{{- if (env "KUBE_API_VERSIONS") }}
{{- range $apiV := ( requiredEnv "KUBE_API_VERSIONS" | split "," ) }}
- {{ $apiV }}
{{- end }}
{{- end }}
Hello - firstly, thanks for awesome plugin. It solves big problems for us. Please can you help me solve this one? I am totally flummoxed.
I'm trying to add labels, following this https://github.com/roboll/helmfile/blob/master/docs/advanced-features.md#transformers
helmfile template | k apply -f -
run locally on my mac (ofcourse, it always does!)argo-cd = v2.7.6+00c914a.dirty plugin = travisghansen/argo-cd-helmfile:v0.3.6
Specific example
This works:
This adds the label, but it unwinds the set, and removes the psp, role and rolebind. ❓ 🤷 🧠
My values file
local run (x86 mac) helmfile = v0.153.1 helm = v3.11.3 kustomize = v5.1.0