Open tomsiewert opened 1 year ago
Hi @tomsiewert. Thanks for reporting this. You are right that this error should be caught and should not crash the operator.
Currently the operator does not support validation during aply (using a validatingwebhook), as such a short term fix would be to catch this error during reconciliation and report it using an event + status. Longer term proper validation should be implemented.
If the storage class of an already deployed component gets changed, the operator will crash with a panic. The behaviour is kind of expected as the storage class is immutable in a StatefulSet, but I'd expect that the CRD validation prohibits me to change the storage class.
Panic:
Minimal config where I can reproduce that:
After a successful deployment, change the sc from
firststorageever
to another sc in the cluster.