• Kubernetes Submit Queue's avatar
    Merge pull request #66843 from verult/validate-allowedtopologies · 344b9154
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
    
    Added set and map structural validation for AllowedTopologies
    
    **What this PR does / why we need it**: Adding structural validation to AllowedTopologies field in StorageClass.
    
    **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
    Fixes #66184
    
    **Release note**:
    
    ```release-note
    AllowedTopologies field inside StorageClass is now validated against set and map semantics. Specifically, there cannot be duplicate TopologySelectorTerms, MatchLabelExpressions keys, and TopologySelectorLabelRequirement Values.
    ```
    344b9154
Name
Last commit
Last update
..
fuzzer Loading commit data...
helper Loading commit data...
install Loading commit data...
pods Loading commit data...
v1 Loading commit data...
validation Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
annotation_key_constants.go Loading commit data...
doc.go Loading commit data...
field_constants.go Loading commit data...
json.go Loading commit data...
objectreference.go Loading commit data...
register.go Loading commit data...
resource.go Loading commit data...
taint.go Loading commit data...
taint_test.go Loading commit data...
toleration.go Loading commit data...
toleration_test.go Loading commit data...
types.go Loading commit data...
zz_generated.deepcopy.go Loading commit data...