UNPKG

kubernetes-models

Version:
87 lines (86 loc) 2.21 kB
import { register } from "@kubernetes-models/validate"; import { addSchema as IoK8sApiCoreV1SecretReference } from "./IoK8sApiCoreV1SecretReference.mjs"; const schema = { "properties": { "controllerExpandSecretRef": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.SecretReference#" }, { "type": "null" } ] }, "controllerPublishSecretRef": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.SecretReference#" }, { "type": "null" } ] }, "driver": { "type": "string" }, "fsType": { "type": "string", "nullable": true }, "nodeExpandSecretRef": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.SecretReference#" }, { "type": "null" } ] }, "nodePublishSecretRef": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.SecretReference#" }, { "type": "null" } ] }, "nodeStageSecretRef": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.SecretReference#" }, { "type": "null" } ] }, "readOnly": { "type": "boolean", "nullable": true }, "volumeAttributes": { "additionalProperties": { "type": "string" }, "type": "object", "nullable": true }, "volumeHandle": { "type": "string" } }, "required": [ "driver", "volumeHandle" ], "type": "object" }; export function addSchema() { IoK8sApiCoreV1SecretReference(); register("io.k8s.api.core.v1.CSIPersistentVolumeSource", schema); }