sigs.k8s.io/gateway-api@v1.0.0/conformance/tests/gateway-modify-listeners.yaml (about) 1 apiVersion: gateway.networking.k8s.io/v1 2 kind: Gateway 3 metadata: 4 name: gateway-add-listener 5 namespace: gateway-conformance-infra 6 spec: 7 gatewayClassName: "{GATEWAY_CLASS_NAME}" 8 listeners: 9 - name: https 10 port: 443 11 protocol: HTTPS 12 hostname: "secure.test.com" 13 allowedRoutes: 14 namespaces: 15 from: All 16 tls: 17 certificateRefs: 18 - group: "" 19 kind: Secret 20 name: tls-validity-checks-certificate 21 namespace: gateway-conformance-infra 22 --- 23 apiVersion: gateway.networking.k8s.io/v1 24 kind: HTTPRoute 25 metadata: 26 name: http-route-1 27 namespace: gateway-conformance-infra 28 spec: 29 parentRefs: 30 - kind: Gateway 31 name: gateway-add-listener 32 namespace: gateway-conformance-infra 33 rules: 34 - backendRefs: 35 - name: infra-backend-v1 36 port: 8080 37 --- 38 apiVersion: gateway.networking.k8s.io/v1 39 kind: Gateway 40 metadata: 41 name: gateway-remove-listener 42 namespace: gateway-conformance-infra 43 spec: 44 gatewayClassName: "{GATEWAY_CLASS_NAME}" 45 listeners: 46 - name: https 47 port: 443 48 protocol: HTTPS 49 hostname: "secure.test.com" 50 allowedRoutes: 51 namespaces: 52 from: All 53 tls: 54 certificateRefs: 55 - group: "" 56 kind: Secret 57 name: tls-validity-checks-certificate 58 namespace: gateway-conformance-infra 59 - name: http 60 port: 80 61 protocol: HTTP 62 allowedRoutes: 63 namespaces: 64 from: All 65 --- 66 apiVersion: gateway.networking.k8s.io/v1 67 kind: HTTPRoute 68 metadata: 69 name: http-route-2 70 namespace: gateway-conformance-infra 71 spec: 72 parentRefs: 73 - kind: Gateway 74 name: gateway-remove-listener 75 namespace: gateway-conformance-infra 76 rules: 77 - backendRefs: 78 - name: infra-backend-v1 79 port: 8080