airflow.providers.cncf.kubernetes.resource_convert.configmap

Module Contents

Functions

convert_configmap(configmap_name)

Convert a str into an k8s object.

convert_configmap_to_volume(configmap_info)

Convert a dictionary of config_map_name and mount_path into k8s volume mount object and k8s volume.

airflow.providers.cncf.kubernetes.resource_convert.configmap.convert_configmap(configmap_name)[source]

Convert a str into an k8s object.

Parameters

configmap_name – config map name

Returns

Return type

kubernetes.client.models.V1EnvFromSource

airflow.providers.cncf.kubernetes.resource_convert.configmap.convert_configmap_to_volume(configmap_info)[source]

Convert a dictionary of config_map_name and mount_path into k8s volume mount object and k8s volume.

Parameters

configmap_info (dict[str, str]) – a dictionary of {config_map_name: mount_path}

Returns

Return type

tuple[list[kubernetes.client.models.V1Volume], list[kubernetes.client.models.V1VolumeMount]]

Was this entry helpful?