Migrate to openshift/api#943
Conversation
elmiko
left a comment
There was a problem hiding this comment.
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.
ccf25f8 to
dc97c12
Compare
|
/retest-required |
1 similar comment
|
/retest-required |
|
@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. |
|
@elmiko I agree but new unit tests are out of scope for this PR, lets create a card for it. |
|
/approve |
|
[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 DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
JoelSpeed
left a comment
There was a problem hiding this comment.
I very much like the consistency that this PR will bring, left some minor stuff inline, PTAL
| @@ -1,9 +0,0 @@ | |||
| FILE_DIFF=$(git ls-files -o --exclude-standard) | |||
There was a problem hiding this comment.
Is this file not used to verify that the vendored dependencies are in sync? If it isn't, it should be 🤔
There was a problem hiding this comment.
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.
| func WrapMachineHealthCheck(mhc *machinev1.MachineHealthCheck) *MachineHealthCheckWrapper { | ||
| return &MachineHealthCheckWrapper{MachineHealthCheck: mhc} | ||
| } |
There was a problem hiding this comment.
Is this used? We don't have one for Machine? Also, do we need MachineSet wrappers?
There was a problem hiding this comment.
I will delete it. MachineSets do not use conditions in out implementation.
| // 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" |
There was a problem hiding this comment.
This is now duplicated with somewhere else in this PR, can we make one consistent location for it
There was a problem hiding this comment.
Yes, we can, the consistent location is openshift/api. I opened a PR for it openshift/api#1046
There was a problem hiding this comment.
I'll remove it from here once we merge the API PR.
There was a problem hiding this comment.
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
dc97c12 to
ecbdcb3
Compare
|
/lgtm |
|
/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. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
@alexander-demichev: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
This adjusts cluster-api-provider to the changes from openshift/machine-api-operator#943
This PR migrates API types to
openshift/api, that includes:openshift/apiimports