Skip to content
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

Merged
merged 4 commits into from
Jan 4, 2019
Merged

Accomodate provider spec #104

merged 4 commits into from
Jan 4, 2019

Conversation

ingvagabund
Copy link
Member

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 into ProviderSpec 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.

@openshift-ci-robot openshift-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Dec 23, 2018
@@ -20,10 +20,11 @@ required = [

[[constraint]]
name = "sigs.k8s.io/cluster-api"
#revision = "0734939e05aeb64ab198e3feeee8b4e90ee5cbb2"
branch = "master"
Copy link
Contributor

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.

Copy link
Member Author

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.

Copy link
Contributor

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?

Copy link
Member Author

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.

Copy link
Member Author

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.

@ingvagabund
Copy link
Member Author

/retest

1 similar comment
@paulfantom
Copy link
Contributor

/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.
Copy link
Contributor

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.

Copy link
Member Author

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?

Copy link
Contributor

@paulfantom paulfantom Jan 3, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

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?

Copy link
Contributor

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

Copy link
Member Author

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

Copy link
Contributor

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.

@paulfantom
Copy link
Contributor

/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

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 3, 2019
@openshift-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 3, 2019
@ingvagabund
Copy link
Member Author

/retest

Makefile Show resolved Hide resolved
pkg/cloud/libvirt/actuators/machine/actuator.go Outdated Show resolved Hide resolved
pkg/cloud/libvirt/actuators/machine/actuator.go Outdated Show resolved Hide resolved
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.
@frobware
Copy link
Contributor

frobware commented Jan 4, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 4, 2019
@ingvagabund
Copy link
Member Author

/hold cancel
we can switch to the docker image at any point.

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 4, 2019
@openshift-merge-robot openshift-merge-robot merged commit da6aa0a into openshift:master Jan 4, 2019
@ingvagabund ingvagabund deleted the accomodate-provider-spec branch January 4, 2019 23:37
enxebre added a commit to enxebre/machine-api-operator that referenced this pull request Jan 7, 2019
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
enxebre added a commit to enxebre/machine-api-operator that referenced this pull request Jan 7, 2019
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
enxebre added a commit to enxebre/machine-api-operator that referenced this pull request Jan 10, 2019
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.
enxebre added a commit to enxebre/machine-api-operator that referenced this pull request Jan 10, 2019
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.
enxebre added a commit to enxebre/machine-api-operator that referenced this pull request Jan 10, 2019
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.
enxebre added a commit to enxebre/machine-api-operator that referenced this pull request Jan 10, 2019
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.
enxebre added a commit to enxebre/machine-api-operator that referenced this pull request Jan 10, 2019
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.
ingvagabund added a commit to ingvagabund/autoscaler that referenced this pull request Jan 11, 2019
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.
frobware pushed a commit to frobware/autoscaler that referenced this pull request Mar 18, 2019
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.
frobware pushed a commit to frobware/autoscaler that referenced this pull request Mar 19, 2019
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.
frobware pushed a commit to frobware/autoscaler that referenced this pull request Mar 19, 2019
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.
frobware pushed a commit to frobware/autoscaler that referenced this pull request Mar 19, 2019
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.
frobware pushed a commit to frobware/autoscaler that referenced this pull request Mar 19, 2019
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.
frobware pushed a commit to frobware/autoscaler that referenced this pull request Mar 19, 2019
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.
frobware pushed a commit to frobware/autoscaler that referenced this pull request Mar 19, 2019
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.
frobware pushed a commit to frobware/autoscaler that referenced this pull request Mar 19, 2019
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.
frobware pushed a commit to frobware/autoscaler that referenced this pull request Mar 19, 2019
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.
frobware pushed a commit to frobware/autoscaler that referenced this pull request Mar 19, 2019
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.
frobware pushed a commit to frobware/autoscaler that referenced this pull request Mar 19, 2019
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.
frobware pushed a commit to frobware/autoscaler that referenced this pull request Mar 19, 2019
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.
frobware pushed a commit to frobware/autoscaler that referenced this pull request Mar 19, 2019
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.
frobware pushed a commit to frobware/autoscaler that referenced this pull request Mar 19, 2019
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.
frobware pushed a commit to frobware/autoscaler that referenced this pull request Mar 20, 2019
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.
frobware pushed a commit to frobware/autoscaler that referenced this pull request Mar 26, 2019
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.
frobware pushed a commit to frobware/autoscaler that referenced this pull request Mar 27, 2019
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.
frobware pushed a commit to frobware/autoscaler that referenced this pull request Mar 27, 2019
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.
smarterclayton pushed a commit to smarterclayton/autoscaler that referenced this pull request Mar 29, 2019
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.
frobware pushed a commit to frobware/autoscaler that referenced this pull request Jun 19, 2019
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants