Files
higress/pkg/ingress/kube/gateway/istio/testdata/invalid.yaml.golden
2025-11-26 10:15:00 +08:00

228 lines
6.3 KiB
Plaintext

apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
annotations:
internal.istio.io/gateway-semantics: gateway
internal.istio.io/gateway-service: higress-gateway.higress-system.svc.domain.suffix
internal.istio.io/parents: Gateway/gateway/default.higress-system
internal.istio.io/service-account-name: ""
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-semantics: gateway
internal.istio.io/gateway-service: fake-service.com
internal.istio.io/parents: Gateway/invalid-service/default.higress-system
internal.istio.io/service-account-name: ""
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-semantics: gateway
internal.istio.io/gateway-service: higress-gateway.higress-system.svc.domain.suffix
internal.istio.io/parents: Gateway/target-port-reference/default.higress-system
internal.istio.io/service-account-name: ""
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: Gateway
metadata:
annotations:
internal.istio.io/gateway-semantics: gateway
internal.istio.io/gateway-service: higress-gateway.higress-system.svc.cluster.local
internal.istio.io/parents: Gateway/invalid-gateway-address/default.invalid-gateway-address
internal.istio.io/service-account-name: ""
name: invalid-gateway-address-istio-autogenerated-k8s-gateway-default
namespace: invalid-gateway-address
spec:
servers:
- hosts:
- invalid-gateway-address/*.domain.example
port:
name: default
number: 80
protocol: HTTP
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
annotations:
internal.istio.io/parents: HTTPRoute/invalid-backendRef-hostname.default,HTTPRoute/invalid-backendRef-mirror.default,HTTPRoute/invalid-backendRef-serviceimport.default,HTTPRoute/no-backend.default
internal.istio.io/route-semantics: gateway
name: default~httpbin.default.svc.domain.suffix
namespace: default
spec:
gateways:
- mesh
hosts:
- httpbin.default.svc.domain.suffix
http:
- name: default/invalid-backendRef-hostname
route:
- destination:
host: unknown.example.com
port:
number: 80
- name: default/invalid-backendRef-mirror
route:
- destination:
host: httpbin.default.svc.domain.suffix
port:
number: 80
- name: default/invalid-backendRef-serviceimport
route:
- destination:
host: unknown-service-import.default.svc.domain.suffix
port:
number: 80
- directResponse:
status: 500
mirrors:
- destination:
host: httpbin.default.svc.domain.suffix
port:
number: 80
name: default/no-backend
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
annotations:
internal.istio.io/parents: HTTPRoute/invalid-parentRef-service.default
internal.istio.io/route-semantics: gateway
name: default~not-found.default.svc.domain.suffix
namespace: default
spec:
gateways:
- mesh
hosts:
- not-found.default.svc.domain.suffix
http:
- name: default/invalid-parentRef-service
route:
- destination:
host: httpbin.default.svc.domain.suffix
port:
number: 80
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
annotations:
internal.istio.io/parents: HTTPRoute/invalid-mirror.default
internal.istio.io/route-semantics: gateway
name: higress-system~gateway-istio-autogenerated-k8s-gateway-default~*
namespace: default
spec:
gateways:
- higress-system/gateway-istio-autogenerated-k8s-gateway-default
hosts:
- '*'
http:
- name: default/invalid-mirror
route:
- destination:
host: httpbin.default.svc.domain.suffix
port:
number: 80
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
annotations:
internal.istio.io/parents: HTTPRoute/invalid-backendRef-kind.default
internal.istio.io/route-semantics: gateway
name: higress-system~gateway-istio-autogenerated-k8s-gateway-default~first.domain.example
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-notfound.default
internal.istio.io/route-semantics: gateway
name: higress-system~gateway-istio-autogenerated-k8s-gateway-default~second.domain.example
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/invalid-backendRef-mixed.default
internal.istio.io/route-semantics: gateway
name: higress-system~gateway-istio-autogenerated-k8s-gateway-default~third.domain.example
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
---