mirror of
https://github.com/fluxcd/flux2.git
synced 2026-05-05 09:38:50 +00:00
Request reconcile using patch instead of update
This should prevent the generation of the object getting bumped, as observed on a GKE K8s 1.18 cluster using the logic before this commit. We only want to generation to increase when there are actual changes to the `spec` of a resource, as some controllers use the `generation` value to make assumptions about what they should do during a reconciliation. Signed-off-by: Hidde Beydals <hello@hidde.co>
This commit is contained in:
parent
3570fab0f9
commit
9607b07e65
9 changed files with 54 additions and 1 deletions
|
|
@ -37,6 +37,10 @@ func (a kustomizationAdapter) asClientObject() client.Object {
|
|||
return a.Kustomization
|
||||
}
|
||||
|
||||
func (a kustomizationAdapter) deepCopyClientObject() client.Object {
|
||||
return a.Kustomization.DeepCopy()
|
||||
}
|
||||
|
||||
// kustomizev1.KustomizationList
|
||||
|
||||
type kustomizationListAdapter struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue