Skip to content

Commit

Permalink
Merge pull request kubernetes#27944 from wongma7/pvc-selector-hack
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue

Fix pvc label selector validation error

This is for kubernetes#26866. Other selectors are e.g. v1beta1.x , the pvc one is unversioned.x
  • Loading branch information
k8s-merge-robot authored Jun 27, 2016
2 parents a89a9e6 + 3118c93 commit 11e4158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/validation/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down

0 comments on commit 11e4158

Please sign in to comment.