-
Notifications
You must be signed in to change notification settings - Fork 947
feature: add name length check for fedresourcequota #2168
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
feature: add name length check for fedresourcequota #2168
Conversation
a095d64
to
cf1f058
Compare
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 think it makes sense to add this validation. However, it may be not a bug fix but only a verification enhancement.
OK,let me update the kind. |
This failing e2e case will be fixed by #2177 |
I'm afraid this is the wrong decision that directly takes By the way, restricting the name length definitely a cheaper way, but we should avoid doing that as we don't know exactly the use case and should not make the assumption that the name length never exceeds 63. |
Hi @likakuli Long time no see, hope you are doing well. Currently, we are enhancing the FederatedResourceQuota, see #6350, For now, I think we can adopt this |
cf1f058
to
1412d5e
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #2168 +/- ##
==========================================
- Coverage 49.34% 49.34% -0.01%
==========================================
Files 678 678
Lines 55050 55061 +11
==========================================
+ Hits 27167 27168 +1
- Misses 26115 26124 +9
- Partials 1768 1769 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
/assign
Signed-off-by: likakuli <[email protected]> fix: add name length check for fedresourcequota Signed-off-by: likakuli <[email protected]> fix: add name length check for fedresourcequota Signed-off-by: likakuli <[email protected]>
66b8fc8
to
9dde2b0
Compare
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: RainbowMango 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 |
Signed-off-by: likakuli [email protected]
What type of PR is this?
/kind feature
What this PR does / why we need it:
FedResourceQuota is a user-facing resource and its name is used in work's label. So the length should be no more than 63 characters like other resource. e.g.
PropagationPolicy
Which issue(s) this PR fixes:
Fixes #
Part of #6350
Special notes for your reviewer:
Does this PR introduce a user-facing change?: