UNPKG

kubernetes-models

Version:
55 lines (54 loc) 1.31 kB
import { register } from "@kubernetes-models/validate"; import { addSchema as IoK8sApiCoreV1SecretReference } from "./IoK8sApiCoreV1SecretReference.mjs"; const schema = { "properties": { "fsType": { "type": "string", "nullable": true }, "image": { "type": "string" }, "keyring": { "type": "string", "nullable": true }, "monitors": { "items": { "type": "string" }, "type": "array" }, "pool": { "type": "string", "nullable": true }, "readOnly": { "type": "boolean", "nullable": true }, "secretRef": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.SecretReference#" }, { "type": "null" } ] }, "user": { "type": "string", "nullable": true } }, "required": [ "monitors", "image" ], "type": "object" }; export function addSchema() { IoK8sApiCoreV1SecretReference(); register("io.k8s.api.core.v1.RBDPersistentVolumeSource", schema); }