Skip to content

Conversation

LucaBernstein
Copy link
Member

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:

A new validation for the following `(Namespaced)CloudProfile` fields has been added, ensuring qualified names:
- `.spec.machineImages[].name`
- `.spec.machineImages[].versions[].cri[].containerRuntimes[].type`
- `.spec.machineTypes[].name`
- `.spec.capabilities.name`
- `.spec.capabilities.values`
- `.spec.volumeTypes[].class`
- `.spec.volumeTypes[].name`

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>
@gardener-prow gardener-prow bot added area/robustness Robustness, reliability, resilience related area/security Security related area/usability Usability related kind/enhancement Enhancement, improvement, extension cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. labels Aug 4, 2025
@gardener-prow gardener-prow bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Aug 4, 2025
Copy link
Member

@marc1404 marc1404 left a 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),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect 👌

@gardener-prow gardener-prow bot added the lgtm Indicates that a PR is ready to be merged. label Aug 5, 2025
Copy link
Contributor

gardener-prow bot commented Aug 5, 2025

LGTM label has been added.

Git tree hash: bd0a45a18039cfa0325570c98aac93c9d0571027

Copy link
Member

@rfranzke rfranzke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!
/approve

Copy link
Contributor

gardener-prow bot commented Aug 6, 2025

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@gardener-prow gardener-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 6, 2025
@gardener-prow gardener-prow bot merged commit 022c500 into gardener:master Aug 6, 2025
19 checks passed
Duciwuci pushed a commit to stackitcloud/gardener that referenced this pull request Sep 1, 2025
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/robustness Robustness, reliability, resilience related area/security Security related area/usability Usability related cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. kind/enhancement Enhancement, improvement, extension lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants