Events and Conditions #
Azure Schema Operator exposes varios events and conditions to allow for simpler status observation.
Conditions #
We can wait for a SchemaDeployment
to finish by waiting on the Execution
condition:
➜ kubectl wait --for=condition=Execution --timeout=10s schemadeployment/master-test-template
schemadeployment.dbschema.microsoft.com/master-test-template condition met
The condition is also displayed when we get the SchemaDeployment
object:
➜ kubectl get schemadeployments master-test-template
NAME TYPE EXECUTED
master-test-template kusto True
In case of failuer the Execution
condition will be marked as such:
➜ kubectl get schemadeployments master-test-template
NAME TYPE EXECUTED
master-test-template kusto False
Events #
Dureing the deployment process events will be reported on the different steps and changes that occur.
Events differ according to the type and required deployment, and can easily be seen from kubectl
:
|
|