sigs.k8s.io/gateway-api@v1.0.0/conformance/tests/gateway-secret-invalid-reference-grant.yaml (about) 1 apiVersion: gateway.networking.k8s.io/v1 2 kind: Gateway 3 metadata: 4 name: gateway-secret-invalid-reference-grant 5 namespace: gateway-conformance-infra 6 spec: 7 gatewayClassName: "{GATEWAY_CLASS_NAME}" 8 listeners: 9 - name: https 10 port: 443 11 protocol: HTTPS 12 allowedRoutes: 13 namespaces: 14 from: All 15 tls: 16 certificateRefs: 17 - group: "" 18 kind: Secret 19 name: certificate 20 namespace: gateway-conformance-web-backend 21 --- 22 apiVersion: gateway.networking.k8s.io/v1beta1 23 kind: ReferenceGrant 24 metadata: 25 name: reference-grant-wrong-namespace 26 namespace: gateway-conformance-app-backend 27 spec: 28 from: 29 - group: gateway.networking.k8s.io 30 kind: Gateway 31 namespace: gateway-conformance-infra 32 to: 33 - group: "" 34 kind: Secret 35 name: certificate 36 --- 37 apiVersion: gateway.networking.k8s.io/v1beta1 38 kind: ReferenceGrant 39 metadata: 40 name: reference-grant-wrong-from-group 41 namespace: gateway-conformance-web-backend 42 spec: 43 from: 44 - group: not-the-group-youre-looking-for 45 kind: Gateway 46 namespace: gateway-conformance-infra 47 to: 48 - group: "" 49 kind: Secret 50 name: certificate 51 --- 52 apiVersion: gateway.networking.k8s.io/v1beta1 53 kind: ReferenceGrant 54 metadata: 55 name: reference-grant-wrong-from-kind 56 namespace: gateway-conformance-web-backend 57 spec: 58 from: 59 - group: gateway.networking.k8s.io 60 kind: HTTPRoute 61 namespace: gateway-conformance-infra 62 to: 63 - group: "" 64 kind: Secret 65 name: certificate 66 --- 67 apiVersion: gateway.networking.k8s.io/v1beta1 68 kind: ReferenceGrant 69 metadata: 70 name: reference-grant-wrong-from-namespace 71 namespace: gateway-conformance-web-backend 72 spec: 73 from: 74 - group: gateway.networking.k8s.io 75 kind: Gateway 76 namespace: not-the-namespace-youre-looking-for 77 to: 78 - group: "" 79 kind: Secret 80 name: certificate 81 --- 82 apiVersion: gateway.networking.k8s.io/v1beta1 83 kind: ReferenceGrant 84 metadata: 85 name: reference-grant-wrong-to-group 86 namespace: gateway-conformance-web-backend 87 spec: 88 from: 89 - group: gateway.networking.k8s.io 90 kind: Gateway 91 namespace: gateway-conformance-infra 92 to: 93 - group: not-the-group-youre-looking-for 94 kind: Secret 95 name: not-the-certificate-youre-looking-for 96 --- 97 apiVersion: gateway.networking.k8s.io/v1beta1 98 kind: ReferenceGrant 99 metadata: 100 name: reference-grant-wrong-to-kind 101 namespace: gateway-conformance-web-backend 102 spec: 103 from: 104 - group: gateway.networking.k8s.io 105 kind: Gateway 106 namespace: gateway-conformance-infra 107 to: 108 - group: "" 109 kind: Service 110 name: certificate 111 --- 112 apiVersion: gateway.networking.k8s.io/v1beta1 113 kind: ReferenceGrant 114 metadata: 115 name: reference-grant-wrong-to-name 116 namespace: gateway-conformance-web-backend 117 spec: 118 from: 119 - group: gateway.networking.k8s.io 120 kind: Gateway 121 namespace: gateway-conformance-infra 122 to: 123 - group: "" 124 kind: Secret 125 name: not-the-certificate-youre-looking-for