-
Notifications
You must be signed in to change notification settings - Fork 490
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
Add condition in Failed accepted reasons #1672
Conversation
Welcome @Sajiyah-Salat! |
Hi @Sajiyah-Salat. 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. |
/ok-to-test |
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.
Well, the actual reason is missing here. You should add the Reason AND the documentation. Furthermore:
- the reason needs to be CamelCase
- just as a recommendation, I'd use something like
ParentRefNotPermitted
.
I will make changes accordingly. Thank you for your review. |
I will add documentation and reason help me with programming line. |
Why my build fails. let me know the reason also help me adding that one line. I am kinda confused in that. |
The reason I'm seeing is: apis/v1beta1/shared_types.go:296:8: RouteReasonRefNotPermitted redeclared in this block |
I added this line just to have a demo |
What to add instead of this |
That error suggests you've made a duplicate |
I have made changes as you suggested still its failing. its complex for me to understand |
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.
Your code is not properly formatted. Just run go fmt ./...
No worries! As @mlavacca mentioned it looks like you'll need to run Please let us know how we can continue to be helpful, we really appreciate your contribution! 😃 |
I have formatted it as suggested. PTAL. |
Co-authored-by: Shane Utt <[email protected]>
Co-authored-by: Mattia Lavacca <[email protected]>
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 have a final request, then LGTM: can you please move the reason upward between UnsupportedValue
and pending
? Because ParentRefNotPermitted
is used when the condition is false, while pending
is when unknown.
Ideally yes. Doing it ensures that no |
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.
Thanks for your contribution @Sajiyah-Salat!
/assign |
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.
Thank you for your contribution!
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mlavacca, Sajiyah-Salat, shaneutt 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 |
Add condition in Failed accepted reasons
This reverts commit 81d002b.
Issue #1670
The condition needs to be added in order to prevent crossname-space parentref