@@ -52,6 +52,15 @@ USAGE:
52
52
Enable all feature flags on an INSTANCE
53
53
kubectl rabbitmq enable-all-feature-flags INSTANCE
54
54
55
+ Pause reconciliation for an instance
56
+ kubectl rabbitmq pause-reconciliation INSTANCE
57
+
58
+ Resume reconciliation for an instance
59
+ kubectl rabbitmq resume-reconciliation INSTANCE
60
+
61
+ List all instances that has the pause reconciliation label
62
+ kubectl rabbitmq list-pause-reconciliation-instances
63
+
55
64
Run perf-test against an instance - you can pass as many perf test parameters as you want
56
65
kubectl rabbitmq perf-test INSTANCE --rate 100
57
66
If you want to monitor perf-test, create the following ServiceMonitor:
@@ -233,6 +242,18 @@ enable_all_feature_flags() {
233
242
kubectl exec " ${1} -server-0" -- bash -c " rabbitmqctl list_feature_flags | grep disabled | cut -f 1 | xargs -r -L1 rabbitmqctl enable_feature_flag"
234
243
}
235
244
245
+ pause-reconciliation () {
246
+ kubectl label rabbitmqclusters " ${1} " rabbitmq.com/pauseReconciliation=true
247
+ }
248
+
249
+ resume-reconciliation () {
250
+ kubectl label rabbitmqclusters " ${1} " rabbitmq.com/pauseReconciliation-
251
+ }
252
+
253
+ list-pause-reconciliation-instances () {
254
+ kubectl get rabbitmqclusters -l rabbitmq.com/pauseReconciliation=true --show-labels
255
+ }
256
+
236
257
secrets () {
237
258
get_instance_details " $@ "
238
259
echo " username: ${username} "
@@ -330,6 +351,25 @@ main() {
330
351
fi
331
352
enable_all_feature_flags " $1 "
332
353
;;
354
+ " pause-reconciliation" )
355
+ shift 1
356
+ if [[ " $# " -ne 1 ]]; then
357
+ usage
358
+ exit 1
359
+ fi
360
+ pause-reconciliation " $1 "
361
+ ;;
362
+ " resume-reconciliation" )
363
+ shift 1
364
+ if [[ " $# " -ne 1 ]]; then
365
+ usage
366
+ exit 1
367
+ fi
368
+ resume-reconciliation " $1 "
369
+ ;;
370
+ " list-pause-reconciliation-instances" )
371
+ list-pause-reconciliation-instances
372
+ ;;
333
373
" install-cluster-operator" )
334
374
shift 1
335
375
if [[ " $# " -gt 0 ]]; then
0 commit comments