KubernetesResource#

class gafaelfawr.models.kubernetes.KubernetesResource(**data)#

Bases: BaseModel

A Kubernetes resource being processed by an operator.

Intended for use as a parent class for all operator resources. This holds generic data that is used by parts of the Kubernetes plumbing. It should be extended with resource-specific data.

Parameters:

data (Any)

Attributes Summary

key

A unique key for this custom object.

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

Attributes Documentation

key#

A unique key for this custom object.

model_config: ClassVar[ConfigDict] = {'alias_generator': <function to_camel>, 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].