UNPKG

kubernetes-models

Version:
55 lines (54 loc) 1.72 kB
import { register } from "@kubernetes-models/validate"; import { addSchema as IoK8sApimachineryPkgApiResourceQuantity } from "@kubernetes-models/apimachinery/_schemas/IoK8sApimachineryPkgApiResourceQuantity"; import { addSchema as IoK8sApiCoreV1PersistentVolumeClaimCondition } from "./IoK8sApiCoreV1PersistentVolumeClaimCondition.mjs"; const schema = { "properties": { "accessModes": { "items": { "type": "string" }, "type": "array", "nullable": true }, "allocatedResources": { "additionalProperties": { "$ref": "io.k8s.apimachinery.pkg.api.resource.Quantity#" }, "type": "object", "nullable": true }, "capacity": { "additionalProperties": { "$ref": "io.k8s.apimachinery.pkg.api.resource.Quantity#" }, "type": "object", "nullable": true }, "conditions": { "items": { "$ref": "io.k8s.api.core.v1.PersistentVolumeClaimCondition#" }, "type": "array", "nullable": true }, "phase": { "enum": [ "Bound", "Lost", "Pending" ], "type": "string", "nullable": true }, "resizeStatus": { "type": "string", "nullable": true } }, "type": "object" }; export function addSchema() { IoK8sApimachineryPkgApiResourceQuantity(); IoK8sApiCoreV1PersistentVolumeClaimCondition(); register("io.k8s.api.core.v1.PersistentVolumeClaimStatus", schema); }