Files
higress/pkg/ingress/kube/gateway/istio/testdata/invalid.yaml.golden

149 lines
3.8 KiB
Plaintext

apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
annotations:
internal.istio.io/gateway-service: higress-gateway.higress-system.svc.domain.suffix
internal.istio.io/parents: Gateway/gateway/default.higress-system
creationTimestamp: null
name: gateway-istio-autogenerated-k8s-gateway-default
namespace: higress-system
spec:
servers:
- hosts:
- '*/*.domain.example'
port:
name: default
number: 80
protocol: HTTP
---
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
annotations:
internal.istio.io/gateway-service: fake-service.com
internal.istio.io/parents: Gateway/invalid-service/default.higress-system
creationTimestamp: null
name: invalid-service-istio-autogenerated-k8s-gateway-default
namespace: higress-system
spec:
servers:
- hosts:
- higress-system/*.example
port:
name: default
number: 80
protocol: HTTP
---
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
annotations:
internal.istio.io/gateway-service: higress-gateway.higress-system.svc.domain.suffix
internal.istio.io/parents: Gateway/target-port-reference/default.higress-system
creationTimestamp: null
name: target-port-reference-istio-autogenerated-k8s-gateway-default
namespace: higress-system
spec:
servers:
- hosts:
- higress-system/*.example
port:
name: default
number: 8080
protocol: HTTP
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
annotations:
internal.istio.io/parents: HTTPRoute/invalid-backendRef-kind.default
internal.istio.io/route-semantics: gateway
creationTimestamp: null
name: invalid-backendRef-kind-0-istio-autogenerated-k8s-gateway
namespace: default
spec:
gateways:
- higress-system/gateway-istio-autogenerated-k8s-gateway-default
hosts:
- first.domain.example
http:
- name: default/invalid-backendRef-kind
route:
- destination: {}
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
annotations:
internal.istio.io/parents: HTTPRoute/invalid-backendRef-mixed.default
internal.istio.io/route-semantics: gateway
creationTimestamp: null
name: invalid-backendRef-mixed-0-istio-autogenerated-k8s-gateway
namespace: default
spec:
gateways:
- higress-system/gateway-istio-autogenerated-k8s-gateway-default
hosts:
- third.domain.example
http:
- name: default/invalid-backendRef-mixed
route:
- destination:
host: nonexistent.default.svc.domain.suffix
port:
number: 80
weight: 1
- destination:
host: httpbin.default.svc.domain.suffix
port:
number: 80
weight: 1
- destination: {}
weight: 1
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
annotations:
internal.istio.io/parents: HTTPRoute/invalid-backendRef-notfound.default
internal.istio.io/route-semantics: gateway
creationTimestamp: null
name: invalid-backendRef-notfound-0-istio-autogenerated-k8s-gateway
namespace: default
spec:
gateways:
- higress-system/gateway-istio-autogenerated-k8s-gateway-default
hosts:
- second.domain.example
http:
- name: default/invalid-backendRef-notfound
route:
- destination:
host: nonexistent.default.svc.domain.suffix
port:
number: 80
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
annotations:
internal.istio.io/parents: HTTPRoute/no-backend.default
internal.istio.io/route-semantics: gateway
creationTimestamp: null
name: no-backend-0-istio-autogenerated-k8s-gateway
namespace: default
spec:
gateways:
- mesh
hosts:
- httpbin.default.svc.domain.suffix
http:
- directResponse:
status: 500
mirror:
host: httpbin.default.svc.domain.suffix
port:
number: 80
name: default/no-backend
---