NamespacedResource#
- pydantic model phalanx.models.kubernetes.NamespacedResource#
Properties common to all namespaced Kubernetes resources.
- Parameters:
data (
Any)
Show JSON schema
{ "title": "NamespacedResource", "description": "Properties common to all namespaced Kubernetes resources.", "type": "object", "properties": { "kind": { "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 }, "namespace": { "title": "Namespace", "type": "string" } }, "$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", "namespace" ] }
- Config:
validate_by_name: bool = True
- Fields:
- field finalizers: list[str] = []#
Finalizers on this resource.
- field kind: str [Required]#
The kind of Kubernetes resource.
- field name: str [Required]#
The name of the resource.
- field status: Status | None = None#
Information about the status of this resource.
- get_kind_name()#
Get the kind-qualified name of this resource.
- Returns:
The kind-qualified name of this resource.
- Return type: