mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-11-01 22:34:14 +00:00
At present the CSI spec secret name validation for ControllerPublish, ControllerExpand, NodePublish secrets are performed against ValidateDNS1123Label() and it causes the secret name validation inside the CSI spec to go wrong if the secret name is more than 63 chars. Kubernetes allow the secret object name to be on `DNS SubDomainName` and having a secret name length between 0-253 is correct/valid. So the CSI spec validation also has to be performed accordingly. This commit address this issue in validation for above mentioned funcs. Signed-off-by: Humble Chirammal <hchiramm@redhat.com>