Skip to content

Commit

Permalink
Add suffix because gardener_dns_domain already contains internal
Browse files Browse the repository at this point in the history
  • Loading branch information
robertvolkmann committed Nov 18, 2024
1 parent 6d1ca26 commit 9594cfd
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion control-plane/roles/gardener/tasks/gardener.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9594cfd

Please sign in to comment.