Bump k8s.io/kube-openapi to commit ee342a809c29

Updates to consume the aggregated OpenAPI spec lazy-marshaling behaviour
introduced with: https://github.com/kubernetes/kube-openapi/pull/251

Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
This commit is contained in:
Alper Rifat Ulucinar
2021-11-05 14:10:09 +03:00
parent ed42bbd722
commit 38f888bdd1
47 changed files with 406 additions and 189 deletions

View File

@@ -21,15 +21,17 @@ import (
"k8s.io/kube-openapi/pkg/validation/spec"
)
// An EntityValidator is an interface for things that can validate entities
type EntityValidator interface {
Validate(interface{}) *Result
}
// valueValidator validates the values it applies to.
type valueValidator interface {
// SetPath sets the exact path of the validator prior to calling Validate.
// The exact path contains the map keys and array indices to locate the
// value to be validated from the root data element.
SetPath(path string)
Applies(interface{}, reflect.Kind) bool
Validate(interface{}) *Result
// Applies returns true if the validator applies to the valueKind
// from source. Validate will be called if and only if Applies returns true.
Applies(source interface{}, valueKind reflect.Kind) bool
// Validate validates the value.
Validate(value interface{}) *Result
}
type basicCommonValidator struct {