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)[原始碼]

將字串轉換為 k8s 物件。

參數

configmap_name – config map 名稱

回傳

回傳類型

kubernetes.client.models.V1EnvFromSource

airflow.providers.cncf.kubernetes.resource_convert.configmap.convert_configmap_to_volume(configmap_info)[原始碼]

將 config_map_name 和 mount_path 的字典轉換為 k8s 卷掛載物件和 k8s 卷。

參數

configmap_info (dict[str, str]) – {config_map_name: mount_path} 的字典

回傳

回傳類型

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

此條目是否有幫助?