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

Deprecate --mode option kubelet-registration-probe #309

Closed
2 tasks
mauriciopoppe opened this issue Jun 22, 2023 · 3 comments · Fixed by #316
Closed
2 tasks

Deprecate --mode option kubelet-registration-probe #309

mauriciopoppe opened this issue Jun 22, 2023 · 3 comments · Fixed by #316

Comments

@mauriciopoppe
Copy link
Member

In #143 we added a workaround for a race condition happening in Windows only in the kubelet registration mechanism, as part of the workaround I added the flag mode in #152 which through a livenessProbe would crash the Pod if the kubelet registration failed, fortunately @luckerby found the race in kubernetes/kubernetes#104584 (comment) and fixed it upstream.

With the above fix the mode flag is no longer needed and can be deprecated, its introduction created issues with the probe file it created in readOnly filesystems as seen in #244.

I still need to define the deprecation timeline and the steps to remove the flag.

Tasks

Preview Give feedback

As an alternative we can keep the feature but under the hood we would do nothing when --mode=kubelet-registration-probe, if so then I can safely remove the code that tries to create a file.

@mauriciopoppe
Copy link
Member Author

Another approach:

@jsafrane
Copy link
Contributor

We can remove a cmdline option only by bumping the major version.

I would deprecate the --mode option in the next v2.x release (with a big release note) and remove it afterwards and release v3.0. IMO it is not very helpful to remove implementation of --mode, but keep the option there.

@mauriciopoppe
Copy link
Member Author

Sounds good, yes that's comment #309 (comment). Changing the title to reflect the deprecation of the --mode option kubelet-registration-probe only.

/retitle Deprecate --mode option kubelet-registration-probe

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

Successfully merging a pull request may close this issue.

2 participants