airflow.providers.cncf.kubernetes.resource_convert.secret

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.

Module Contents

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?