You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To make kustomize-controller compatible with VPA, HPA for custom resources and other controllers which mutate Flux-managed fields in-cluster, we need to wire the ssa/jsondiff logic into the SSA apply functions.
Tasks:
Move the saa functions used in jsondiff to a dedicated package
Would like to contribute to getting this solved as flux has been great for my use cases until I now need to manage a CRD with a conversion webhook and a cert-manager caBundle that would keep getting removed/added.
Is it "just" a lack of priority and contributions that is blocking this issue or is there something else related to adding the ignore rules that makes this extra complicated to solve?
This is nice because there can be no mismatch from selecting the resource Group/Version/Kind/Name/Namespace.
Another option is to provide some sort of resourceSelector API similar to kustomizePatches on the flux Kustomization.spec
This would be a new set of fields.
It would behave very differently -- should we warn if no paths actually match or not?
It enables a single place where you can select all VPA resources within a large kustomization without having to edit the resource YAML's.
at the same time, if it's annotations on the resource, a kustomize patch within either a kustomization.yaml or a Flux Kustomization.spec can already set them at a higher level.
(ex: patch all VPA's in a specific namespace with a specific ignore Path annotation)
If it's annotations, we also have to decide on how the paths are represented.
It can either be a single key where the right-hand-side (RHS) is managed as a string that parses to a single JSON/YAML list, or the LHS key can be made to represent the ignorePaths which would make them mergeable.
This has been already implemented in HelmRelease. I don't think we should come up with a different API, IMO the Flux Kustomization will have a .spec.driftDetection.ignore with the array of JSON pointers.
Reacted by Matheus Pimenta, dipti-pai, Dennis Kniep, Sebastian Käßinger, Constantin Ewert, ctausendfreund, Daniel Weber, Daniel Noworyta and minimax75
This has been already implemented in HelmRelease. I don't think we should come up with a different API, IMO the Flux Kustomization will have a .spec.driftDetection.ignore with the array of JSON pointers.
Sounds great! Do you know when this will be released?
Activity
alxbse commentedon Oct 21, 2024
Would like to contribute to getting this solved as flux has been great for my use cases until I now need to manage a CRD with a conversion webhook and a cert-manager caBundle that would keep getting removed/added.
Is it "just" a lack of priority and contributions that is blocking this issue or is there something else related to adding the ignore rules that makes this extra complicated to solve?
stefanprodan commentedon Jul 17, 2025
@alxbse the CRD conversion webhook CA bundle issue was fixed in #952 and will be available in Flux 2.7
stealthybox commentedon Feb 5, 2026
We're touching on this in the US Flux Dev meeting --
where should we allow people to define this ignored paths?
Currently, we can control some SSA behavior and inventory lifecycle via annotations that come from the resource definitions themselves:
https://fluxcd.io/flux/components/kustomize/kustomizations/#controlling-the-apply-behavior-of-resources
This is nice because there can be no mismatch from selecting the resource Group/Version/Kind/Name/Namespace.
Another option is to provide some sort of resourceSelector API similar to kustomizePatches on the flux Kustomization.spec
This would be a new set of fields.
It would behave very differently -- should we warn if no paths actually match or not?
It enables a single place where you can select all VPA resources within a large kustomization without having to edit the resource YAML's.
at the same time, if it's annotations on the resource, a kustomize patch within either a kustomization.yaml or a Flux Kustomization.spec can already set them at a higher level.
(ex: patch all VPA's in a specific namespace with a specific ignore Path annotation)
If it's annotations, we also have to decide on how the paths are represented.
It can either be a single key where the right-hand-side (RHS) is managed as a string that parses to a single JSON/YAML list, or the LHS key can be made to represent the ignorePaths which would make them mergeable.
stefanprodan commentedon Feb 5, 2026
This has been already implemented in HelmRelease. I don't think we should come up with a different API, IMO the Flux Kustomization will have a
.spec.driftDetection.ignorewith the array of JSON pointers.8bitseppel commentedon Feb 19, 2026
Sounds great! Do you know when this will be released?
matheuscscp commentedon Feb 19, 2026
Flux 2.9, end of Q2.