medik8s / node-maintenance-operator

Kubernetes Operator to manage node maintenance through NodeMaintenance custom resources
https://www.medik8s.io/maintenance-node/
Apache License 2.0
28 stars 14 forks source link

Reconcile Refactor #117

Closed razo7 closed 7 months ago

razo7 commented 8 months ago
openshift-ci[bot] commented 8 months ago

Skipping CI for Draft Pull Request. If you want CI signal for your change, please convert it to an actual PR. You can still manually trigger a test run with /test all

mshitrit commented 8 months ago

/test 4.15-openshift-e2e

mshitrit commented 8 months ago

/lgtm Just nits, feel free to ignore

mshitrit commented 8 months ago

/lgtm

razo7 commented 8 months ago

/test 4.15-openshift-e2e

razo7 commented 8 months ago

/test 4.15-openshift-e2e

razo7 commented 8 months ago

/test 4.15-openshift-e2e

razo7 commented 7 months ago

/test 4.15-openshift-e2e

razo7 commented 7 months ago

/test 4.15-openshift-e2e

razo7 commented 7 months ago

/test 4.15-openshift-e2e

razo7 commented 7 months ago

/test 4.15-openshift-e2e

razo7 commented 7 months ago

Beside that, can you please make the context the 1st argument for all method

I initially did that but then I thought that the variable order, in the function declaration, should be in the order of appearance in the function (the second variable will be used only after the first one and not after the third one).

like it is in client-go as well? I think that would make the code at least a bit better readable.

I wasn't aware of that, but I can do that if it makes more sense

razo7 commented 7 months ago

/retest

openshift-ci[bot] commented 7 months ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: razo7, slintes

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: - ~~[OWNERS](https://github.com/medik8s/node-maintenance-operator/blob/main/OWNERS)~~ [razo7,slintes] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
razo7 commented 7 months ago

/unhold

razo7 commented 7 months ago

/retest