flytekit.Secret#

class flytekit.Secret(group=None, key=None, group_version=None, mount_requirement=MountType.ANY, env_var=None)[source]#

See Secrets for usage examples.

Parameters:
  • secret (group is the Name of the secret. For example in kubernetes secrets is the name of the)

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

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

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

  • secret. (env_var is optional. Custom environment name to set the value of the) – If mount_requirement is ENV_VAR, then the value is the secret itself. If mount_requirement is FILE, then the value is the path to the secret file.

  • group (str | None)

  • key (str | None)

  • group_version (str | None)

  • mount_requirement (MountType)

  • env_var (str | None)

Methods

classmethod from_flyte_idl(pb2_object)[source]#
Parameters:

pb2_object (Secret)

Return type:

Secret

serialize_to_string()[source]#
Return type:

str

short_string()[source]#
Return type:

Text

to_flyte_idl()[source]#
Return type:

Secret

verbose_string()[source]#
Return type:

Text

Attributes

env_var: str | None = None
group: str | None = None
group_version: str | None = None
is_empty
key: str | None = None
mount_requirement: MountType = 0[source]