-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Rename ProviderConfig to ProviderSpec #548
Conversation
Hm. Any chance we can increment to a v1alpha2 when merging this? /ok-to-test |
@alvaroaleman - why do you want to increment the api version? Right now, with a single api version, we don't have to worry about version translation, which isn't yet a feature of CRDs. Are you suggesting that we move to v1alpha2 and drop v1alpha1? |
/lgtm Holding on resolution of @alvaroaleman's question. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dlipovetsky, roberthbailey 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 |
Yes exactly that, to a) make everyone aware there is a pretty breaking change b) allow folks to build their own migration if they choose to |
@dlipovetsky - are you ok waiting to merge this until we can discuss during the weekly meeting next Wed about changing the apiversion? |
@roberthbailey Absolutely ok with discussing it at the meeting, thanks. I'll also try to verify using the GCP provider before then. |
3d67d3e
to
8b586e7
Compare
I rebased. As part of the rebase, I renamed Config->Spec in the newly added MachineClass types. |
8b586e7
to
0c31d1f
Compare
@roberthbailey I think my plan to try out this change with the GCP provider was too ambitious. I started working on this, but I noticed that the GCP provider was vendoring https://github.com/pwittrock/cluster-api, and I'm not changing to my branch will be straightforward. Is it reasonable to merge this PR and let providers update later? |
I sent kubernetes-sigs/cluster-api-provider-gcp#49 to update the vendored dependency. But either way, the only real way to test your change in that repo is to change the source though. You need to add a constraint to Gopkg.toml locally, run
should do the trick. |
@roberthbailey Thanks! I was less worried about dep, and more worried about the delta between pwittrock's branch and mine, which is rebased on master. Once your kubernetes-sigs/cluster-api-provider-gcp#49 lands, I'll try building gcp provider with my changes here. |
The PR in the gcp repo just merged. |
@dlipovetsky - have you had a chance to test yet? We'd like to get this merged soon since the gitbook documentation is written assuming that this change has already gone in. :) |
The machine provideConfig field has been renamed upstream kubernetes-sigs/cluster-api#548. AWS/Libvirt providers have been accommodated for supporting the new field openshift/cluster-api-provider-aws#127 and openshift/cluster-api-provider-libvirt#104 in a backward compatible manner openshift#155, hence we want to only allow the new field here and eventually drop the old one on the providers.
The machine provideConfig field has been renamed upstream kubernetes-sigs/cluster-api#548. AWS/Libvirt providers have been accommodated for supporting the new field openshift/cluster-api-provider-aws#127 and openshift/cluster-api-provider-libvirt#104 in a backward compatible manner openshift#155, hence we want to only allow the new field here and eventually drop the old one on the providers.
The machine provideConfig field has been renamed upstream kubernetes-sigs/cluster-api#548. AWS/Libvirt providers have been accommodated for supporting the new field openshift/cluster-api-provider-aws#127 and openshift/cluster-api-provider-libvirt#104 in a backward compatible manner openshift#155, hence we want to only allow the new field here and eventually drop the old one on the providers.
The machine provideConfig field has been renamed upstream kubernetes-sigs/cluster-api#548. AWS/Libvirt providers have been accommodated for supporting the new field openshift/cluster-api-provider-aws#127 and openshift/cluster-api-provider-libvirt#104 in a backward compatible manner openshift#155, hence we want to only allow the new field here and eventually drop the old one on the providers.
The machine provideConfig field has been renamed upstream kubernetes-sigs/cluster-api#548. AWS/Libvirt providers have been accommodated for supporting the new field openshift/cluster-api-provider-aws#127 and openshift/cluster-api-provider-libvirt#104 in a backward compatible manner. Hence we want to only allow the new field here and eventually drop the old one on the providers.
The machine provideConfig field has been renamed upstream kubernetes-sigs/cluster-api#548. AWS/Libvirt providers have been accommodated for supporting the new field openshift/cluster-api-provider-aws#127 and openshift/cluster-api-provider-libvirt#104 in a backward compatible manner. Hence we want to only allow the new field here and eventually drop the old one on the providers.
The machine provideConfig field has been renamed upstream kubernetes-sigs/cluster-api#548. AWS/Libvirt providers have been accommodated for supporting the new field openshift/cluster-api-provider-aws#127 and openshift/cluster-api-provider-libvirt#104 in a backward compatible manner. Hence we want to only allow the new field here and eventually drop the old one on the providers.
The machine provideConfig field has been renamed upstream kubernetes-sigs/cluster-api#548. AWS/Libvirt providers have been accommodated for supporting the new field openshift/cluster-api-provider-aws#127 and openshift/cluster-api-provider-libvirt#104 in a backward compatible manner. Hence we want to only allow the new field here and eventually drop the old one on the providers.
The machine provideConfig field has been renamed upstream kubernetes-sigs/cluster-api#548. AWS/Libvirt providers have been accommodated for supporting the new field openshift/cluster-api-provider-aws#127 and openshift/cluster-api-provider-libvirt#104 in a backward compatible manner. Hence we want to only allow the new field here and eventually drop the old one on the providers.
The machine provideConfig field has been renamed upstream kubernetes-sigs/cluster-api#548. AWS/Libvirt providers have been accommodated for supporting the new field openshift/cluster-api-provider-aws#127 and openshift/cluster-api-provider-libvirt#104 in a backward compatible manner. Hence we want to only allow the new field here and eventually drop the old one on the providers.
The machine provideConfig field has been renamed upstream kubernetes-sigs/cluster-api#548. AWS/Libvirt providers have been accommodated for supporting the new field openshift/cluster-api-provider-aws#127 and openshift/cluster-api-provider-libvirt#104 in a backward compatible manner. Hence we want to only allow the new field here and eventually drop the old one on the providers.
The machine provideConfig field has been renamed upstream kubernetes-sigs/cluster-api#548. AWS/Libvirt providers have been accommodated for supporting the new field openshift/cluster-api-provider-aws#127 and openshift/cluster-api-provider-libvirt#104 in a backward compatible manner. Hence we want to only allow the new field here and eventually drop the old one on the providers.
The machine provideConfig field has been renamed upstream kubernetes-sigs/cluster-api#548. AWS/Libvirt providers have been accommodated for supporting the new field openshift/cluster-api-provider-aws#127 and openshift/cluster-api-provider-libvirt#104 in a backward compatible manner. Hence we want to only allow the new field here and eventually drop the old one on the providers.
The machine provideConfig field has been renamed upstream kubernetes-sigs/cluster-api#548. AWS/Libvirt providers have been accommodated for supporting the new field openshift/cluster-api-provider-aws#127 and openshift/cluster-api-provider-libvirt#104 in a backward compatible manner. Hence we want to only allow the new field here and eventually drop the old one on the providers.
The machine provideConfig field has been renamed upstream kubernetes-sigs/cluster-api#548. AWS/Libvirt providers have been accommodated for supporting the new field openshift/cluster-api-provider-aws#127 and openshift/cluster-api-provider-libvirt#104 in a backward compatible manner. Hence we want to only allow the new field here and eventually drop the old one on the providers.
The machine provideConfig field has been renamed upstream kubernetes-sigs/cluster-api#548. AWS/Libvirt providers have been accommodated for supporting the new field openshift/cluster-api-provider-aws#127 and openshift/cluster-api-provider-libvirt#104 in a backward compatible manner. Hence we want to only allow the new field here and eventually drop the old one on the providers.
The machine provideConfig field has been renamed upstream kubernetes-sigs/cluster-api#548. AWS/Libvirt providers have been accommodated for supporting the new field openshift/cluster-api-provider-aws#127 and openshift/cluster-api-provider-libvirt#104 in a backward compatible manner. Hence we want to only allow the new field here and eventually drop the old one on the providers.
The machine provideConfig field has been renamed upstream kubernetes-sigs/cluster-api#548. AWS/Libvirt providers have been accommodated for supporting the new field openshift/cluster-api-provider-aws#127 and openshift/cluster-api-provider-libvirt#104 in a backward compatible manner. Hence we want to only allow the new field here and eventually drop the old one on the providers.
The machine provideConfig field has been renamed upstream kubernetes-sigs/cluster-api#548. AWS/Libvirt providers have been accommodated for supporting the new field openshift/cluster-api-provider-aws#127 and openshift/cluster-api-provider-libvirt#104 in a backward compatible manner. Hence we want to only allow the new field here and eventually drop the old one on the providers.
The machine provideConfig field has been renamed upstream kubernetes-sigs/cluster-api#548. AWS/Libvirt providers have been accommodated for supporting the new field openshift/cluster-api-provider-aws#127 and openshift/cluster-api-provider-libvirt#104 in a backward compatible manner. Hence we want to only allow the new field here and eventually drop the old one on the providers.
The machine provideConfig field has been renamed upstream kubernetes-sigs/cluster-api#548. AWS/Libvirt providers have been accommodated for supporting the new field openshift/cluster-api-provider-aws#127 and openshift/cluster-api-provider-libvirt#104 in a backward compatible manner. Hence we want to only allow the new field here and eventually drop the old one on the providers.
The machine provideConfig field has been renamed upstream kubernetes-sigs/cluster-api#548. AWS/Libvirt providers have been accommodated for supporting the new field openshift/cluster-api-provider-aws#127 and openshift/cluster-api-provider-libvirt#104 in a backward compatible manner. Hence we want to only allow the new field here and eventually drop the old one on the providers.
The machine provideConfig field has been renamed upstream kubernetes-sigs/cluster-api#548. AWS/Libvirt providers have been accommodated for supporting the new field openshift/cluster-api-provider-aws#127 and openshift/cluster-api-provider-libvirt#104 in a backward compatible manner. Hence we want to only allow the new field here and eventually drop the old one on the providers.
The machine provideConfig field has been renamed upstream kubernetes-sigs/cluster-api#548. AWS/Libvirt providers have been accommodated for supporting the new field openshift/cluster-api-provider-aws#127 and openshift/cluster-api-provider-libvirt#104 in a backward compatible manner. Hence we want to only allow the new field here and eventually drop the old one on the providers.
The machine provideConfig field has been renamed upstream kubernetes-sigs/cluster-api#548. AWS/Libvirt providers have been accommodated for supporting the new field openshift/cluster-api-provider-aws#127 and openshift/cluster-api-provider-libvirt#104 in a backward compatible manner. Hence we want to only allow the new field here and eventually drop the old one on the providers.
What this PR does / why we need it:
Renames ProviderConfig to ProviderSpec, to match the Spec/Status convention used in Kubernetes-style APIs.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #414
Special notes for your reviewer:
This is a breaking API change. The consensus in the meeting a couple months back was for in support of this change, but it can be put on hold for a while. I will test this change with https://github.com/kubernetes-sigs/cluster-api-provider-gcp/ and report back in this PR.
Release Note: