mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-02 11:18:16 +00:00
Merge pull request #34407 from brendandburns/kubectl-schema
Automatic merge from submit-queue Add validation that detects repeated keys in the labels and annotations maps Fixes #2965 (a nearly 2 year old feature request!) @kubernetes/kubectl @eparis
This commit is contained in:
@@ -759,10 +759,14 @@ func (f *factory) Validator(validate bool, cacheDir string) (validation.Schema,
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &clientSwaggerSchema{
|
||||
swaggerSchema := &clientSwaggerSchema{
|
||||
c: restclient,
|
||||
fedc: fedClient,
|
||||
cacheDir: dir,
|
||||
}
|
||||
return validation.ConjunctiveSchema{
|
||||
swaggerSchema,
|
||||
validation.NoDoubleKeySchema{},
|
||||
}, nil
|
||||
}
|
||||
return validation.NullSchema{}, nil
|
||||
|
||||
Reference in New Issue
Block a user