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
WINC-674: [vendor] move to openshift/api #788
WINC-674: [vendor] move to openshift/api #788
Conversation
/hold |
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.
Looks good! Suggestion to separate the code changes and the vendoring into separate commits for readability.
b6ae2ed
to
65bd035
Compare
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 for working on this, @alinaryan. Just some minor change requests.
test/e2e/create_test.go
Outdated
@@ -193,7 +193,8 @@ func (tc *testContext) createWindowsMachineSet(replicas int32, windowsLabel bool | |||
if err != nil { | |||
return nil, err | |||
} | |||
return tc.client.Machine.MachineSets(clusterinfo.MachineAPINamespace).Create(context.TODO(), machineSet, metav1.CreateOptions{}) | |||
return tc.client.Machine.MachineSets(clusterinfo.MachineAPINamespace).Create(context.TODO(), machineSet, | |||
metav1.CreateOptions{}) |
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 revert this change
@@ -2,33 +2,28 @@ module github.com/openshift/windows-machine-config-operator | |||
|
|||
go 1.16 | |||
|
|||
replace ( |
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 suggest naming this commit [vendor] Update openshift/api and openshift/client-go
.
a6e4a49
to
5e06d0d
Compare
core "k8s.io/api/core/v1" | ||
meta "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
"k8s.io/apimachinery/pkg/runtime" | ||
|
||
"github.com/openshift/windows-machine-config-operator/test/e2e/clusterinfo" | ||
) | ||
|
||
const defaultCredentialsSecretName = "vsphere-cloud-credentials" | ||
const defaultCredentialsSecretName = "mapi-cloud-credentials" |
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 vSphere e2e test is failing because of this.
This commit was needed as the Machine API resources have migrated to openshift/api.
Ran: go get github.com/openshift/api@master go get github.com/openshift/client-go@master Ran: go mod tidy && go mod vendor && go mod verify Ran: make build No build errors.
5e06d0d
to
1848b1e
Compare
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alinaryan, aravindhp 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 |
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.
/lgtm
Thanks for working on this @alinaryan
/hold cancel |
Machine API resources have moved from openshift/machine-api to openshift/api.
openshift/machine-api-operator imports were replaced with openshift/api
generated client imports were replaced with client-go