-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Remove GCP cluster api provider #5437
Remove GCP cluster api provider #5437
Conversation
/test e2e-gcp I thought these tests should be run automatically with recent changes, but it looks like they are not getting queued. |
346d380
to
4737c4a
Compare
/test e2e-gcp |
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.
Thanks @patrickdillon I actaully meant to work on this today as well. Left a few comments. PTAL.
@@ -537,7 +535,6 @@ func (m *Master) Machines() ([]machineapi.Machine, error) { | |||
awsapi.AddToScheme(scheme) | |||
azureapi.AddToScheme(scheme) | |||
baremetalapi.AddToScheme(scheme) | |||
gcpapi.AddToScheme(scheme) |
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 we will need to add the GCP types into the schema here.
e.g.
installer/pkg/asset/machines/master.go
Lines 545 to 548 in c3a4dbc
// Add vsphere types to scheme | |
scheme.AddKnownTypes(machineapi.SchemeGroupVersion, | |
&machineapi.VSphereMachineProviderSpec{}, | |
) |
@@ -555,7 +552,6 @@ func (w *Worker) MachineSets() ([]machineapi.MachineSet, error) { | |||
awsprovider.SchemeGroupVersion, | |||
azureprovider.SchemeGroupVersion, | |||
baremetalprovider.SchemeGroupVersion, | |||
gcpprovider.SchemeGroupVersion, |
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.
Ditto.
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.
Please separate the vendor changes in their own commit.
@@ -4,8 +4,7 @@ import ( | |||
"encoding/json" | |||
"fmt" | |||
|
|||
gcpprovider "github.com/openshift/cluster-api-provider-gcp/pkg/apis/gcpprovider/v1beta1" | |||
|
|||
machineapi "github.com/openshift/api/machine/v1beta1" |
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.
Leave the machineapi import in a section separate from the installer import.
452963a
to
173546b
Compare
/test e2e-gcp Ok, fixed it up based on the recommendations. Let's see if we get further in the tests now. |
install suceeds, 2 failed tests that look unrelated /test e2e-gcp |
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 would be nice to see 2 separate commits. One for the code changes and the other for vendoring changes. Other than that it looks like the gcp test is passing, so lgtm.
/test e2e-metal |
/uncc |
173546b
to
98e2d2a
Compare
Oops, I lost track of this but have now updated/rebased. |
/test e2e-gcp |
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.
GCP test passed.
/lgtm
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: staebler 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-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
7 similar comments
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
@patrickdillon: The following test failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
/retest-required Please review the full test history for this PR and help us cut down flakes. |
Now that the GCP machine provider spec has moved to the openshift/api we can remove the GCP cluster api provider.
98e2d2a
to
3e4b438
Compare
98e2d2a30...3e4b438b1
/lgtm |
3e4b438
to
830d0d7
Compare
3e4b438b1...830d0d73f
/lgtm |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
6 similar comments
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
I ended up doing this work while trying to eliminate our need to
replace
the cluster-api-provider-azure. More work is needed beyond this to achieve that, but we might as well commit it. I am doing this work for Azure, but we should be able to do something similar for all other providers that have migrated to openshift/api.