File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414# 2. Writes fsxOntap.* values into values-hub.yaml and values-secondary.yaml
1515# 3. Writes vpcPeering.* values into values-hub.yaml
1616# 4. Writes s3AppVault.* values from values-global.yaml
17- # 5. Writes route53Failover.* values (domain from cluster DNS; optional AWS
18- # lookup of hosted zone ID — see crossplane-vars.yml)
17+ # 5. Writes route53Failover.* and drDnsReconciler.* (domain from cluster DNS;
18+ # hosted zone ID via AWS lookup or dr_failover_hosted_zone_id — see crossplane-vars.yml)
1919#
2020# Once committed and pushed, ArgoCD syncs the Crossplane managed resources.
2121#
366366 yq -i ".route53Failover.attachSecondaryHealthCheck = ${ATTACH}" {{ _project_root }}/values-hub.yaml
367367 yq -i '.route53Failover.followPromotedDns.enabled = {{ dr_follow_promoted_dns | default(true) | bool | lower }}' {{ _project_root }}/values-hub.yaml
368368 yq -i '.route53Failover.apps = {{ dr_failover_apps | default([]) | to_json }}' {{ _project_root }}/values-hub.yaml
369+ yq -i '.drDnsReconciler.domain = "{{ _failover_domain }}"' {{ _project_root }}/values-hub.yaml
370+ yq -i '.drDnsReconciler.hostedZoneId = "{{ _r53_zone_resolve.stdout | trim }}"' {{ _project_root }}/values-hub.yaml
369371 changed_when : true
370372
371373 - name : Enable drFailover in values-global.yaml
389391 - " Domain: {{ _failover_domain }}"
390392 - " Zone lookup (then dr.* parent if needed): {{ _route53_zone_lookup_name }}"
391393 - " Hosted zone ID: {{ _r53_hz_msg }}"
394+ - " drDnsReconciler (values-hub): domain + hostedZoneId set to match"
392395 - " Primary router: {{ _prod_router_hostname }}"
393396 - " Secondary router: {{ _dr_router_hostname }}"
394397 - " Apps: {{ dr_failover_apps | default([]) | map(attribute='name') | list }}"
Original file line number Diff line number Diff line change @@ -69,6 +69,8 @@ fsx_deployment_type: "MULTI_AZ_1"
6969# the parent apex (e.g. dr.aws.example.com -> aws.example.com).
7070# - Optional override: dr_failover_hosted_zone_lookup_name if you need a specific apex.
7171# - Optional explicit: dr_failover_hosted_zone_id when discovery cannot run (air-gapped).
72+ # - crossplane-setup also writes drDnsReconciler.domain and drDnsReconciler.hostedZoneId
73+ # (same as route53Failover) into values-hub.yaml for Argo/Helm.
7274# Disable parent fallback: -e dr_failover_discover_hosted_zone_parent=false
7375# To disable Route53 in this playbook: -e route53_failover_enabled=false
7476#
You can’t perform that action at this time.
0 commit comments