-
Notifications
You must be signed in to change notification settings - Fork 54
bootstrapper: add fallback endpoint and custom endpoint to apiserver certificate SAN field #2108
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
bootstrapper: add fallback endpoint and custom endpoint to apiserver certificate SAN field #2108
Conversation
This comment was marked as off-topic.
This comment was marked as off-topic.
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.
Doing another manual test run on all 3 CSPs. But code looks good to me :)
return fmt.Errorf("setting new kubeadm config: %w", err) | ||
} | ||
|
||
fmt.Fprintln(u.outWriter, "Successfully extended the cluster's apiserver SAN field") |
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.
This returns an unchecked error. This happens throughout this file. I think we should either handle this with "normal" error handling or have something like mustFprintln(...)
or must(fmt.Fprintln(...))
so that we don't forget about the error.
Of course this can be handled in another PR.
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.
I'll do a follow up PR
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
8e4505c
to
dbf95ab
Compare
constants: add new constants for cluster configuration and custom endpoint cloud: support apiserver cert sans and prepare for endpoint migration on AWS config: add customEndpoint field bootstrapper: use per-CSP apiserver cert SANs cli: route customEndpoint to terraform and add migration for apiserver cert SANs bootstrapper: change interface of GetLoadBalancerEndpoint to return host and port separately
dbf95ab
to
cae6420
Compare
Context
This is part of the canonical endpoint RFC. We start adding the fallback endpoint and the custom endpoint to the apiserver certificate SAN field.
After this is rolled out, we can use the new endpoints.
Proposed change(s)
Checklist