pod_runner
Contains courtesy classes and functions for making pod running easier.
Module
Functions
setup_datasource
def setup_datasource( datasource_config: DatasourceConfig, fallback_name: Optional[str] = None, fallback_details: Optional[PodDetailsConfig] = None,) ‑> DatasourceContainerConfig:
Creates a BaseSource from a DatasourceConfig.
Arguments
datasource_config
: The configuration as a DatasourceConfig instance.fallback_name
: The name to use for the datasource if one is not explicitly provided.fallback_details
: The details to use for the datasource if one is not explicitly provided.
Returns The created DatasourceContainerConfig.
setup_pod_from_config
def setup_pod_from_config(config: PodConfig) ‑> Pod:
Creates a pod from a loaded config.
Arguments
config
: The configuration as a PodConfig instance.
Returns The created pod.
setup_pod_from_config_file
def setup_pod_from_config_file( path_to_config_yaml: Union[str, PathLike],) ‑> Pod:
Creates a pod from a YAML config file.
Arguments
path_to_config_yaml
: The path to the config file.
Returns The created pod.