Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing finalizers from generated resources #3480

Open
bigkevmcd opened this issue Aug 28, 2024 · 0 comments
Open

Removing finalizers from generated resources #3480

bigkevmcd opened this issue Aug 28, 2024 · 0 comments

Comments

@bigkevmcd
Copy link

bigkevmcd commented Aug 28, 2024

Expected Behavior

Externally added finalizers should be retained across reconciliations by the tigera-controller.

Current Behavior

Currently, if another controller adds a finalizer to an Operator-created resource, it will get removed on re-reconcile.

This commit beeba82cb fixed this for Kibana resources.

beeba82cb#diff-8a70460893d606f15b2f0b6b4292348d55975719fa6d0a50b32a8e4c148ddf6eR218

We are seeing the same problem, update-battles for some resources that Rancher is adding finalizers to (specifically at least ClusterRoleBindings).

Possible Solution

Retain the existing finalizers on the resource (by merging with the existing finalizers).

Steps to Reproduce (for bugs)

  1. Add a finalizer to an operator-created resource e.g. the calico-node ClusterRoleBinding
  2. The added finalizer will be removed and the tigera.io/cni-protector will be the only finalizer,

Context

We are seeing elevated levels of updates being applied to CRBs that are watched by Rancher.

Your Environment

  • Operating System and version:
  • Link to your project (optional):
@bigkevmcd bigkevmcd changed the title Removing finalizers generated resources Removing finalizers from generated resources Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant