From 3118c937be5cfd290f243dd7217b4d236cd56b2d Mon Sep 17 00:00:00 2001 From: Matthew Wong Date: Mon, 27 Jun 2016 16:00:03 -0400 Subject: [PATCH] Fix pvc label selector validation error --- pkg/api/validation/schema.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/validation/schema.go b/pkg/api/validation/schema.go index ea5a86a2344f1..fb1873c789d45 100644 --- a/pkg/api/validation/schema.go +++ b/pkg/api/validation/schema.go @@ -294,7 +294,7 @@ func (s *SwaggerSchema) isGenericArray(p swagger.ModelProperty) bool { } // This matches type name in the swagger spec, such as "v1.Binding". -var versionRegexp = regexp.MustCompile(`^v.+\..*`) +var versionRegexp = regexp.MustCompile(`^(v.+|unversioned)\..*`) func (s *SwaggerSchema) validateField(value interface{}, fieldName, fieldType string, fieldDetails *swagger.ModelProperty) []error { allErrs := []error{}