• k8s-merge-robot's avatar
    Merge pull request #25007 from liggitt/third-party-resource-validation · 272674b2
    k8s-merge-robot authored
    Automatic merge from submit-queue
    
    validate third party resources
    
    addresses validation portion of https://github.com/kubernetes/kubernetes/issues/22768
    
    * ThirdPartyResource: validates name (3 segment DNS subdomain) and version names (single segment DNS label)
    * ThirdPartyResourceData: validates objectmeta (name is validated as a DNS label)
    * removes ability to use GenerateName with thirdpartyresources (kind and api group should not be randomized, in my opinion)
    
    test improvements:
    * updates resttest to clean up after create tests (so the same valid object can be used)
    * updates resttest to take a name generator (in case "foo1" isn't a valid name for the object under test)
    
    action required for alpha thirdpartyresource users:
    * existing thirdpartyresource objects that do not match these validation rules will need to be removed/updated (after removing thirdpartyresourcedata objects stored under the disallowed versions, kind, or group names)
    * existing thirdpartyresourcedata objects that do not match the name validation rule will not be able to be updated, but can be removed
    272674b2
Name
Last commit
Last update
..
abac Loading commit data...
apps Loading commit data...
authentication.k8s.io Loading commit data...
authorization Loading commit data...
autoscaling Loading commit data...
batch Loading commit data...
componentconfig Loading commit data...
extensions Loading commit data...
metrics Loading commit data...
policy Loading commit data...
rbac Loading commit data...
OWNERS Loading commit data...