UNPKG

kubernetes-models

Version:
26 lines (25 loc) 736 B
import { register } from "@kubernetes-models/validate"; import { addSchema as IoK8sApiCoreV1PersistentVolumeSpec } from "./IoK8sApiCoreV1PersistentVolumeSpec.mjs"; const schema = { "properties": { "inlineVolumeSpec": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.PersistentVolumeSpec#" }, { "type": "null" } ] }, "persistentVolumeName": { "type": "string", "nullable": true } }, "type": "object" }; export function addSchema() { IoK8sApiCoreV1PersistentVolumeSpec(); register("io.k8s.api.storage.v1.VolumeAttachmentSource", schema); }