mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 15:37:24 +00:00
Loosen DNS 952 for labels
This commit is contained in:
@@ -428,7 +428,7 @@ func Parse(selector string) (SetBasedSelector, error) {
|
||||
|
||||
// TODO: unify with validation.validateLabels
|
||||
func validateLabelKey(k string) error {
|
||||
if !util.IsDNS952Label(k) {
|
||||
if !util.IsDNSLabel(k) {
|
||||
return errors.NewFieldNotSupported("key", k)
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user