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

WINC-674: [vendor] move to openshift/api #788

Merged

Conversation

alinaryan
Copy link
Contributor

@alinaryan alinaryan commented Nov 3, 2021

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

@alinaryan
Copy link
Contributor Author

/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 3, 2021
@alinaryan alinaryan changed the title [vendor] move to openshift/api WINC-674: [vendor] move to openshift/api Nov 3, 2021
Copy link
Contributor

@saifshaikh48 saifshaikh48 left a 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.

Copy link
Contributor

@aravindhp aravindhp left a 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.

@@ -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{})
Copy link
Contributor

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 (
Copy link
Contributor

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.

@alinaryan alinaryan force-pushed the move-to-openshift-api branch 3 times, most recently from a6e4a49 to 5e06d0d Compare November 3, 2021 23:52
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"
Copy link
Contributor

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

@aravindhp aravindhp left a comment

Choose a reason for hiding this comment

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

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 4, 2021

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 4, 2021
Copy link
Contributor

@saifshaikh48 saifshaikh48 left a 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

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 4, 2021
@alinaryan
Copy link
Contributor Author

/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 4, 2021
@openshift-merge-robot openshift-merge-robot merged commit c7090d6 into openshift:master Nov 4, 2021
@alinaryan alinaryan deleted the move-to-openshift-api branch November 5, 2021 13:44
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants