-
Notifications
You must be signed in to change notification settings - Fork 169
fix(func): reject invalid function names with consecutive hyphens (DNS-1035) #3313
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
base: main
Are you sure you want to change the base?
fix(func): reject invalid function names with consecutive hyphens (DNS-1035) #3313
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: intojhanurag The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
08cf890 to
7d76471
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3313 +/- ##
==========================================
+ Coverage 51.80% 55.09% +3.28%
==========================================
Files 162 170 +8
Lines 19132 19854 +722
==========================================
+ Hits 9912 10938 +1026
+ Misses 8242 7847 -395
- Partials 978 1069 +91
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:
|
|
/retest |
|
Hey @gauron99 , Is it good to go ? |
|
Hi can you show me what rule does not allow this? |
|
Hey @gauron99, I read about this primarily in a drive created by RayyanSeliya and got to know something similar on stackoverflow. |
|
well, what is the source? From what I referenced in some previous PR (cant find it now) is something like this https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names where only rules i find are additionally im able to deploy to KinD cluster a function with |
|
Hey you are right , i thought this doc's issues are evaluated and made to resolve in future. (btw this issue is mentioned in 3rd point) |
|
im not sure about the docs, looks like something @RayyanSeliya created. He was working on a lot of CLI related issues with validation and similar. |
|
@gauron99 , Make sense ! (Sorry for your time , i will evaluate from next time) |
|
Hey @gauron99 I had created error report in Google docs for each func commands. So yeah I guess this issue I mentioned in that .. and talking about namespace validation we had a talk in this pr #3133 (comment) |
Fixes missing validation for function names containing consecutive hyphens (--).
Kubernetes resource names must follow DNS-1035 rules. Names like
test--funcwere incorrectly accepted by the func CLI and cause deployment failures.
This change validates function names at creation time and rejects invalid
DNS-1035 names before generating the function.
Before:
After: