Add more K8s Unit Tests

This commit is contained in:
Daniel Tomcej 2018-07-10 03:22:03 -06:00 committed by Traefiker Bot
parent 6ef0e6791b
commit b2a57ca1f3
2 changed files with 209 additions and 2 deletions

View file

@ -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)
}