startup¶
- async gafaelfawr.operator.startup.startup(memo, settings, **_)¶
Initialize global data for Kubernetes operators.
Anything stored in the provided
memo
argument will be made available, via shallow copy, in thememo
argument to any other handler. Use this to initialize the database and Redis pools, create service objects, and so forth. Also add some configuration settings to Kopf.- Parameters:
memo (
Memo
) – Holds global state, used to store the service objects and the various infrastructure used to create them, and which needs to be freed cleanly during shutdown.settings (
OperatorSettings
) – Holds the Kopf settings._ (
Any
)
- Raises:
DatabaseSchemaError – Raised if the database schema is not current.
- Return type: