...

Text file src/sigs.k8s.io/gateway-api/conformance/tests/gateway-secret-invalid-reference-grant.yaml

Documentation: sigs.k8s.io/gateway-api/conformance/tests

     1apiVersion: gateway.networking.k8s.io/v1
     2kind: Gateway
     3metadata:
     4  name: gateway-secret-invalid-reference-grant
     5  namespace: gateway-conformance-infra
     6spec:
     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---
    22apiVersion: gateway.networking.k8s.io/v1beta1
    23kind: ReferenceGrant
    24metadata:
    25  name: reference-grant-wrong-namespace
    26  namespace: gateway-conformance-app-backend
    27spec:
    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---
    37apiVersion: gateway.networking.k8s.io/v1beta1
    38kind: ReferenceGrant
    39metadata:
    40  name: reference-grant-wrong-from-group
    41  namespace: gateway-conformance-web-backend
    42spec:
    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---
    52apiVersion: gateway.networking.k8s.io/v1beta1
    53kind: ReferenceGrant
    54metadata:
    55  name: reference-grant-wrong-from-kind
    56  namespace: gateway-conformance-web-backend
    57spec:
    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---
    67apiVersion: gateway.networking.k8s.io/v1beta1
    68kind: ReferenceGrant
    69metadata:
    70  name: reference-grant-wrong-from-namespace
    71  namespace: gateway-conformance-web-backend
    72spec:
    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---
    82apiVersion: gateway.networking.k8s.io/v1beta1
    83kind: ReferenceGrant
    84metadata:
    85  name: reference-grant-wrong-to-group
    86  namespace: gateway-conformance-web-backend
    87spec:
    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---
    97apiVersion: gateway.networking.k8s.io/v1beta1
    98kind: ReferenceGrant
    99metadata:
   100  name: reference-grant-wrong-to-kind
   101  namespace: gateway-conformance-web-backend
   102spec:
   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---
   112apiVersion: gateway.networking.k8s.io/v1beta1
   113kind: ReferenceGrant
   114metadata:
   115  name: reference-grant-wrong-to-name
   116  namespace: gateway-conformance-web-backend
   117spec:
   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

View as plain text