Skip to content

refactor(example): temporal-crdb-deploy uses Argo for apply phases #108

Closed

Description

@lex00

Part of #100.

Scope

Rework examples/temporal-crdb-deploy/temporal/workflows/deploy.ts so Argo owns the declarative apply phases and Temporal keeps only the procedural ones.

Move to Argo (delete these activities / phases)

  • applySharedInfra, applyRegionalInfra (x3) -> Argo Applications on the mgmt cluster (Config Connector resources)
  • installESO (x3) -> Argo Application with Helm source per cluster
  • applyK8sManifests (x3) -> ApplicationSet, one App per workload cluster
  • waitForStatefulSets (x3) -> subsumed by Argo App Health=Healthy

Replace the above with ArgoAppFor / ArgoAppSetForRegions declarations + waitForArgoSync calls.

Keep in Temporal (genuinely procedural)

WAIT_DNS_DELEGATION (signal/update/auto-poll race), GENERATE_CERTS, PUSH_SECRETS, WAIT_DNS_RECORDS (out-of-band, not in git), INIT_CRDB, CONFIGURE_REGIONS, SETUP_BACKUP.

Acceptance criteria

  • Phase enum shrinks; workflow LOC roughly halved.
  • Fresh deploy succeeds end to end with the new split.
  • README updated to explain which layer owns what (and why DNS gates stay in Temporal).

Dependencies

Depends on composites + waitForArgoSync. Ship after the argo-cd-gke example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions