-
The default behavior of flux Helm release when using OCI repository as source is to add the digest to the version as described here. This is good, and I understand why. However some charts can break with incorrect label due to lack of sanitization: I know this is not a flux issue (I'm opening a PR to fix the mentioned example). However does somebody have a workaround (can be as dirty as you want, Helm is already 🤢 anyway, all hail timoni) in the meantime? I tried overriding the label using values, but I get a marshal error. I also tried a dirty post patch: postRenderers:
- kustomize:
patches:
- target:
version: apps/v1
kind: DaemonSet
name: dagger-engine
patch: |
- op: replace
path: /metadata/labels/app.kubernetes.io~1version
value: "v0.16.1"
- op: replace
path: /spec/template/metadata/labels/app.kubernetes.io~1version
value: "v0.16.1" but still no luck:
Thanks! P.S.: Did I mention I hate Helm? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This can either be solved by forking the chart, or maybe by using a chart template with an OCI chart reference — as I believe this will maintain the unmodified SemVer for as long as you do not define any values file overwrites. The reason it can not be solved via a Kustomize post renderer operation is that the error you are running into happens during Helm's render attempt, and post renderers are applied on top of(/after) this (succeeded). |
Beta Was this translation helpful? Give feedback.
This can either be solved by forking the chart, or maybe by using a chart template with an OCI chart reference — as I believe this will maintain the unmodified SemVer for as long as you do not define any values file overwrites.
The reason it can not be solved via a Kustomize post renderer operation is that the error you are running into happens during Helm's render attempt, and post renderers are applied on top of(/after) this (succeeded).