crate.operator.utils.secrets module

crate.operator.utils.secrets.gen_password(length, alphabet='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789')

Generate a cryptographically secure password of length length.

Parameters
  • length (int) – The desired password length.

  • alphabet – The characters to use within the password.

Return type

str

crate.operator.utils.secrets.get_image_pull_secrets()
Return type

Optional[List[V1LocalObjectReference]]