Skip to content

Add DatastoreMigration CR awareness to operator controllers#4577

Open
caseydavenport wants to merge 1 commit intotigera:masterfrom
caseydavenport:casey-migration-cr-support
Open

Add DatastoreMigration CR awareness to operator controllers#4577
caseydavenport wants to merge 1 commit intotigera:masterfrom
caseydavenport:casey-migration-cr-support

Conversation

@caseydavenport
Copy link
Member

Wire up the operator to read DatastoreMigration CRs and react to migration phase changes:

  • Defer APIServer reconciliation during Migrating phase to avoid fighting over the APIService resource
  • Trigger operator restart on Converged phase to switch to v3 CRD mode
  • Create/delete dynamic migration RBAC (calico-kube-controllers-migration ClusterRole) based on whether a DatastoreMigration CR exists
  • Check DatastoreMigration CR at startup to handle operator restarts during or after migration
  • Change UseV3CRDS() signature to accept *rest.Config so it can create a dynamic client for the DatastoreMigration check

Stacked on #4576 -- merge that first.

Wire up the operator to read DatastoreMigration CRs and react to
migration phase changes:

- Defer APIServer reconciliation during Migrating phase to avoid
  fighting over the APIService resource
- Trigger operator restart on Converged phase to switch to v3 CRD mode
- Create/delete dynamic migration RBAC for kube-controllers based on
  whether a DatastoreMigration CR exists
- Check DatastoreMigration CR at startup to handle operator restarts
  during or after migration
@caseydavenport caseydavenport force-pushed the casey-migration-cr-support branch from 51acfe6 to 09bb287 Compare March 24, 2026 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants