Skip to content

Adopt existing Temporal cloud Namespaces with the adopt policy - #66

Open
nmechack27 wants to merge 1 commit into
mainfrom
Namespace-Adoption
Open

nmechack27 wants to merge 1 commit into
mainfrom
Namespace-Adoption

Conversation

@nmechack27

Copy link
Copy Markdown
Collaborator

What was changed

Adds the adopt adoption policy for Namespaces, so an existing Temporal Cloud Namespace can be brought under the TCO's management without recreating it. The user writes only the name and the cloud.temporal.io/adoption-policy: adopt annotation, and the operator fills in the spec from Temporal Cloud (similar to ACK's adopt).

Adoption (controller/namespace/adopt.go, called from ResourceSetLatest when status.id is empty): the Namespace is looked up by name.

Schema (namespace.go + regenerated CRD): spec, replicas, and retentionDays are optional so a name-only CR is accepted; the admission policy in #64 requires them for everything but adopt. Adds status.source.

Retain by default (deletionPolicy): adopted Namespaces without a deletion-policy annotation are kept on delete; an explicit annotation still wins.
AdoptionPolicy: adopt is the only valid value for now; adopt-or-create comes in a follow-up.

Why?

Checklist

  1. Closes

  2. How was this tested:

Unit tests for now but once Tomba's #64 lands I will be able to test it e2e

  1. Any docs updates needed?

@nmechack27
nmechack27 requested a review from jaypipes as a code owner November 5, 2026 00:59
@nmechack27
nmechack27 requested review from jaypipes, tomba7 and zainawaisn and removed request for jaypipes November 5, 2026 00:59
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