cert-manager/pkg
Maël Valais 4b3af946db gateway-api: with v1alpha2, the labels have become optional
Previously, in v1alpha1, an HTTPRoute was matched to a Gateway using
the label selectors present on the Gateways. For example, with the
following Gateway:

  apiVersion: networking.x-k8s.io/v1alpha1
  kind: Gateway
  metadata:
    name: acmesolver
  spec:
    listeners:
      - protocol: HTTP
        port: 80
        routes:
          kind: HTTPRoute
          selector:
            matchLabels:
              app: foo

you would have to use the following labels on the HTTPRoute in order to
get the above Gateway to be used:

  apiVersion: networking.x-k8s.io/v1alpha1
  kind: HTTPRoute
  metadata:
    labels:
      app: foo

With v1alpha2, the label selectors have been dropped. Instead, the
HTTPRoute has to give a direct reference to the Gateway:

    apiVersion: gateway.networking.k8s.io/v1alpha2
    kind: HTTPRoute
    spec:
      parentRefs:
        - kind: Gateway
          name: acmesolver
          namespace: traefik

This means that the "labels" field on the gatewayHTTPRoute solver is now
optional:

    apiVersion: cert-manager.io/v1
    kind: Issuer
    spec:
      acme:
        solvers:
          - http01:
              gatewayHTTPRoute:
                labels:              | This field is
                  app: test          | now optional.
                parentRefs:
                  - kind: Gateway
                    name: acmesolver

Signed-off-by: Maël Valais <mael@vls.dev>
2022-03-21 17:39:10 +01:00
..
acme rename all uses of github.com/jetstack/cert-manager 2022-02-02 09:08:31 +00:00
api rename all uses of github.com/jetstack/cert-manager 2022-02-02 09:08:31 +00:00
apis gateway-api: with v1alpha2, the labels have become optional 2022-03-21 17:39:10 +01:00
client rename all uses of github.com/jetstack/cert-manager 2022-02-02 09:08:31 +00:00
controller update gateway-shim controller unit tests 2022-03-01 15:05:21 +00:00
ctl rename all uses of github.com/jetstack/cert-manager 2022-02-02 09:08:31 +00:00
issuer Replaces dns v0.41 -> v0.34 2022-03-17 20:14:55 +00:00
logs rename all uses of github.com/jetstack/cert-manager 2022-02-02 09:08:31 +00:00
metrics rename all uses of github.com/jetstack/cert-manager 2022-02-02 09:08:31 +00:00
scheduler Increase margin of error in an otherwise unsound test 2022-02-11 10:14:34 +00:00
util rename all uses of github.com/jetstack/cert-manager 2022-02-02 09:08:31 +00:00
webhook fix imports in a few files 2022-02-18 17:42:45 +00:00