def _mount_config_map_op(config_map_name: Text) -> OpFunc:
    'Mounts all key-value pairs found in the named Kubernetes ConfigMap.\n\n  All key-value pairs in the ConfigMap are mounted as environment variables.\n\n  Args:\n    config_map_name: The name of the ConfigMap resource.\n\n  Returns:\n    An OpFunc for mounting the ConfigMap.\n  '

    def mount_config_map(container_op: dsl.ContainerOp):
        config_map_ref = k8s_client.V1ConfigMapEnvSource(name=config_map_name, optional=True)
        container_op.container.add_env_from(k8s_client.V1EnvFromSource(config_map_ref=config_map_ref))
    return mount_config_map
Mounts all key-value pairs found in the named Kubernetes ConfigMap.

All key-value pairs in the ConfigMap are mounted as environment variables.

Args:
  config_map_name: The name of the ConfigMap resource.

Returns:
  An OpFunc for mounting the ConfigMap.
def _mount_config_map_op(config_map_name: Text) -> OpFunc:
    'Mounts all key-value pairs found in the named Kubernetes ConfigMap.\n\n  All key-value pairs in the ConfigMap are mounted as environment variables.\n\n  Args:\n    config_map_name: The name of the ConfigMap resource.\n\n  Returns:\n    An OpFunc for mounting the ConfigMap.\n  '

    def mount_config_map(container_op: dsl.ContainerOp):
        config_map_ref = k8s_client.V1ConfigMapEnvSource(name=config_map_name, optional=True)
        container_op.container.add_env_from(k8s_client.V1EnvFromSource(config_map_ref=config_map_ref))
    return mount_config_map