...

Text file src/sigs.k8s.io/gateway-api/conformance/tests/httproute-invalid-parentref-not-matching-section-name.yaml

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

     1apiVersion: gateway.networking.k8s.io/v1
     2kind: HTTPRoute
     3metadata:
     4  name: httproute-listener-not-matching-section-name
     5  namespace: gateway-conformance-infra
     6spec:
     7  parentRefs:
     8  - name: same-namespace
     9    namespace: gateway-conformance-infra
    10    port: 80
    11    # mismatched sectionName here (http1 is not an available gateway listener) triggers NoMatchingParent reason
    12    sectionName: http1
    13  rules:
    14  - backendRefs:
    15    - name: infra-backend-v1
    16      kind: Service
    17      port: 8080

View as plain text