UNPKG

kubernetes-models

Version:
47 lines (46 loc) 1.15 kB
import { register } from "@kubernetes-models/validate"; import { addSchema as IoK8sApiCoreV1SecretReference } from "./IoK8sApiCoreV1SecretReference.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.SecretReference#" }, { "type": "null" } ] }, "user": { "type": "string", "nullable": true } }, "required": [ "monitors" ], "type": "object" }; export function addSchema() { IoK8sApiCoreV1SecretReference(); register("io.k8s.api.core.v1.CephFSPersistentVolumeSource", schema); }