openova/clusters/_template
e3mrah 25f14469d3
fix(provisioner): map wizard's three-mode domain selector to tofu's binary pool/byo enum (#1069)
Caught live on omantel.biz re-provision (deploymentId ab0bf689620f4102):
tofu plan failed at exit 1 with:

  Error: Invalid value for variable
    on variables.tf line 296:
   296: variable "domain_mode" {
      ├────────────────
      │ var.domain_mode is "byo-manual"
    Domain mode must be 'pool' or 'byo'.

The wizard's StepDomain has three options (pool / byo-manual /
byo-api) so the UX can branch the operator into the right flow:

  - pool:        OpenOva owns the parent zone via Dynadot+PDM
  - byo-manual:  operator pastes NS records into their registrar
  - byo-api:     operator's registrar API drives NS automatically

The OpenTofu module's `variable "domain_mode"` validation only
accepts the binary pool/byo distinction — from the cloud-infra layer
(Hetzner servers, network, LB) NONE of those wizard distinctions
matter; tofu only needs to know whether to call Dynadot at apply
time. The three-mode wizard value was being written verbatim to the
tfvars without mapping.

Add `mapDomainModeForTofu(wizardMode)` helper:
  - "pool"      → "pool"
  - "byo-manual"→ "byo"
  - "byo-api"   → "byo"
  - empty       → "byo"  (test path that doesn't set the field)

Bump chart 1.4.83 → 1.4.84.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-07 11:26:50 +04:00
..
bootstrap-kit fix(provisioner): map wizard's three-mode domain selector to tofu's binary pool/byo enum (#1069) 2026-05-07 11:26:50 +04:00
flux-system feat(day2-iac): Crossplane Compositions + per-Sovereign Flux cluster tree + catalyst-dns binary 2026-04-28 14:09:29 +02:00
infrastructure feat(day2-iac): Crossplane Compositions + per-Sovereign Flux cluster tree + catalyst-dns binary 2026-04-28 14:09:29 +02:00
sovereign-tls feat(powerdns,cert-manager): multi-zone bootstrap + per-zone wildcard cert (#827) (#838) 2026-05-04 23:42:00 +04:00
kustomization.yaml fix(provisioner): cloud-init bootstrap-kit path matches per-FQDN cluster dir (resolves #218) (#256) 2026-04-30 17:11:44 +04:00