UNPKG

kubernetes-models

Version:
92 lines (91 loc) 2.71 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.addSchema = void 0; const validate_1 = require("@kubernetes-models/validate"); const IoK8sApiCoreV1Capabilities_1 = require("./IoK8sApiCoreV1Capabilities.js"); const IoK8sApiCoreV1SELinuxOptions_1 = require("./IoK8sApiCoreV1SELinuxOptions.js"); const IoK8sApiCoreV1SeccompProfile_1 = require("./IoK8sApiCoreV1SeccompProfile.js"); const IoK8sApiCoreV1WindowsSecurityContextOptions_1 = require("./IoK8sApiCoreV1WindowsSecurityContextOptions.js"); const schema = { "properties": { "allowPrivilegeEscalation": { "type": "boolean", "nullable": true }, "capabilities": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.Capabilities#" }, { "type": "null" } ] }, "privileged": { "type": "boolean", "nullable": true }, "procMount": { "type": "string", "nullable": true }, "readOnlyRootFilesystem": { "type": "boolean", "nullable": true }, "runAsGroup": { "format": "int64", "type": "integer", "nullable": true }, "runAsNonRoot": { "type": "boolean", "nullable": true }, "runAsUser": { "format": "int64", "type": "integer", "nullable": true }, "seLinuxOptions": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.SELinuxOptions#" }, { "type": "null" } ] }, "seccompProfile": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.SeccompProfile#" }, { "type": "null" } ] }, "windowsOptions": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.WindowsSecurityContextOptions#" }, { "type": "null" } ] } }, "type": "object" }; function addSchema() { (0, IoK8sApiCoreV1Capabilities_1.addSchema)(); (0, IoK8sApiCoreV1SELinuxOptions_1.addSchema)(); (0, IoK8sApiCoreV1SeccompProfile_1.addSchema)(); (0, IoK8sApiCoreV1WindowsSecurityContextOptions_1.addSchema)(); (0, validate_1.register)("io.k8s.api.core.v1.SecurityContext", schema); } exports.addSchema = addSchema;