Skip to content

feat(hub/frontdoorcustomdomain): [PATCH 07/08] reconciler + DNS valid…#386

Open
rchincha wants to merge 1 commit into
Azure:mainfrom
rchincha:rchinchani/afd-07-frontdoorcustomdomain
Open

feat(hub/frontdoorcustomdomain): [PATCH 07/08] reconciler + DNS valid…#386
rchincha wants to merge 1 commit into
Azure:mainfrom
rchincha:rchinchani/afd-07-frontdoorcustomdomain

Conversation

@rchincha

Copy link
Copy Markdown

…ation token status + envtest

Part 07 of an 8-patch split of #373. Second AFD reconciler: FrontDoorCustomDomain.

  • pkg/controllers/hub/frontdoorcustomdomain/controller.go — reconciles FrontDoorCustomDomain CRs into AFDCustomDomain resources on the parent FrontDoorProfile, surfacing the DNS validation token in Status.DNSValidationToken so operators can add the TXT record.
  • pkg/controllers/hub/frontdoorcustomdomain/suite_test.go + controller_integration_test.go — envtest suite covering happy path, parent-profile-not-programmed, and validation token surfacing.
  • test/common/azurefrontdoor/fakeprovider/{endpoint,customdomain}.go — in-memory armcdn fakes for endpoints and custom domains.

Depends on API types from PATCH 03, SDK bundle from PATCH 04, and binary from PATCH 05. Sibling to PATCH 06 (frontdoorprofile).

Copilot-Session: a8fabc68-e113-49ef-b82d-d99a8502da11

What type of PR is this?

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Requirements:

How has this code been tested

Special notes for your reviewer

…ation token status + envtest

Part 07 of an 8-patch split of Azure#373. Second AFD reconciler: FrontDoorCustomDomain.

- pkg/controllers/hub/frontdoorcustomdomain/controller.go — reconciles
  FrontDoorCustomDomain CRs into AFDCustomDomain resources on the
  parent FrontDoorProfile, surfacing the DNS validation token in
  Status.DNSValidationToken so operators can add the TXT record.
- pkg/controllers/hub/frontdoorcustomdomain/suite_test.go +
  controller_integration_test.go — envtest suite covering happy path,
  parent-profile-not-programmed, and validation token surfacing.
- test/common/azurefrontdoor/fakeprovider/{endpoint,customdomain}.go —
  in-memory armcdn fakes for endpoints and custom domains.

Depends on API types from PATCH 03, SDK bundle from PATCH 04, and
binary from PATCH 05. Sibling to PATCH 06 (frontdoorprofile).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: a8fabc68-e113-49ef-b82d-d99a8502da11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant