-
Notifications
You must be signed in to change notification settings - Fork 75
OCPBUGS-64719: Add APIServer to HybridOverlay config #3586
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
base: master
Are you sure you want to change the base?
OCPBUGS-64719: Add APIServer to HybridOverlay config #3586
Conversation
|
Skipping CI for Draft Pull Request. |
|
hybrid-overlay.log showing successful rotation with 10min expiration: Flow:
|
|
@jrvaldes: This pull request references Jira Issue OCPBUGS-64719, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
b35d84b to
f6c28f7
Compare
|
/test ? |
|
@jrvaldes: The following commands are available to trigger required jobs: Use In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/remove-approve |
|
/test images |
|
/test lint |
|
/test unit |
|
/test vsphere-e2e-operator |
sebsoto
left a comment
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.
Thanks jose!
Mainly LGTM.
pkg/nodeconfig/init.go
Outdated
| // GetAPIServerEndpoint returns the cached Kubernetes API server endpoint | ||
| func GetAPIServerEndpoint() string { | ||
| return nodeConfigCache.apiServerEndpoint | ||
| } |
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.
Exposing this through nodeConfig is weird. Its an internal cache for nodeconfig,
Can we just get the infrastructure object in this function:
| func generateServicesManifest(ctx context.Context, client client.Client, port string, platform oconfig.PlatformType) (*servicescm.Data, error) { |
And pass the value where we need it?
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.
Addressed in e8bc82b
f6c28f7 to
e8bc82b
Compare
|
/test vsphere-e2e-operator |
This commit ensures the hybridOverlay service receives explicitly the address of the API Server Endpoint along with the cacert to enable certificate rotation. The --bootstrap-kubeconfig flag should be enough but there is a bug in OVN-K HybridOverlay [1] where the apiserver and cacert are not extracted from the bootstrap information, hence introducing the --k8s-apiserver and --k8s-cacert flags as part of the command. [1] https://issues.redhat.com/browse/OCPBUGS-65856
e8bc82b to
d89e96e
Compare
|
/test vsphere-e2e-operator |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sebsoto The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@jrvaldes: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
This commit ensures the hybridOverlay service receives explicitly the address of the API Server Endpoint along with the cacert to enable certificate rotation.
The --bootstrap-kubeconfig flag should be enough but there is a bug
in OVN-K HybridOverlay [1] where the apiserver and cacert are not extracted
from the bootstrap information, hence introducing the --k8s-apiserver and
--k8s-cacert flags as part of the command.
[1] https://issues.redhat.com/browse/OCPBUGS-65856
hybrid-overlay.log before:
hybrid-overlay.log with proposed implementation, see the
APIServerandCACertfields populated