From 18fd155d2be48a42444611d3169a2681edabf673 Mon Sep 17 00:00:00 2001 From: Aleksei Sviridkin Date: Mon, 25 May 2026 17:27:14 +0300 Subject: [PATCH] feat(external-dns): enable gateway-tlsroute alongside gateway-httproute MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Gateway API source-flag toggle (gatewayAPI=true) already enabled gateway-httproute discovery. cozystack ships TLSRoute attachments for SSL-passthrough services (kubernetes control plane API, kubevirt CDI uploadproxy, kubevirt VM exportproxy) — without gateway-tlsroute in the external-dns sources list those hostnames are never picked up for DNS record management. Adds gateway-tlsroute under the same conditional and updates the value description / schema / README to reflect that the toggle now covers both route kinds. Signed-off-by: Aleksei Sviridkin --- packages/extra/external-dns/README.md | 2 +- packages/extra/external-dns/templates/external-dns.yaml | 1 + packages/extra/external-dns/values.schema.json | 2 +- packages/extra/external-dns/values.yaml | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/extra/external-dns/README.md b/packages/extra/external-dns/README.md index d73fbf558..481c4cd30 100644 --- a/packages/extra/external-dns/README.md +++ b/packages/extra/external-dns/README.md @@ -10,7 +10,7 @@ | `domainFilters` | List of domains this external-dns instance can manage. | `[]string` | `[]` | | `policy` | How DNS records are synchronized. | `string` | `upsert-only` | | `extraArgs` | Extra arguments for external-dns. | `[]string` | `[]` | -| `gatewayAPI` | Enable Gateway API HTTPRoute as a source for DNS records. | `bool` | `false` | +| `gatewayAPI` | Enable Gateway API HTTPRoute and TLSRoute as sources for DNS records. | `bool` | `false` | | `annotationPrefix` | Custom annotation prefix for external-dns (useful for running multiple instances). | `string` | `""` | diff --git a/packages/extra/external-dns/templates/external-dns.yaml b/packages/extra/external-dns/templates/external-dns.yaml index cdfb89017..f43de8833 100644 --- a/packages/extra/external-dns/templates/external-dns.yaml +++ b/packages/extra/external-dns/templates/external-dns.yaml @@ -37,6 +37,7 @@ spec: - service {{- if .Values.gatewayAPI }} - gateway-httproute + - gateway-tlsroute {{- end }} {{- with .Values.domainFilters }} domainFilters: diff --git a/packages/extra/external-dns/values.schema.json b/packages/extra/external-dns/values.schema.json index 26fca7bf6..4eb80234d 100644 --- a/packages/extra/external-dns/values.schema.json +++ b/packages/extra/external-dns/values.schema.json @@ -45,7 +45,7 @@ } }, "gatewayAPI": { - "description": "Enable Gateway API HTTPRoute as a source for DNS records.", + "description": "Enable Gateway API HTTPRoute and TLSRoute as sources for DNS records.", "type": "boolean", "default": false }, diff --git a/packages/extra/external-dns/values.yaml b/packages/extra/external-dns/values.yaml index 74db1351e..e762fa4c3 100644 --- a/packages/extra/external-dns/values.yaml +++ b/packages/extra/external-dns/values.yaml @@ -31,7 +31,7 @@ policy: "upsert-only" ## @param {[]string} extraArgs - Extra arguments for external-dns. extraArgs: [] -## @param {bool} gatewayAPI=false - Enable Gateway API HTTPRoute as a source for DNS records. +## @param {bool} gatewayAPI=false - Enable Gateway API HTTPRoute and TLSRoute as sources for DNS records. gatewayAPI: false ## @param {string} [annotationPrefix] - Custom annotation prefix for external-dns (useful for running multiple instances).