-
Notifications
You must be signed in to change notification settings - Fork 462
Bug 1825948: cloudConfig: read cloud Config from openshift-config-managed/kube-cloud-config ConfigMap #1658
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
Bug 1825948: cloudConfig: read cloud Config from openshift-config-managed/kube-cloud-config ConfigMap #1658
Conversation
|
/cc sdodson |
|
/cc @sdodson |
ca365ee to
ac77ea8
Compare
|
/retest |
1 similar comment
|
/retest |
|
/assign @runcom @abhinavdahiya |
|
/skip |
|
/retest |
cb5a911 to
31799e4
Compare
|
interesting, since 30 mins jobs are at |
|
/retest |
1 similar comment
|
/retest |
|
@sinnykumari @runcom this might be a good opportunity to move to using properly typed PlatformType identifiers instead of the untyped strings we're using (and that are already marked as wrong by the TODO comment). This commit here from another PR migrates the Controller over to use them, it might serve you as a reference: 27502d5 The PlatformType fields already defined in ControllerConfig.Infra.Status.PlatformStatus.Type, it's just that the Controller doesn't process them, and looks up that info in the ControllerConfig.Platform strings instead. |
31799e4 to
d154635
Compare
|
/retest |
|
so the MCO should be reading from so, therefore, don't look at the so personally this should be |
d154635 to
0355281
Compare
|
Thanks Abhinav for the feedback, made changes accordingly. |
|
/bugzilla refresh |
|
@sinnykumari: This pull request references Bugzilla bug 1825948, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
DetailsIn 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/test-infra repository. |
|
/skip |
|
PR referencing bug https://bugzilla.redhat.com/show_bug.cgi?id=1825944 has been merged. |
|
/retest |
|
/retest |
|
/test e2e-gcp-op |
|
Yay, tests are passing now! |
|
@abhinavdahiya ptal |
…ud-config ConfigMap cloudConfig is now generated by kube_cloud_config controller for all supported platforms. Controller generates kube-cloud-config ConfigMap in openshift-config-managed namespace where cloud.conf key is stored. Links: - https://github.com/openshift/enhancements/blob/master/enhancements/installer/aws-custom-region-and-endpoints.md - openshift/api#599 - openshift/api#621
d08d02c to
e7455dc
Compare
|
@sinnykumari: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions 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/test-infra repository. I understand the commands that are listed here. |
|
/skip |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abhinavdahiya, sinnykumari The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@sinnykumari: All pull requests linked via external trackers have merged: openshift/machine-config-operator#1658. Bugzilla bug 1825948 has been moved to the MODIFIED state. DetailsIn 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/test-infra repository. |
Previously the cloud provider config map was sourced from the `.spec.cloudConf` of the infrastructure object. but to enable user input and stitching explained in [1] and [2], we added a controller to generate a cloud configuraration using the spec for use by kubelet and kube cloud controller manager. The new API defined in [3] creates a config map `openshift-config-managed/kube-cloud-config` with the configuration in `cloud.conf` key. We updated the in-cluster MCO to use the new API [4] but the MCO on bootstrap host was left untouched because the controller could not generated on the bootstrap host yet. But [5] and [6] intend to provide the same generated config map on the bootstrap host for MCO, and therefore we need the bootstrap MCO to read the key defined by the generated API but fallback to he spec key (old behavior) for backward compatibility. [1]: https://github.com/openshift/enhancements/blob/master/enhancements/installer/aws-custom-region-and-endpoints.md [2]: https://github.com/openshift/enhancements/blob/master/enhancements/installer/azure-support-known-cloud-environments.md [3]: https://github.com/openshift/api/blob/e21882127f24772e3b5388fe1fdc37669e8e1d04/config/v1/types_infrastructure.go#L26-L40 [4]: openshift#1658 [5]: openshift/cluster-config-operator#140 [6]: openshift/installer#3831
cloudConfig is now generated by kube_cloud_config controller for all supported
platforms. Controller generates kube-cloud-config ConfigMap in openshift-config-managed
namespace where cloud.conf key is stored.
Links: