INNER CODE UNIT · Python
get
kr8s-org/kr8s · kr8s/__init__.py:78
def get( # type: ignore[override]
self,
kind: str | type,
*names: str,
namespace: str | None = None,
label_selector: str | dict | None = None,
field_selector: str | dict | None = None,
as_object: type[APIObject] | None = None,
allow_unknown_type: bool = True,
raw: bool = False,
**kwargs,
) -> Generator[objects.APIObject | dict]:
yield from cast(
Generator[Union[objects.APIObject, dict]],
_as_sync_generator(self.async_get)(
kind,
*names,
namespace=namespace,