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

Avoid losing custom SANs for non-leader controllers #177

Merged
merged 3 commits into from
Aug 4, 2021

Conversation

hrenard
Copy link
Contributor

@hrenard hrenard commented Jul 30, 2021

Context

I want my cluster to only use IPs from the internal network of my cloud provider (Hetzner) to be able to stop the public interface of my control plane's load balancer. But I also want the public IP of my load balancer in the certificate, just in case.

Problem

When I add my load balancer public IP in spec.api.sans, it's added only in the init controller and not in all of them. After some debugging, it seems the issues is that cfg.Dig("spec", "api", "sans") is either a []interface{} or a []string.

Solution

Handle both types. I was too lazy to try understanding the Dig thing, so a better solution may exist.

@kke kke changed the title fix loosing custom sans Avoid losing custom SANs for non-leader controllers Aug 4, 2021
@kke kke merged commit 5b570a5 into k0sproject:main Aug 4, 2021
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 this pull request may close these issues.

None yet

2 participants