KubernetesMetadata

pydantic model gafaelfawr.models.kubernetes.KubernetesMetadata

The metadata section of a Kubernetes resource.

Parameters:

data (Any)

Show JSON schema
{
   "title": "KubernetesMetadata",
   "description": "The metadata section of a Kubernetes resource.",
   "type": "object",
   "properties": {
      "name": {
         "title": "Name",
         "type": "string"
      },
      "namespace": {
         "title": "Namespace",
         "type": "string"
      },
      "annotations": {
         "anyOf": [
            {
               "additionalProperties": {
                  "type": "string"
               },
               "type": "object"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Annotations"
      },
      "labels": {
         "anyOf": [
            {
               "additionalProperties": {
                  "type": "string"
               },
               "type": "object"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Labels"
      },
      "uid": {
         "title": "Uid",
         "type": "string"
      },
      "generation": {
         "title": "Generation",
         "type": "integer"
      }
   },
   "required": [
      "name",
      "namespace",
      "uid",
      "generation"
   ]
}

Fields:
Validators:
field annotations: dict[str, str] | None = None

The annotations of the object.

Validated by:
  • _filter_kopf_annotations

field generation: int [Required]

The generation of the object.

field labels: dict[str, str] | None = None

The labels of the object.

field name: str [Required]

The name of the object.

field namespace: str [Required]

The namespace in which the object is located.

field uid: str [Required]

The UID of the object.