Skip to content

feat: ability to suspend ClickHouseInstallation and ClickHouseKeeper reconciliation#1580

Merged
sunsingerus merged 1 commit intoAltinity:0.24.3from
a7i:suspend
Dec 11, 2024
Merged

feat: ability to suspend ClickHouseInstallation and ClickHouseKeeper reconciliation#1580
sunsingerus merged 1 commit intoAltinity:0.24.3from
a7i:suspend

Conversation

@a7i
Copy link
Copy Markdown
Contributor

@a7i a7i commented Dec 3, 2024

For ClickHouse technical maintenance or debugging, it would be ideal to suspend reconciliation. For our use-case, we plan on suspending CRs during Blue/Green cluster upgrades, so as we move workloads from one cluster to another (one namespace at a time), we would need the operator to suspend any reconciliation and only resume once the namespace is fully migrated to the new cluster

Closes #1433

Thanks for taking the time to contribute to clickhouse-operator!

Please, read carefully instructions on how to make a Pull Request.

This will help a lot for maintainers to adopt your Pull Request.

Important items to consider before making a Pull Request

Please check items PR complies to:

  • All commits in the PR are squashed. More info
  • The PR is made into dedicated next-release branch, not into master branch1. More info
  • The PR is signed. More info

--

1 If you feel your PR does not affect any Go-code or any testable functionality (for example, PR contains docs only or supplementary materials), PR can be made into master branch, but it has to be confirmed by project's maintainer.

@a7i a7i force-pushed the suspend branch 4 times, most recently from e74fe4b to 20764a5 Compare December 3, 2024 19:31
Copy link
Copy Markdown
Collaborator

@sunsingerus sunsingerus left a comment

Choose a reason for hiding this comment

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

new field needs to be specified not only in go files, but in CRD spec as well
check deploy/builder

@a7i
Copy link
Copy Markdown
Contributor Author

a7i commented Dec 4, 2024

new field needs to be specified not only in go files, but in CRD spec as well check deploy/builder

hey @sunsingerus can you be a bit more specific? the docs are non-existent and I spent a long time running every command in /dev with no avail

@sunsingerus
Copy link
Copy Markdown
Collaborator

sunsingerus commented Dec 4, 2024

New fields provided by the CRD has to be specified in CRD definition yaml file, such as:

apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: clickhousekeeperinstallations.clickhouse-keeper.altinity.com

Templates for these files for CHI and CHK and support tools can be found in deploy/builder folder

@a7i a7i force-pushed the suspend branch 2 times, most recently from d70c0ab to 7a6c221 Compare December 4, 2024 17:27
@a7i a7i requested a review from sunsingerus December 4, 2024 17:27
@a7i a7i requested a review from sunsingerus December 5, 2024 15:21
@sunsingerus sunsingerus changed the base branch from 0.24.2 to 0.24.3 December 6, 2024 10:51
@a7i a7i requested a review from sunsingerus December 9, 2024 15:25
@a7i a7i force-pushed the suspend branch 3 times, most recently from 7a3a1cf to f2ff2e8 Compare December 9, 2024 15:30
…er` reconciliation

For ClickHouse technical maintenance or debugging, it would be ideal to suspend reconciliation.
For our use-case, we plan on suspending CRs during Blue/Green cluster upgrades, so as we
move workloads from one cluster to another (one namespace at a time), we would need the operator
to suspend any reconciliation and only resume once the namespace is fully migrated to the new cluster

Signed-off-by: Amir Alavi <[email protected]>
@sunsingerus sunsingerus merged commit 44598fa into Altinity:0.24.3 Dec 11, 2024
@a7i a7i deleted the suspend branch December 11, 2024 13:33
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