Skip to content

Conversation

@NishanthNalluri
Copy link
Contributor

@NishanthNalluri NishanthNalluri commented Dec 15, 2025

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/stop-public-operator-reconcile) 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.

Copy link

@pritesh-lahoti pritesh-lahoti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pre-approving

.PHONY: release/publish-openshift-bundle
release/publish-openshift-bundle:
./build/release/teamcity-publish-openshift-bundle.sh

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: changes to this file seem unnecessary and could be reverted.

@NishanthNalluri NishanthNalluri force-pushed the nishanth/migration branch 5 times, most recently from e1d69f8 to e29f2db Compare January 5, 2026 16:33
To support migrating CockroachDB clusters from the public operator to the
CockroachDB operator through coexistence, we need to prevent the operator
from reverting manual changes made during the migration process. This includes
preventing the scale-up of StatefulSet pods after manual scale-down and
allowing modifications to Service labels (e.g., public service) which would
otherwise be reset by the operator.

This commit introduces a new migration label (`crdb.io/skip-reconcile`) in the
v1alpha1 API. When this label is set to "true" on the CrdbCluster resource,
the controller stops the entire reconciliation loop. This ensures the
operator does not interfere with any resources during the migration phase.
@NishanthNalluri NishanthNalluri merged commit 0c311a9 into master Jan 5, 2026
8 checks passed
@NishanthNalluri NishanthNalluri deleted the nishanth/migration branch January 5, 2026 17:47
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.

3 participants