kubernetes-models
Version:
90 lines (89 loc) • 2.66 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.addSchema = void 0;
const validate_1 = require("@kubernetes-models/validate");
const IoK8sApiCoreV1SELinuxOptions_1 = require("./IoK8sApiCoreV1SELinuxOptions.js");
const IoK8sApiCoreV1SeccompProfile_1 = require("./IoK8sApiCoreV1SeccompProfile.js");
const IoK8sApiCoreV1Sysctl_1 = require("./IoK8sApiCoreV1Sysctl.js");
const IoK8sApiCoreV1WindowsSecurityContextOptions_1 = require("./IoK8sApiCoreV1WindowsSecurityContextOptions.js");
const schema = {
"properties": {
"fsGroup": {
"format": "int64",
"type": "integer",
"nullable": true
},
"fsGroupChangePolicy": {
"type": "string",
"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"
}
]
},
"supplementalGroups": {
"items": {
"format": "int64",
"type": "integer"
},
"type": "array",
"nullable": true
},
"sysctls": {
"items": {
"$ref": "io.k8s.api.core.v1.Sysctl#"
},
"type": "array",
"nullable": true
},
"windowsOptions": {
"oneOf": [
{
"$ref": "io.k8s.api.core.v1.WindowsSecurityContextOptions#"
},
{
"type": "null"
}
]
}
},
"type": "object"
};
function addSchema() {
(0, IoK8sApiCoreV1SELinuxOptions_1.addSchema)();
(0, IoK8sApiCoreV1SeccompProfile_1.addSchema)();
(0, IoK8sApiCoreV1Sysctl_1.addSchema)();
(0, IoK8sApiCoreV1WindowsSecurityContextOptions_1.addSchema)();
(0, validate_1.register)("io.k8s.api.core.v1.PodSecurityContext", schema);
}
exports.addSchema = addSchema;