operator icon indicating copy to clipboard operation
operator copied to clipboard

question: how to enable operator ready state after all sub conponents starts?

Open Howie59 opened this issue 2 years ago • 2 comments

as topic describe

Howie59 avatar Jan 09 '23 13:01 Howie59

any method like this? kubectl - wait - --for=condition=Ready

Howie59 avatar Jan 09 '23 15:01 Howie59

It's an interesting feature. Currently, only VMCluster has correct status spec that reflects actual cluster status.

Usually I recommend to wait for specific deployments/pods created by operator instead of waiting for CRD status.

f41gh7 avatar Jan 09 '23 15:01 f41gh7

Since v0.42.0 release , it's possible to wait readiness for any CRD with command:

kubectl -n vmcloud wait CRD/CRD_NAME --for='jsonpath={.status.updateStatus}'=operational

9ff78ab https://github.com/VictoriaMetrics/operator/commit/4d97ccfa4f722a4879bb263fb17ef4381f91a511 https://github.com/VictoriaMetrics/operator/commit/39795b468aef611193652e9244f32d85f6502615

f41gh7 avatar Apr 17 '24 17:04 f41gh7