-
Notifications
You must be signed in to change notification settings - Fork 461
Cloud provider conf #177
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
Cloud provider conf #177
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: flaper87 If they are not already assigned, you can assign the PR to them by writing 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 |
|
/cc @tomassedovic @hardys |
|
Looks like |
pkg/controller/template/render.go
Outdated
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.
Should there be a default in this switch statement?
pkg/operator/render.go
Outdated
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.
you can return error
|
@flaper87 the cloud provider config is usually a list of options. |
|
i just hit this issue just this morning trying to do an install. glad to see someone is already on it 👍 |
|
Thakn y'all for the review! @abhinavdahiya a config map should also work. Should the config map be created by the installer or by MCO directly? One problem we have on the openstack provider side is that this file has to exist in the filesystem (at least until I manage to remove this constraint). Would it be ok for us to start with this approach and iterate towards using configmaps? |
3f4c7e2 to
1c87bef
Compare
|
This won't work until openshift/installer#611 lands but I'd like to get some consensus on this one before merging the installer patch. /hold |
I am pretty sure all clouds will eventually have need for a cloud config file, like azure... |
|
@abhinavdahiya awesome, Thanks! So, lemme recap and see if I understood correctly. The installer will create a configmap that MCO will use and from which (at least in this case) we'll be able to create the required file on the node FS. correct? |
|
installer has https://github.com/openshift/installer/blob/master/data/data/manifests/bootkube/kube-cloud-config.yaml which is empty right now. i think we should populate that config map and then teach MC* to use it. |
|
@abhinavdahiya sounds good to me, I'll give it a go! |
|
The config map should be editable by end users on bring your own infra environments as noted for azure, gce, and vsphere. We do need this PR to update so kubelet is passed the flag once the final source is available. |
|
@abhinavdahiya @derekwaynecarr @sjenning hey folks, I'd really like to move this PR forward as we're kinda blocked on not being able to start the kubelet due to the missing cloud operator config. What can I do to help move this forward? Any indication on what I should do next? |
|
need to rebase and run |
|
If it can be made to pass e2e-aws, then it seems fine to me. I'll see if I can test in on my Openstack cluster soon. |
1c87bef to
7995451
Compare
|
@sjenning done! Thanks for the feedback :) |
7995451 to
cd9da15
Compare
| inline: | | ||
| {{with cloudProviderConfig .}} | ||
| [Global] | ||
| username={{.Cloud.AuthInfo.Username}} |
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.
will this make the username and pw generally visible from a machineconfig?
if so, this seems like a problem since the ignition configs are not generally protected.
we need to determine a way to deliver secret data to nodes securely.
|
Looks like a number of these files need a gofmt. |
|
@flaper87: PR needs rebase. 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. |
|
/cc @frobware |
|
how does #591 affect this PR? |
|
@flaper87: The following tests 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. |
…try-override Bug 1744071: allow override of jenkins* imagestream registries for disconnected/mi…
In order to start OpenShift with the OpenStack provider enabled, there ought to be a config file in the server. The Openshift deployment on OpenStack is currently failing because such file is not present.
This patch, combined with openshift/installer#611 aims to create the config file in the destination node using the cloud provided by the operator during the dpeloyment.