startup#

async gafaelfawr.operator.startup.startup(memo, **_)#

Initialize global data for Kubernetes operators.

Anything stored in the provided memo argument will be made available, via shallow copy, in the memo argument to any other handler. Use this to initialize the database and Redis pools, create service objects, and so forth.

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.

  • _ (Any) –

Return type:

None