KubernetesModel#

class controller.models.domain.kubernetes.KubernetesModel(*args, **kwargs)#

Bases: Protocol

Protocol for Kubernetes object models.

kubernetes-asyncio doesn’t currently expose type information, so this tells mypy that all the object models we deal with will have a metadata attribute.

Methods Summary

to_dict(*[, serialize])

param serialize:

Methods Documentation

to_dict(*, serialize=False)#
Parameters:

serialize (bool, default: False) –

Return type:

dict[str, Any]