materialize
materialize copied to clipboard
orchestrator: use `ownerReference` on stateful set
Instead of manually deleting created Kubernetes resources, we can use ownerReference
on the top-level resource (currently the StatefulSet
) and let Kubernetes garbage collect the child resources (e.g. Service
).
Per Paul's suggestion in https://github.com/MaterializeInc/materialize/pull/14901#pullrequestreview-1115413361.