mirror of https://github.com/istio/istio.io.git
934 B
934 B
title | layout | owner | test |
---|---|---|---|
InvalidRegexp | analysis-message | istio/wg-user-experience-maintainers | no |
This message occurs when an Istio resource contains an invalid regular expression.
Istio regular expressions use the RE2 regular expression syntax.
Example
You will receive this message:
{{< text plain >}}
Warning [IST0122] (VirtualService bad-match.default) Field "uri" regular expression invalid: "[A-Z" (error parsing regexp: missing closing ]: [A-Z
)
{{< /text >}}
when your cluster has following virtual service:
{{< text yaml >}} apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata: name: bad-match spec: hosts:
- "*" gateways:
- bookinfo-gateway http:
- match:
- uri: regex: "[A-Z" route:
- destination: host: productpage {{< /text >}}
In this example, the regex [A-Z
does not follow the RE2 syntax.