From 5054827b0719d735ebc76d8cbfc5b60b4e50d66d Mon Sep 17 00:00:00 2001 From: Jesse Haka Date: Mon, 18 Nov 2024 23:27:18 +0200 Subject: [PATCH] add openstack support to external-dns --- .../addons/external-dns.addons.k8s.io/k8s-1.19.yaml.template | 4 ++++ upup/pkg/fi/cloudup/template_functions.go | 2 ++ 2 files changed, 6 insertions(+) diff --git a/upup/models/cloudup/resources/addons/external-dns.addons.k8s.io/k8s-1.19.yaml.template b/upup/models/cloudup/resources/addons/external-dns.addons.k8s.io/k8s-1.19.yaml.template index 9caf028c159e7..301da472a7729 100644 --- a/upup/models/cloudup/resources/addons/external-dns.addons.k8s.io/k8s-1.19.yaml.template +++ b/upup/models/cloudup/resources/addons/external-dns.addons.k8s.io/k8s-1.19.yaml.template @@ -63,6 +63,10 @@ spec: value: "127.0.0.1" - name: KUBERNETES_SERVICE_PORT value: "443" +{{ range $name, $value := DNSControllerEnvs }} + - name: {{ $name }} + value: {{ $value }} +{{ end }} ports: - name: http protocol: TCP diff --git a/upup/pkg/fi/cloudup/template_functions.go b/upup/pkg/fi/cloudup/template_functions.go index 68f6c1d452446..2af4c894a2dda 100644 --- a/upup/pkg/fi/cloudup/template_functions.go +++ b/upup/pkg/fi/cloudup/template_functions.go @@ -815,6 +815,8 @@ func (tf *TemplateFunctions) ExternalDNSArgv() ([]string, error) { switch cloudProvider { case kops.CloudProviderAWS: argv = append(argv, "--provider=aws") + case kops.CloudProviderOpenstack: + argv = append(argv, "--provider=designate") case kops.CloudProviderGCE: project := cluster.Spec.CloudProvider.GCE.Project argv = append(argv, "--provider=google")