-
Notifications
You must be signed in to change notification settings - Fork 526
Harden (Namespaced)CloudProfile
field validation
#12666
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
Harden (Namespaced)CloudProfile
field validation
#12666
Conversation
Signed-off-by: Luca Bernstein <luca.bernstein@sap.com>
Signed-off-by: Luca Bernstein <luca.bernstein@sap.com>
Signed-off-by: Luca Bernstein <luca.bernstein@sap.com>
Signed-off-by: Luca Bernstein <luca.bernstein@sap.com>
Signed-off-by: Luca Bernstein <luca.bernstein@sap.com>
Signed-off-by: Luca Bernstein <luca.bernstein@sap.com>
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
Thanks for the well-structured PR! ✨
Expect(validationResult).To(BeEmpty()) | ||
} | ||
}, | ||
Entry("forbid emoji characters", "🪴", true), |
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.
Perfect 👌
LGTM label has been added. Git tree hash: bd0a45a18039cfa0325570c98aac93c9d0571027
|
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!
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rfranzke 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 |
* Validate MachineImage name Signed-off-by: Luca Bernstein <luca.bernstein@sap.com> * Extract fn validateUnprefixedQualifiedName Signed-off-by: Luca Bernstein <luca.bernstein@sap.com> * Validate container runtime types Signed-off-by: Luca Bernstein <luca.bernstein@sap.com> * Fix value in error message * Validate names and values of capabilities Signed-off-by: Luca Bernstein <luca.bernstein@sap.com> * Validate machineType name * Validate volumeType name Signed-off-by: Luca Bernstein <luca.bernstein@sap.com> * Validate volumeType class Signed-off-by: Luca Bernstein <luca.bernstein@sap.com> * Satisfy typo linter --------- Signed-off-by: Luca Bernstein <luca.bernstein@sap.com>
How to categorize this PR?
/area robustness security usability
/kind enhancement
What this PR does / why we need it:
Add more strict validation to multiple fields in the (Namespaced)CloudProfile specs.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note: