flytekit.Secret

class flytekit.Secret(group: str, key: str, group_version: Optional[str] = None, mount_requirement: flytekit.models.security.Secret.MountType = <MountType.ANY: 0>)[source]
Parameters
  • is the Name of the secret. For example in kubernetes secrets is the name of the secret (group) –

  • is optional and can be an individual secret identifier within the secret For k8s this is required (key) –

  • is the version of the secret. This is an optional field (version) –

  • provides a hint to the system as to how the secret should be injected (mount_requirement) –

__init__(group: str, key: str, group_version: Optional[str] = None, mount_requirement: flytekit.models.security.Secret.MountType = <MountType.ANY: 0>)None

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(group, key[, group_version, …])

Initialize self.

from_flyte_idl(pb2_object)

short_string()

rtype

Text

to_flyte_idl()

verbose_string()

rtype

Text

Attributes

group_version

is_empty

mount_requirement