def _get_auto_fill_namespace_for_create_job()

in src/hyperpod_cli/commands/job.py [0:0]


def _get_auto_fill_namespace_for_create_job():
    namespace = None
    resource_attributes_template = V1ResourceAttributes(
        verb="create",
        group=PYTORCH_CUSTOM_OBJECT_GROUP,
        resource=PYTORCH_CUSTOM_OBJECT_PLURAL,
    )
    namespace = DiscoverNamespaces().discover_accessible_namespace(resource_attributes_template)
    return namespace