UNPKG

kubernetes-models

Version:
68 lines (67 loc) 1.64 kB
import { register } from "@kubernetes-models/validate"; import { addSchema as IoK8sApiCoreV1SecretReference } from "./IoK8sApiCoreV1SecretReference.mjs"; const schema = { "properties": { "chapAuthDiscovery": { "type": "boolean", "nullable": true }, "chapAuthSession": { "type": "boolean", "nullable": true }, "fsType": { "type": "string", "nullable": true }, "initiatorName": { "type": "string", "nullable": true }, "iqn": { "type": "string" }, "iscsiInterface": { "type": "string", "nullable": true }, "lun": { "format": "int32", "type": "integer" }, "portals": { "items": { "type": "string" }, "type": "array", "nullable": true }, "readOnly": { "type": "boolean", "nullable": true }, "secretRef": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.SecretReference#" }, { "type": "null" } ] }, "targetPortal": { "type": "string" } }, "required": [ "targetPortal", "iqn", "lun" ], "type": "object" }; export function addSchema() { IoK8sApiCoreV1SecretReference(); register("io.k8s.api.core.v1.ISCSIPersistentVolumeSource", schema); }