Skip to content

Migrate to openshift/api#943

Merged
openshift-merge-robot merged 10 commits into
openshift:masterfrom
alexander-demicev:migratetoapi
Oct 29, 2021
Merged

Migrate to openshift/api#943
openshift-merge-robot merged 10 commits into
openshift:masterfrom
alexander-demicev:migratetoapi

Conversation

@alexander-demicev
Copy link
Copy Markdown
Contributor

This PR migrates API types to openshift/api, that includes:

Copy link
Copy Markdown
Contributor

@elmiko elmiko left a comment

Choose a reason for hiding this comment

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

this looks generally good to me, i just have a question and a comment:

do the validateMachine and validateMachineset functions get tested in the normal webhook unit tests?

i agree with your comment from slack about removing the generate targets from the makefile too.

@alexander-demicev
Copy link
Copy Markdown
Contributor Author

/retest-required

1 similar comment
@alexander-demicev
Copy link
Copy Markdown
Contributor Author

/retest-required

@alexander-demicev
Copy link
Copy Markdown
Contributor Author

@elmiko I don't think these functions are tested as a part of webhooks tests, but it looks to me that these functions can be moved to webhooks entirely.

@elmiko
Copy link
Copy Markdown
Contributor

elmiko commented Oct 27, 2021

@elmiko I don't think these functions are tested as a part of webhooks tests, but it looks to me that these functions can be moved to webhooks entirely.

whichever you think is best. if the functions are only used here, then it might make sense to just keep them in this repo, but if we do we should add unit tests for them.

@alexander-demicev
Copy link
Copy Markdown
Contributor Author

@elmiko I agree but new unit tests are out of scope for this PR, lets create a card for it.

@elmiko
Copy link
Copy Markdown
Contributor

elmiko commented Oct 27, 2021

/approve

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Oct 27, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: elmiko

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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 Oct 27, 2021
Copy link
Copy Markdown
Contributor

@JoelSpeed JoelSpeed left a comment

Choose a reason for hiding this comment

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

I very much like the consistency that this PR will bring, left some minor stuff inline, PTAL

Comment thread hack/verify-diff.sh
@@ -1,9 +0,0 @@
FILE_DIFF=$(git ls-files -o --exclude-standard)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this file not used to verify that the vendored dependencies are in sync? If it isn't, it should be 🤔

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It doesn't look like we use it for verifying vendored stuff, I brought this script back. Let's make a card for adding a CI job for it.

Comment thread pkg/controller/vsphere/actuator_test.go Outdated
Comment thread pkg/util/conditions/matcher_test.go Outdated
Comment thread pkg/util/conditions/setter.go Outdated
Comment thread pkg/util/conditions/wrap.go Outdated
Comment on lines +31 to +33
func WrapMachineHealthCheck(mhc *machinev1.MachineHealthCheck) *MachineHealthCheckWrapper {
return &MachineHealthCheckWrapper{MachineHealthCheck: mhc}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this used? We don't have one for Machine? Also, do we need MachineSet wrappers?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I will delete it. MachineSets do not use conditions in out implementation.

Comment on lines +73 to +76
// PausedAnnotation is an annotation that can be applied to MachineHealthCheck objects to prevent the MHC controller
// from processing it.
// TODO: move this annotation to the openshift/api package
PausedAnnotation = "cluster.x-k8s.io/paused"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is now duplicated with somewhere else in this PR, can we make one consistent location for it

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, we can, the consistent location is openshift/api. I opened a PR for it openshift/api#1046

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'll remove it from here once we merge the API PR.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I know you're keen to merge this soon, so perhaps to avoid having to wait, could you make a jira card for next sprint or a BZ to make sure we don't forget to update this, and then make the annotation variable private where it is used for now, then it should be easy to change later

@JoelSpeed
Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Oct 29, 2021
@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Oct 29, 2021

@alexander-demichev: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/generate dc97c12 link true /test generate
ci/prow/e2e-vsphere ecbdcb3 link false /test e2e-vsphere
ci/prow/e2e-vsphere-operator ecbdcb3 link false /test e2e-vsphere-operator
ci/prow/e2e-gcp-operator ecbdcb3 link false /test e2e-gcp-operator
ci/prow/e2e-vsphere-upgrade ecbdcb3 link false /test e2e-vsphere-upgrade
ci/prow/e2e-aws-disruptive ecbdcb3 link false /test e2e-aws-disruptive

Full PR test history. Your PR dashboard.

Details

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.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 128c5c9 into openshift:master Oct 29, 2021
cfergeau added a commit to cfergeau/cluster-api-provider-libvirt that referenced this pull request Jan 31, 2023
This adjusts cluster-api-provider to the changes from openshift/machine-api-operator#943
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.

5 participants