patchesStrategicMerge postRenderers configuration not accepted #5306
-
I have a 3rd party Helm chart with deploys the application via our Flux HelmRelease definition. Now we have the requirement that we need to inject a container into a StatefulSet rendered by the Helm chart. So my approach is to use Helm's postRederer hook to patch the generated yaml and inject the container. However I'm having troubes enhancing an existing HelmRelease definition with a postRenderers configuration using kustomize's patchesStrategicMerge patch strategy. Based on the example here I'm trying to add the following yaml snippet to the code:
However no matter if I do a oc edit helmrelease dxb or do it via ArgoCD's edit function the the code is reverted back to:
and I can't find any hint on what's wrong. Running 2.3.0 on OpenShift using the Flux operator provided by the Flux project. What am I doing wrong? Is it because of the deprecation of the strategic merge? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
See the docs here: https://fluxcd.io/flux/components/helm/helmreleases/#post-renderers |
Beta Was this translation helpful? Give feedback.
-
Just in case anyone has a similar use-case to inject a pod into a Deployment/StatefulSet rendered via a Helm Chart using the postrenderer here is the pod:
|
Beta Was this translation helpful? Give feedback.
See the docs here: https://fluxcd.io/flux/components/helm/helmreleases/#post-renderers