istio.io/istio@v0.0.0-20240520182934-d79c90f27776/pkg/config/analysis/analyzers/testdata/virtualservice_regexes.yaml (about) 1 # Broken config in a yaml config file 2 # 3 apiVersion: networking.istio.io/v1alpha3 4 kind: VirtualService 5 metadata: 6 name: bad-match 7 spec: 8 hosts: 9 - "*" 10 gateways: 11 - bookinfo-gateway 12 http: 13 - match: 14 - uri: 15 regex: "[A-Z" 16 route: 17 - destination: 18 host: productpage 19 --- 20 apiVersion: networking.istio.io/v1alpha3 21 kind: VirtualService 22 metadata: 23 name: valid-regexp 24 spec: 25 hosts: 26 - "*" 27 gateways: 28 - bookinfo-gateway 29 http: 30 - match: 31 - uri: 32 regex: "[A-Z]" 33 route: 34 - destination: 35 host: productpage 36 --- 37 apiVersion: networking.istio.io/v1alpha3 38 kind: VirtualService 39 metadata: 40 name: ecma-not-v2 41 spec: 42 hosts: 43 - "*" 44 gateways: 45 - bookinfo-gateway 46 http: 47 - match: 48 - uri: 49 regex: "^(?!.<path to match here>.).*" 50 route: 51 - destination: 52 host: productpage 53 --- 54 apiVersion: networking.istio.io/v1alpha3 55 kind: VirtualService 56 metadata: 57 name: no-regexes 58 spec: 59 hosts: 60 - "*" 61 gateways: 62 - bookinfo-gateway 63 http: 64 - route: 65 - destination: 66 host: productpage 67 --- 68 apiVersion: networking.istio.io/v1alpha3 69 kind: VirtualService 70 metadata: 71 name: lots-of-regexes 72 spec: 73 hosts: 74 - "*" 75 gateways: 76 - bookinfo-gateway 77 http: 78 - match: 79 - uri: 80 regex: "[A-Z" 81 - scheme: 82 regex: "[A-" 83 - authority: 84 regex: "[A-B" 85 - headers: 86 end-user: 87 regex: "[jason-" 88 - queryParams: 89 zipcode: 90 regex: "[1-" 91 corsPolicy: 92 allowOrigins: 93 - regex: "[O-R" 94 route: 95 - destination: 96 host: productpage