-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
⚠️ Updated function name HasPausedAnnotation to HasPaused and HasSkipRemediationAnnotation to HasSkipRemediation #5545
Conversation
Welcome @tamboliasir1! |
Hi @tamboliasir1. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
util/annotations/helpers.go
Outdated
} | ||
|
||
// IsExternallyManaged returns true if the object has the `managed-by` annotation. | ||
func IsExternallyManaged(o metav1.Object) bool { | ||
return hasAnnotation(o, clusterv1.ManagedByAnnotation) | ||
} | ||
|
||
//Deprecated: Please use `HasPaused` instead |
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.
Nit: This is missing space after // and final period.
// Deprecated: this is going to be removed in a next release. Please use `HasPaused` instead.
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.
Got it..
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.
Would it be a good idea to replace 'HasSkipRemediationAnnotation' in this PR too? It has the same stuttering problem.
@killianmuldoon Yeah sure I can do it.. Should I rename it to |
@tamboliasir1 That sounds good - it's only got one usage as far as I can see, so please update there too. |
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.
/ok-to-test
@tamboliasir1 when you get a chance, please squash commits 1 & 2 since they are related to the same change |
lgtm pending squash |
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.
lgtm pending squash
Hi If I updated changes for go lint now so should I squash all commits in one or should I do squash for particular commit? Also should I mark this as ' |
@tamboliasir1 you can squash this into a single commit - the :seedling marking seems right to me. This isn't breaking because the old methods are just being deprecated, not removed. |
@tamboliasir1 Linting still seems to be failing. |
e81cecf
to
836727e
Compare
Updated lint and squashed git commits. |
@tamboliasir1 The PR looks good. Thanks for working on this. :) /lgtm |
/retest |
/lgtm |
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.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabriziopandini 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 |
/retest |
Thank you for opportunity and guidance.
Fixes #5539