kubernetes-models
Version:
50 lines (49 loc) • 1.31 kB
JavaScript
import { register } from "@kubernetes-models/validate";
import { addSchema as IoK8sApiStorageV1TokenRequest } from "./IoK8sApiStorageV1TokenRequest.mjs";
const schema = {
"properties": {
"attachRequired": {
"type": "boolean",
"nullable": true
},
"fsGroupPolicy": {
"type": "string",
"nullable": true
},
"podInfoOnMount": {
"type": "boolean",
"nullable": true
},
"requiresRepublish": {
"type": "boolean",
"nullable": true
},
"seLinuxMount": {
"type": "boolean",
"nullable": true
},
"storageCapacity": {
"type": "boolean",
"nullable": true
},
"tokenRequests": {
"items": {
"$ref": "io.k8s.api.storage.v1.TokenRequest#"
},
"type": "array",
"nullable": true
},
"volumeLifecycleModes": {
"items": {
"type": "string"
},
"type": "array",
"nullable": true
}
},
"type": "object"
};
export function addSchema() {
IoK8sApiStorageV1TokenRequest();
register("io.k8s.api.storage.v1.CSIDriverSpec", schema);
}