UNPKG

kubernetes-models

Version:
47 lines (46 loc) 1.16 kB
import { register } from "@kubernetes-models/validate"; import { addSchema as IoK8sApiCoreV1LocalObjectReference } from "./IoK8sApiCoreV1LocalObjectReference.mjs"; const schema = { "properties": { "monitors": { "items": { "type": "string" }, "type": "array" }, "path": { "type": "string", "nullable": true }, "readOnly": { "type": "boolean", "nullable": true }, "secretFile": { "type": "string", "nullable": true }, "secretRef": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.LocalObjectReference#" }, { "type": "null" } ] }, "user": { "type": "string", "nullable": true } }, "required": [ "monitors" ], "type": "object" }; export function addSchema() { IoK8sApiCoreV1LocalObjectReference(); register("io.k8s.api.core.v1.CephFSVolumeSource", schema); }