codeflare_sdk.common.utils package

Submodules

codeflare_sdk.common.utils.demos module

codeflare_sdk.common.utils.demos.copy_demo_nbs(dir: str = './demo-notebooks', overwrite: bool = False)[source]

Copy the demo notebooks from the package to the current working directory

overwrite=True will overwrite any files that exactly match files written by copy_demo_nbs in the target directory. Any files that exist in the directory that don’t match these values will remain untouched.

Args:

dir (str): The directory to copy the demo notebooks to. Defaults to “./demo-notebooks”. overwrite (bool): overwrite (bool): Whether to overwrite files in the directory if it already exists. Defaults to False.

Raises:

FileExistsError: If the directory already exists.

codeflare_sdk.common.utils.generate_cert module

codeflare_sdk.common.utils.generate_cert.export_env(cluster_name, namespace)[source]
codeflare_sdk.common.utils.generate_cert.generate_ca_cert(days: int = 30)[source]
codeflare_sdk.common.utils.generate_cert.generate_tls_cert(cluster_name, namespace, days=30)[source]
codeflare_sdk.common.utils.generate_cert.get_secret_name(cluster_name, namespace, api_instance)[source]

Module contents