-
Notifications
You must be signed in to change notification settings - Fork 56
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
Accomodate provider spec #104
Accomodate provider spec #104
Conversation
@@ -20,10 +20,11 @@ required = [ | |||
|
|||
[[constraint]] | |||
name = "sigs.k8s.io/cluster-api" | |||
#revision = "0734939e05aeb64ab198e3feeee8b4e90ee5cbb2" | |||
branch = "master" |
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 think it better to use tag 0.0.0-alpha.4
because it includes all recent changes and will prevent broken API on deps update
.
The same true for all related cluster-api
repositories.
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.
That release does not contain kubernetes-sigs/cluster-api#598. It's been unwritten rule to take a specific revision or master HEAD til now. Given we usually need the latest changes in the project, taking anything than master HEAD can be problematic.
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 see your point but can we at least stick to some commit on the master?
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.
If we do it here, we need to do it everywhere else. Though, we can wait until the next release is out and update all deps at once in all repos.
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.
Otherwise, the exact sha of the cluster-api is in the Godep.lock file. It gets picked by the dep itself.
/retest |
1 similar comment
/retest |
@@ -309,6 +309,12 @@ func bootstrapCommand() *cobra.Command { | |||
glog.Info(msg) | |||
} | |||
|
|||
clusterFramework.MachineControllerImage = "openshift/origin-libvirt-machine-controllers:v4.0.0" | |||
clusterFramework.MachineManagerImage = "openshift/origin-libvirt-machine-controllers:v4.0.0" | |||
// TODO(jchaloup): once docker.io/openshift/origin-machine-api-operator gets updated, switch back to 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.
It should get an update today, as openshift/machine-api-operator#159 is on its way.
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.
Who is responsible for making the updates?
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.
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.
How often is it done?
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.
As far as I remember it should be done every couple of hours
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.
The latest mao docker images is two weeks old :-|
$ docker pull docker.io/openshift/origin-machine-api-operator
$ docker images | grep docker.io/openshift/origin-machine-api-operator
docker.io/openshift/origin-machine-api-operator latest 6a73aff2da22 2 weeks ago 357 MB
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.
It seems like like CI image mirroring responsible for uploading images to docker hub was down between ~13 days ago and ~43 minutes ago.
/approve putting it on hold since we should have a new mao image in docker hub today (this should do it: openshift/machine-api-operator#159) and in turn new image should resolve a TODO. /hold |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: paulfantom 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 |
/retest |
Make sure .providerConfig field of machine object is still available until all consumers migrate to .providerSpec field. The .providerSpec field is the default field now and .providerConfig is used only when both .providerSpec.Value and .providerSpec.ValueFrom are nil.
/lgtm |
/hold cancel |
Since we merge this upstream https://github.com/kubernetes-sigs/cluster-api/pull/593/files we needed to support both annotations for backwards compatibility. After aws/libvirt actuators including latest cluster-api, the old annotation can be removed. See openshift/cluster-api-provider-aws#127 and openshift/cluster-api-provider-libvirt#104
Since we merge this upstream https://github.com/kubernetes-sigs/cluster-api/pull/593/files we needed to support both annotations for backwards compatibility. After aws/libvirt actuators including latest cluster-api, the old annotation can be removed. See openshift/cluster-api-provider-aws#127 and openshift/cluster-api-provider-libvirt#104
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 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.
Built on top of #103
Due to the following breaking change kubernetes-sigs/cluster-api#548 we need to support both
.providerConfig
and.providerSpec
fields until all consumers of the libvirt actuator migrate to new.providerSpec
field.We could just keep the
.providerConfig
and make sure it gets de-serialized intoProviderSpec
struct. Though, folks could get confused by that and we should stay with the upstream name convention.Once merged, we can rename the following:
providerConfig
ProviderConfig
DecodeProviderConfig
EncodeProviderConfig
LibvirtMachineProviderConfig
to corresponding:
providerSpec
ProviderSpec
DecodeProviderSpec
EncodeProviderSpec
LibvirtMachineProviderSpec
plus other identifiers that use
provider{c,C}onfig
string.