flytekit.Secret#

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

See Using Secrets in a Task 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) –

  • group (str) –

  • key (str) –

  • group_version (Optional[str]) –

  • mount_requirement (flytekit.models.security.Secret.MountType) –

Return type

None

Methods

classmethod from_flyte_idl(pb2_object)[source]#
Parameters

pb2_object (flyteidl.core.security_pb2.Secret) –

Return type

flytekit.models.security.Secret

short_string()#
Return type

Text

to_flyte_idl()[source]#
Return type

flyteidl.core.security_pb2.Secret

verbose_string()#
Return type

Text

Attributes

group_version: Optional[str] = None#
is_empty#
mount_requirement: flytekit.models.security.Secret.MountType = 0#
group: str#
key: str#