Add more K8s Unit Tests
This commit is contained in:
parent
6ef0e6791b
commit
b2a57ca1f3
2 changed files with 209 additions and 2 deletions
|
@ -521,8 +521,6 @@ func getRuleForPath(pa extensionsv1beta1.HTTPIngressPath, i *extensionsv1beta1.I
|
|||
case ruleTypePath, ruleTypePathPrefix, ruleTypePathStrip, ruleTypePathPrefixStrip:
|
||||
case ruleTypeReplacePath:
|
||||
log.Warnf("Using %s as %s will be deprecated in the future. Please use the %s annotation instead", ruleType, annotationKubernetesRuleType, annotationKubernetesRequestModifier)
|
||||
case "":
|
||||
return "", errors.New("cannot use empty rule")
|
||||
default:
|
||||
return "", fmt.Errorf("cannot use non-matcher rule: %q", ruleType)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue