PersistentVolume#

pydantic model phalanx.models.kubernetes.PersistentVolume#

A PersistentVolume kuberentes resource.

Parameters:

data (Any)

Show JSON schema
{
   "title": "PersistentVolume",
   "description": "A PersistentVolume kuberentes resource.",
   "type": "object",
   "properties": {
      "kind": {
         "const": "PersistentVolume",
         "title": "Kind",
         "type": "string"
      },
      "name": {
         "title": "Name",
         "type": "string"
      },
      "finalizers": {
         "default": [],
         "items": {
            "type": "string"
         },
         "title": "Finalizers",
         "type": "array"
      },
      "status": {
         "anyOf": [
            {
               "$ref": "#/$defs/Status"
            },
            {
               "type": "null"
            }
         ],
         "default": null
      }
   },
   "$defs": {
      "Condition": {
         "description": "A Kubernetes condition.",
         "properties": {
            "type": {
               "title": "Type",
               "type": "string"
            },
            "status": {
               "$ref": "#/$defs/ConditionStatus"
            }
         },
         "required": [
            "type",
            "status"
         ],
         "title": "Condition",
         "type": "object"
      },
      "ConditionStatus": {
         "description": "Valid values for the spec.type field of a Service.",
         "enum": [
            "True",
            "False",
            "Unknown"
         ],
         "title": "ConditionStatus",
         "type": "string"
      },
      "Status": {
         "description": "The status field of a Kubernetes resource.",
         "properties": {
            "conditions": {
               "default": [],
               "items": {
                  "$ref": "#/$defs/Condition"
               },
               "title": "Conditions",
               "type": "array"
            }
         },
         "title": "Status",
         "type": "object"
      }
   },
   "required": [
      "kind",
      "name"
   ]
}

Config:
  • validate_by_name: bool = True

Fields:
field finalizers: list[str] = []#

Finalizers on this resource.

field kind: Literal['PersistentVolume'] [Required]#

The kind field will always be PersistentVolume.

field name: str [Required]#

The name of the resource.

field status: Status | None = None#

Information about the status of this resource.

is_ready()#

Return whether or not this resource is ready.

Return type:

bool