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

479 lines
14 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: higress-gateway.higress-system.svc.domain.suffix
internal.istio.io/parents: Gateway/gateway/foobar.higress-system
internal.istio.io/service-account-name: ""
name: gateway-istio-autogenerated-k8s-gateway-foobar
namespace: higress-system
spec:
servers:
- hosts:
- '*/*.foobar.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/gateway/same-namespace.higress-system
internal.istio.io/service-account-name: ""
name: gateway-istio-autogenerated-k8s-gateway-same-namespace
namespace: higress-system
spec:
servers:
- hosts:
- higress-system/*.same-namespace.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/gateway/scope-route.higress-system
internal.istio.io/service-account-name: ""
name: gateway-istio-autogenerated-k8s-gateway-scope-route
namespace: higress-system
spec:
servers:
- hosts:
- '*/*.scope-route.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/gateway/slctr-combined-no.higress-system
internal.istio.io/service-account-name: ""
name: gateway-istio-autogenerated-k8s-gateway-slctr-combined-no
namespace: higress-system
spec:
servers:
- hosts:
- ~/*.slctr-combined-no.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/gateway/slctr-combined-yes.higress-system
internal.istio.io/service-account-name: ""
name: gateway-istio-autogenerated-k8s-gateway-slctr-combined-yes
namespace: higress-system
spec:
servers:
- hosts:
- ~/*.slctr-combined-yes.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/gateway/slctr-expr-dne-no.higress-system
internal.istio.io/service-account-name: ""
name: gateway-istio-autogenerated-k8s-gateway-slctr-expr-dne-no
namespace: higress-system
spec:
servers:
- hosts:
- default/*.slctr-expr-dne-no.example
- group-namespace1/*.slctr-expr-dne-no.example
- group-namespace2/*.slctr-expr-dne-no.example
- higress-system/*.slctr-expr-dne-no.example
- istio-system/*.slctr-expr-dne-no.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/gateway/slctr-expr-dne-yes.higress-system
internal.istio.io/service-account-name: ""
name: gateway-istio-autogenerated-k8s-gateway-slctr-expr-dne-yes
namespace: higress-system
spec:
servers:
- hosts:
- default/*.slctr-expr-dne-yes.example
- group-namespace1/*.slctr-expr-dne-yes.example
- group-namespace2/*.slctr-expr-dne-yes.example
- higress-system/*.slctr-expr-dne-yes.example
- istio-system/*.slctr-expr-dne-yes.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/gateway/slctr-expr-exists-no.higress-system
internal.istio.io/service-account-name: ""
name: gateway-istio-autogenerated-k8s-gateway-slctr-expr-exists-no
namespace: higress-system
spec:
servers:
- hosts:
- ~/*.slctr-expr-exists-no.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/gateway/slctr-expr-exists-yes.higress-system
internal.istio.io/service-account-name: ""
name: gateway-istio-autogenerated-k8s-gateway-slctr-expr-exists-yes
namespace: higress-system
spec:
servers:
- hosts:
- ~/*.slctr-expr-exists-yes.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/gateway/slctr-expr-in-no.higress-system
internal.istio.io/service-account-name: ""
name: gateway-istio-autogenerated-k8s-gateway-slctr-expr-in-no
namespace: higress-system
spec:
servers:
- hosts:
- ~/*.slctr-expr-in-no.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/gateway/slctr-expr-in-yes.higress-system
internal.istio.io/service-account-name: ""
name: gateway-istio-autogenerated-k8s-gateway-slctr-expr-in-yes
namespace: higress-system
spec:
servers:
- hosts:
- ~/*.slctr-expr-in-yes.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/gateway/slctr-expr-notin-no.higress-system
internal.istio.io/service-account-name: ""
name: gateway-istio-autogenerated-k8s-gateway-slctr-expr-notin-no
namespace: higress-system
spec:
servers:
- hosts:
- default/*.slctr-expr-notin-no.example
- group-namespace1/*.slctr-expr-notin-no.example
- group-namespace2/*.slctr-expr-notin-no.example
- higress-system/*.slctr-expr-notin-no.example
- istio-system/*.slctr-expr-notin-no.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/gateway/slctr-expr-notin-yes.higress-system
internal.istio.io/service-account-name: ""
name: gateway-istio-autogenerated-k8s-gateway-slctr-expr-notin-yes
namespace: higress-system
spec:
servers:
- hosts:
- default/*.slctr-expr-notin-yes.example
- group-namespace1/*.slctr-expr-notin-yes.example
- group-namespace2/*.slctr-expr-notin-yes.example
- higress-system/*.slctr-expr-notin-yes.example
- istio-system/*.slctr-expr-notin-yes.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/gateway/slctr-labels.higress-system
internal.istio.io/service-account-name: ""
name: gateway-istio-autogenerated-k8s-gateway-slctr-labels
namespace: higress-system
spec:
servers:
- hosts:
- ~/*.slctr-labels.example
port:
name: default
number: 80
protocol: HTTP
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
annotations:
internal.istio.io/parents: HTTPRoute/bind-all.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/bind-all
route:
- destination:
host: httpbin.default.svc.domain.suffix
port:
number: 85
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
annotations:
internal.istio.io/parents: HTTPRoute/bind-all.default,HTTPRoute/same-namespace-valid.istio-system
internal.istio.io/route-semantics: gateway
name: higress-system~gateway-istio-autogenerated-k8s-gateway-foobar~*
namespace: default
spec:
gateways:
- higress-system/gateway-istio-autogenerated-k8s-gateway-foobar
hosts:
- '*'
http:
- name: default/bind-all
route:
- destination:
host: httpbin.default.svc.domain.suffix
port:
number: 85
- name: istio-system/same-namespace-valid
route:
- destination:
host: httpbin.istio-system.svc.domain.suffix
port:
number: 81
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
annotations:
internal.istio.io/parents: HTTPRoute/section-name-cross-namespace.default
internal.istio.io/route-semantics: gateway
name: higress-system~gateway-istio-autogenerated-k8s-gateway-foobar~alpha.foobar.example
namespace: default
spec:
gateways:
- higress-system/gateway-istio-autogenerated-k8s-gateway-foobar
hosts:
- alpha.foobar.example
http:
- name: default/section-name-cross-namespace
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/bind-all.default,HTTPRoute/bind-cross-namespace.group-namespace1
internal.istio.io/route-semantics: gateway
name: higress-system~gateway-istio-autogenerated-k8s-gateway-slctr-expr-dne-no~*
namespace: default
spec:
gateways:
- higress-system/gateway-istio-autogenerated-k8s-gateway-slctr-expr-dne-no
hosts:
- '*'
http:
- name: default/bind-all
route:
- destination:
host: httpbin.default.svc.domain.suffix
port:
number: 85
- name: group-namespace1/bind-cross-namespace
route:
- destination:
host: httpbin.group-namespace1.svc.domain.suffix
port:
number: 86
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
annotations:
internal.istio.io/parents: HTTPRoute/bind-all.default,HTTPRoute/bind-cross-namespace.group-namespace1
internal.istio.io/route-semantics: gateway
name: higress-system~gateway-istio-autogenerated-k8s-gateway-slctr-expr-dne-yes~*
namespace: default
spec:
gateways:
- higress-system/gateway-istio-autogenerated-k8s-gateway-slctr-expr-dne-yes
hosts:
- '*'
http:
- name: default/bind-all
route:
- destination:
host: httpbin.default.svc.domain.suffix
port:
number: 85
- name: group-namespace1/bind-cross-namespace
route:
- destination:
host: httpbin.group-namespace1.svc.domain.suffix
port:
number: 86
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
annotations:
internal.istio.io/parents: HTTPRoute/bind-all.default,HTTPRoute/bind-cross-namespace.group-namespace1
internal.istio.io/route-semantics: gateway
name: higress-system~gateway-istio-autogenerated-k8s-gateway-slctr-expr-notin-no~*
namespace: default
spec:
gateways:
- higress-system/gateway-istio-autogenerated-k8s-gateway-slctr-expr-notin-no
hosts:
- '*'
http:
- name: default/bind-all
route:
- destination:
host: httpbin.default.svc.domain.suffix
port:
number: 85
- name: group-namespace1/bind-cross-namespace
route:
- destination:
host: httpbin.group-namespace1.svc.domain.suffix
port:
number: 86
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
annotations:
internal.istio.io/parents: HTTPRoute/bind-all.default,HTTPRoute/bind-cross-namespace.group-namespace1
internal.istio.io/route-semantics: gateway
name: higress-system~gateway-istio-autogenerated-k8s-gateway-slctr-expr-notin-yes~*
namespace: default
spec:
gateways:
- higress-system/gateway-istio-autogenerated-k8s-gateway-slctr-expr-notin-yes
hosts:
- '*'
http:
- name: default/bind-all
route:
- destination:
host: httpbin.default.svc.domain.suffix
port:
number: 85
- name: group-namespace1/bind-cross-namespace
route:
- destination:
host: httpbin.group-namespace1.svc.domain.suffix
port:
number: 86
---