From 9594cfdec62a79d54bec74cc553db3fa24d8449c Mon Sep 17 00:00:00 2001 From: Robert Volkmann Date: Tue, 19 Nov 2024 00:37:47 +0100 Subject: [PATCH] Add suffix because gardener_dns_domain already contains internal --- .../roles/gardener/tasks/gardener.yaml | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/control-plane/roles/gardener/tasks/gardener.yaml b/control-plane/roles/gardener/tasks/gardener.yaml index 140aac06..18b1f0e2 100644 --- a/control-plane/roles/gardener/tasks/gardener.yaml +++ b/control-plane/roles/gardener/tasks/gardener.yaml @@ -38,7 +38,28 @@ apply: true loop: - internal-domain -# - default-domain + +- name: Deploy domain secrets (in virtual apiserver) + k8s: + definition: + apiVersion: v1 + kind: Secret + metadata: + namespace: garden + annotations: + helm.sh/resource-policy: keep + dns.gardener.cloud/domain: "external.{{ gardener_dns_domain }}" + dns.gardener.cloud/provider: "{{ gardener_dns_provider }}" + labels: + app: gardener + gardener.cloud/role: "{{ item }}" + name: "{{ item }}-{{ gardener_dns_domain | regex_replace('\\.', '-') }}" + type: Opaque + data: "{{ gardener_dns_credentials }}" + kubeconfig: "{{ gardener_kube_apiserver_kubeconfig_path }}" + apply: true + loop: + - default-domain - name: Deploy Gardener Control Plane (in virtual apiserver) include_role: