Skip to content

Conversation

@NishanthNalluri
Copy link
Contributor

To support migrating CockroachDB clusters from the public operator to the CockroachDB operator through coexistence, we would need additional logic to prevent the operator from scaling up StatefulSet pods after they have been manually scaled down.

This commit introduces a new migration label(crdb.io/migrating) for the CrdbCluster resource. When this label is applied, the reconciler is instructed to skip updates to the relevant StatefulSet replicas. This ensures the operator does not interfere with the controlled scale-down process required during the migration phase.

To support migrating CockroachDB clusters from the public operator to the CockroachDB operator through coexistence,
we would need additional logic to prevent the operator from scaling up StatefulSet pods after they have been manually scaled down.

This commit introduces a new migration label(`crdb.io/migrating`) for the CrdbCluster resource. When this label is applied, the reconciler is instructed
to skip updates to the relevant StatefulSet replicas.
This ensures the operator does not interfere with the controlled scale-down process required during the migration phase.
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