airflow.providers.cncf.kubernetes.resource_convert.configmap

函数

convert_configmap(configmap_name)

将字符串转换为 k8s 对象。

convert_configmap_to_volume(configmap_info)

将 config_map_name 和 mount_path 的字典转换为 k8s 卷挂载对象和 k8s 卷。

模块内容

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

将字符串转换为 k8s 对象。

参数:

configmap_name – 配置映射名称

返回值:

返回类型:

kubernetes.client.models.V1EnvFromSource

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

将 config_map_name 和 mount_path 的字典转换为 k8s 卷挂载对象和 k8s 卷。

参数:

configmap_info (dict[str, str]) – {配置映射名称: 挂载路径} 的字典

返回值:

返回类型:

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

此条目有帮助吗?