Closed atsai1220 closed 1 year ago
Seems to be duplicate of https://github.com/rancher/fleet/pull/1155
Duplicate of https://github.com/rancher/fleet/issues/1079
closing as duplicate
@atsai1220
Besides removing the labels and annotations, it also sets a different objectset.io.cattle.io/hash. Are there multiple controllers touching this object?
The hash is literally a hash over the annotations: https://github.com/rancher/wrangler/blob/master/pkg/apply/desiredset_apply.go#L223-L225
Is there an existing issue for this?
Current Behavior
Restarting fleet-controller causes
fleet-local/local
cluster.fleet object to have its labels and annotations removed temporarily. This is problematic if you havegitrepo
obejects that depend on labels such asprovider.cattle.io: rke2
to install the appropriate bundles.Besides removing the labels and annotations, it also sets a different
objectset.io.cattle.io/hash
. Are there multiple controllers touching this object?The diff includes the following
original
What happens when fleet-controller starts. All other fields are set to null.
Expected Behavior
Labels and annotations should be not set to null when fleet-controller starts.
Steps To Reproduce
GitRepo
object that selects the local cluster based on labelfleet-controller
and observe the application to be temporarily uninstalled then installed again as labels are propagated back onto thecluster.fleet
object.Environment
Logs
Anything else?
Here is a video demonstrating the effect: https://user-images.githubusercontent.com/14171643/206297554-973d07bb-675c-4b28-918e-f9cb53ae2811.mov