UNPKG

kubernetes-models

Version:
43 lines (42 loc) 1.07 kB
import { register } from "@kubernetes-models/validate"; import { addSchema as IoK8sApiCoreV1SecretReference } from "./IoK8sApiCoreV1SecretReference.mjs"; const schema = { "properties": { "driver": { "type": "string" }, "fsType": { "type": "string", "nullable": true }, "options": { "additionalProperties": { "type": "string" }, "type": "object", "nullable": true }, "readOnly": { "type": "boolean", "nullable": true }, "secretRef": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.SecretReference#" }, { "type": "null" } ] } }, "required": [ "driver" ], "type": "object" }; export function addSchema() { IoK8sApiCoreV1SecretReference(); register("io.k8s.api.core.v1.FlexPersistentVolumeSource", schema); }