create

async gafaelfawr.operator.tokens.create(name, namespace, body, memo, **_)

Handle creation or modification of a GafaelfawrServiceToken object.

Parameters:
  • name (str | None) – Name of the object.

  • namespace (str | None) – Namespace of the object.

  • body (Body) – Body of the object in dictionary form.

  • memo (Memo) – Holds global state, used to store the KubernetesTokenService object.

  • _ (Any)

Returns:

Status information to record in the object, or None if no changes were made.

Return type:

dict or None