-
Notifications
You must be signed in to change notification settings - Fork 209
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
Sanitize the autodetected cluster name #2591
Sanitize the autodetected cluster name #2591
Conversation
36f43d2
to
cd2369f
Compare
cb3e912
to
c5eccc3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a note that cluster name in kubeconfig can be manipulated anytime, but I guess it's ok as part of installation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@giorio94 LGTM
c5eccc3
to
6a3e6a1
Compare
Let me try dropping the commit which bumps the cilium dependency, to see if the CI failures resolve (as they cannot be possibly caused by the other changes). That also leads to dropping the extra validation, which I'll add back in a separate PR. |
Instead of using the cluster name parameter, which could be different on upgrade (e.g., if the user previously specified a different name), or mutated in case it does not match the expected format. Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
Replace underscores and dots with dashes, as they are not allowed characters for cluster names. Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
Dots are not allowed as part of the cluster name. Let's fix the kind workflow to only configure valid cluster names. Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
6a3e6a1
to
93455c8
Compare
@doniacld Gentle ping 🙏 |
@doniacld Gentle ping 🙏 |
Replace underscores and dots with dashes, as they are not allowed characters for cluster names.
Additionally perform the same validation already implemented by the latest Cilium version, to exit early and provide a helpful message in case of errors.Edit. I've removed these changes as bumping the Cilium dependency seems to cause a couple of tests to fail quite consistently.
(The large diff count is caused by bumping the Cilium dependency to the current main, to reuse the already available validation function. Please review commit by commit)