Skip to content

Builtin name reference transformer config should include Gateway certificateRefs #6161

Description

@peterhirn

Eschewed features

  • This issue is not requesting templating, unstuctured edits, build-time side-effects from args or env vars, or any other eschewed feature.

What would you like to have added?

Builtin config should contain:

nameReference:
  - kind: Secret
    version: v1
    fieldSpecs:
      - path: spec/listeners/tls/certificateRefs/name
        kind: Gateway

(and maybe the same for kind: ConfigMap)

Why is this needed?

secretGenerator:
  - name: tls-certificate
    type: kubernetes.io/tls
    files:
      - tls.crt=secrets/cert.pem
      - tls.key=secrets/key.pem
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
  name: gateway-web
spec:
  gatewayClassName: traefik
  listeners:
    - name: web
      port: 8000
      protocol: HTTP
      allowedRoutes:
        namespaces:
          from: Same
    - name: websecure
      protocol: HTTPS
      port: 8443
      allowedRoutes:
        namespaces:
          from: Same
      tls:
        certificateRefs:
          - kind: Secret
            name: tls-certificate

Can you accomplish the motivating task without this feature, and if so, how?

What other solutions have you considered?

Anything else we should know?

No response

Feature ownership

  • I am interested in contributing this feature myself! 🎉

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions