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

Restore k0s spec.api.sans updating that was removed in #772 #783

Merged
merged 2 commits into from
Nov 8, 2024

Conversation

kke
Copy link
Contributor

@kke kke commented Nov 4, 2024

Fixes #782

Closes k0sproject/k0s#5157 (skip v0.19.2 bump)

Brings back and improves the k0s config spec.api.sans manipulation that was removed in #772 commit fd0ba50 - turns out adding at least the controller's public address is required as k0s will not always get it from iface.AllAddresses() (NAT, fqdn, etc). Also restored the adding of the addresses of all the other controllers.

Now a single list of SANs is built globally just once and it should be identical between controllers. The list includes the addresses and possibly private addresses of all controllers.

@kke kke added the bug Something isn't working label Nov 4, 2024
@kke kke force-pushed the bring-back-sans-manipulation branch from 681df27 to 76c3b60 Compare November 4, 2024 14:10
phase/configure_k0s.go Outdated Show resolved Hide resolved
@kke kke force-pushed the bring-back-sans-manipulation branch from b6f98d4 to 1462a74 Compare November 7, 2024 11:51
Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
@kke kke force-pushed the bring-back-sans-manipulation branch from 1462a74 to 27b65e1 Compare November 7, 2024 12:01
@kke kke changed the title Restore sans manipulation that was removed in #772 Restore k0s spec.api.sans manipulation that was removed in #772 Nov 7, 2024
@kke kke changed the title Restore k0s spec.api.sans manipulation that was removed in #772 Restore k0s spec.api.sans updating that was removed in #772 Nov 7, 2024
Copy link
Member

@jnummelin jnummelin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kke kke merged commit 3d735a2 into main Nov 8, 2024
39 checks passed
@kke kke deleted the bring-back-sans-manipulation branch November 8, 2024 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Node FQDN not part of default ClusterConfig.spec.api.sans
2 participants