update kubernetes dependencies to v1.25.0
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
6
vendor/k8s.io/apimachinery/pkg/util/validation/field/errors.go
generated
vendored
6
vendor/k8s.io/apimachinery/pkg/util/validation/field/errors.go
generated
vendored
@@ -42,9 +42,9 @@ func (v *Error) Error() string {
|
||||
return fmt.Sprintf("%s: %s", v.Field, v.ErrorBody())
|
||||
}
|
||||
|
||||
type omitValueType struct{}
|
||||
type OmitValueType struct{}
|
||||
|
||||
var omitValue = omitValueType{}
|
||||
var omitValue = OmitValueType{}
|
||||
|
||||
// ErrorBody returns the error message without the field name. This is useful
|
||||
// for building nice-looking higher-level error reporting.
|
||||
@@ -66,7 +66,7 @@ func (v *Error) ErrorBody() string {
|
||||
valueType := reflect.TypeOf(value)
|
||||
if value == nil || valueType == nil {
|
||||
value = "null"
|
||||
} else if valueType.Kind() == reflect.Ptr {
|
||||
} else if valueType.Kind() == reflect.Pointer {
|
||||
if reflectValue := reflect.ValueOf(value); reflectValue.IsNil() {
|
||||
value = "null"
|
||||
} else {
|
||||
|
2
vendor/k8s.io/apimachinery/pkg/util/validation/validation.go
generated
vendored
2
vendor/k8s.io/apimachinery/pkg/util/validation/validation.go
generated
vendored
@@ -334,7 +334,7 @@ func IsValidPortName(port string) []string {
|
||||
errs = append(errs, "must contain only alpha-numeric characters (a-z, 0-9), and hyphens (-)")
|
||||
}
|
||||
if !portNameOneLetterRegexp.MatchString(port) {
|
||||
errs = append(errs, "must contain at least one letter or number (a-z, 0-9)")
|
||||
errs = append(errs, "must contain at least one letter (a-z)")
|
||||
}
|
||||
if strings.Contains(port, "--") {
|
||||
errs = append(errs, "must not contain consecutive hyphens")
|
||||
|
Reference in New Issue
Block a user