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

[Housekeeping] Use domain-qualified finalizers #6019

Open
2 tasks done
trutx opened this issue Nov 15, 2024 · 0 comments · May be fixed by #6023
Open
2 tasks done

[Housekeeping] Use domain-qualified finalizers #6019

trutx opened this issue Nov 15, 2024 · 0 comments · May be fixed by #6023
Assignees
Labels
housekeeping Issues that help maintain flyte and keep it tech-debt free

Comments

@trutx
Copy link
Contributor

trutx commented Nov 15, 2024

Describe the issue

After upgrading our cluster to Kubernetes 1.29 we started seeing warnings like the following in Flyte admin logs:

W1115 11:54:31.278411      14 warnings.go:70] metadata.finalizers: "flyte-finalizer": prefer a domain-qualified finalizer name to avoid accidental conflicts with other finalizer writers

The change was introduced in kubernetes/kubernetes#119508 so it's an external change we should adapt to. The current finalizer is not domain-qualified and besides all the finalizer-managing logic in that file has become obsolete.

Given this, we should change the finalizer to a proper one and also take the opportunity to get rid of that code and leverage the finalizer logic in https://github.com/kubernetes-sigs/controller-runtime/blob/main/pkg/controller/controllerutil/controllerutil.go, which we would have maintained and tested for free.

What if we do not do this?

Not using domain-qualified finalizers causes noisy warning messages in the logs for now but such finalizers might be required in future Kubernetes versions, which would mean all of Flyte finalizer logic would stop working.

Related component(s)

Flyteadmin, flytepropeller.

Are you sure this issue hasn't been raised already?

  • Yes

Have you read the Code of Conduct?

  • Yes
@trutx trutx added the housekeeping Issues that help maintain flyte and keep it tech-debt free label Nov 15, 2024
@trutx trutx linked a pull request Nov 18, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
housekeeping Issues that help maintain flyte and keep it tech-debt free
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant