airflow.providers.cncf.kubernetes.resource_convert.secret

Module Contents

Functions

convert_secret(secret_name)

Convert a str into an k8s object.

convert_image_pull_secrets(image_pull_secrets)

Convert an image pull secret name into k8s local object reference.

airflow.providers.cncf.kubernetes.resource_convert.secret.convert_secret(secret_name)[source]

Convert a str into an k8s object.

Parameters

secret_name (str) –

Returns

Return type

kubernetes.client.models.V1EnvFromSource

airflow.providers.cncf.kubernetes.resource_convert.secret.convert_image_pull_secrets(image_pull_secrets)[source]

Convert an image pull secret name into k8s local object reference.

Parameters

image_pull_secrets (str) – comma separated string that contains secrets

Returns

Return type

list[kubernetes.client.models.V1LocalObjectReference]

Was this entry helpful?