-
Notifications
You must be signed in to change notification settings - Fork 97
🌱 Refactoring PR for: Remove usage of FailureReason and FailureMessage (baremetal) #1735
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
🌱 Refactoring PR for: Remove usage of FailureReason and FailureMessage (baremetal) #1735
Conversation
janiskemper
left a comment
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 didn't fully understand the remediation part. Please add some explanation for the refactoring in the PR description
…e-reason--baremetal--on-top-main
can you please point me to a line in the code? |
|
@guettli I didn't understand the reason for this part "refactored setOwnerRemediatedConditionNew() to setOwnerRemediatedConditionToFailed()" |
When you look at the places where setOwnerRemediatedConditionToFailed() gets used, then you might see that the same code was repeated. But it was not consistently. It makes sense to have the same message in the condition and in the event. Additionally, do you want something to be changed here? |
…e-reason--baremetal--on-top-main
|
okay understood it now. Can you plz add this information to the PR description? |
done. Anything else which is blocking? I would like to merge the PR. |
Some changes of this PR got extracted, so that the PR gets smaller and easier to review:
🌱 Remove usage of FailureReason and FailureMessage (baremetal) by guettli · Pull Request #1716 · syself/cluster-api-provider-hetzner
tee tmp/test-unit-unfiltered.login test-unis.sh: Write unmodfied output to tmp directory. This is handy if you want to see all logs, without running tests again.return res, nil --> return reconcile.Result{}, nil