INNER CODE UNIT · Python

create

kr8s-org/kr8s · kr8s/__init__.py:249

def create(resources: list[type[APIObject]], api=None):
    """Creates resources in the Kubernetes cluster."""
    if api is None:
        api = _as_sync_func(_api)(_asyncio=False)
    api.create(cast(list[asyncio.objects.APIObject], resources))


version = _as_sync_func(partial(_k8s_version, _asyncio=False))
update_wrapper(version, _k8s_version)
watch = _as_sync_generator(partial(_watch, _asyncio=False))
update_wrapper(watch, _watch)
api_resources = _as_sync_func(partial(_api_resources, _asyncio=False))
update_wrapper(api_resources, _api_resources)

__all__ = [
    "__version__",
    "__version_tuple__",
    "ALL",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…