crate.operator.expand_volume module¶
- class crate.operator.expand_volume.ExpandVolumeSubHandler(namespace, name, ref, context, depends_on=None, run_on_dep_failures=False)¶
Bases:
StateBasedSubHandler
- async crate.operator.expand_volume.expand_volume(core, namespace, name, data_diff_items, logger)¶
Expand a cluster’s disk size according to the given
data_diff_items
.- Parameters
core (
CoreV1Api
) – An instance of the Kubernetes Core V1 API.namespace (
str
) – The Kubernetes namespace for the CrateDB cluster.name (
str
) – The CrateDB custom resource name defining the CrateDB cluster.old – The old resource body.
data_diff_items (
Diff
) – A list of changes made to the individual data node specifications.logger (
Logger
) –