crate.operator.main module

crate.operator.main.annotation_filter()

If running in parallel testing mode, filter the cratedbs to only match those that have the “testing” annotation set to the current PID.

This allows running several operators in parallel in each xdist worker.

async crate.operator.main.cluster_create(namespace, meta, spec, patch, status, logger, **_kwargs)

Handles creation of CrateDB Clusters.

Parameters
async crate.operator.main.cluster_restore(namespace, name, diff, new, patch, status, started, logger, **_kwargs)

Handles field changes which trigger restoring data from a backup.

Parameters
async crate.operator.main.cluster_update(namespace, name, patch, status, diff, started, **_kwargs)

Handles updates to the CrateDB resource.

Parameters
async crate.operator.main.enable_cronjob_after_delay(namespace, name, spec, patch, status, logger, **_kwargs)
Parameters
async crate.operator.main.grand_central_create(namespace, name, old, new, logger, **_kwargs)

Handles deployments of grand central backend.

Parameters
async crate.operator.main.grand_central_upgrade(namespace, name, diff, logger, **_kwargs)

Handles updates to the backend image of grand central.

Parameters
async crate.operator.main.login(**kwargs)
async crate.operator.main.ping_cratedb(namespace, name, spec, patch, logger, **_kwargs)
Parameters
async crate.operator.main.raise_on_namespace_terminating(namespace)
Parameters

namespace (str) –

async crate.operator.main.secret_update(namespace, name, diff, logger, **_kwargs)

Handles changes to the password for a CrateDB cluster.

Parameters
async crate.operator.main.service_backup_schedule_update(namespace, name, diff, logger, **_kwargs)

Handles updates to the backup schedule for AWS s3 backups.

Parameters
async crate.operator.main.service_cidr_changes(namespace, name, diff, logger, **_kwargs)

Handles updates to the list of allowed CIDRs, and updates the relevant k8s Service.

Parameters
async crate.operator.main.service_external_ip_update(name, namespace, diff, meta, logger, **_kwargs)

Handle new IP addresses being assigned to LoadBalancer-type services.

This gets posted to the backend for further handling as a webhook (if webhooks are enabled).

Parameters
async crate.operator.main.startup(settings, **_kwargs)
Parameters

settings (OperatorSettings) –