piraeus-operator icon indicating copy to clipboard operation
piraeus-operator copied to clipboard

Clarify the meaning of the CRDs .status.conditions

Open rgl opened this issue 1 year ago • 1 comments

Can you please clarify the meaning of the CRDs .status.conditions?

That would be especially useful for a newbie like me :-)

For example, at https://github.com/piraeusdatastore/piraeus-operator/blob/v2.5.0/docs/reference/linstorcluster.md#statusconditions, its not clear how to wait for a condition that means "How do I wait until the LinstorCluster is ready to use (i.e. I can create a persistent volume from it)?"

For me, its not clear whether these conditions are related, whether they progress (e.g. Configured -> Available > Applied), or if they can be set at the same time, IOW, maybe have some kind of state machine diagram?

It would also help to include an example on how to wait for a condition to be meet? For example:

kubectl wait LinstorCluster/linstorcluster --timeout=5m --for=condition=Applied

rgl avatar Apr 07 '24 08:04 rgl

I guess the best way to wait for "everything" to be done is:

kubectl wait LinstorCluster/linstorcluster --timeout=5m --for=condition=Configured
kubectl wait LinstorSatellite --all --timeout=5m --for=condition=Configured

WanzenBug avatar Apr 08 '24 08:04 WanzenBug