Cluster operations
Stackable operators offer different cluster operations to control the reconciliation process. This is useful when updating operators, debugging or testing of new settings:
- 
reconciliationPaused- Stop the operator from reconciling the cluster spec. The status will still be updated.
- 
stopped- Stop all running pods but keep updating all deployed resources likeConfigMaps,Servicesand the cluster status.
Example
---
apiVersion: mycluster.stackable.tech/v1alpha1
kind: MyCluster
metadata:
  name: my-cluster
spec:
  clusterOperation:
    reconciliationPaused: false (1)
    stopped: false (2)| 1 | The clusterOperation.reconciliationPausedflag set totruestops the operator from reconciling any changes to the cluster spec. The cluster status is still updated. | 
| 2 | The clusterOperation.stoppedflag set totruestops all pods in the cluster. This is done by setting all deployedStatefulSetreplicas to 0. | 
Notes
If not specified, clusterOperation.reconciliationPaused and clusterOperation.stopped default to false.
| When setting clusterOperation.reconciliationPausedandclusterOperation.stoppedto true in the same step,clusterOperation.reconciliationPausedwill take precedence. This means the cluster will stop reconciling immediately and thestoppedfield is ignored. To avoid this, the cluster should first be stopped and then paused. |