Skip to content

Commit

Permalink
Merge pull request #420 from djzager/webhookbug
Browse files Browse the repository at this point in the history
馃悰 do not error when webhook matchpolicy unset
  • Loading branch information
k8s-ci-robot committed Mar 18, 2020
2 parents ce1dc9e + 43b7491 commit 15412e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/webhook/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ func (c Config) matchPolicy() (*admissionreg.MatchPolicyType, error) {
matchPolicy = admissionreg.Exact
case strings.ToLower(string(admissionreg.Equivalent)):
matchPolicy = admissionreg.Equivalent
case "":
return nil, nil
default:
return nil, fmt.Errorf("unknown value %q for matchPolicy", c.MatchPolicy)
}
Expand Down

0 comments on commit 15412e2

Please sign in to comment.