UNPKG

kubernetes-models

Version:
86 lines (85 loc) 2.49 kB
import { register } from "@kubernetes-models/validate"; import { addSchema as IoK8sApiCoreV1SELinuxOptions } from "./IoK8sApiCoreV1SELinuxOptions.mjs"; import { addSchema as IoK8sApiCoreV1SeccompProfile } from "./IoK8sApiCoreV1SeccompProfile.mjs"; import { addSchema as IoK8sApiCoreV1Sysctl } from "./IoK8sApiCoreV1Sysctl.mjs"; import { addSchema as IoK8sApiCoreV1WindowsSecurityContextOptions } from "./IoK8sApiCoreV1WindowsSecurityContextOptions.mjs"; 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" }; export function addSchema() { IoK8sApiCoreV1SELinuxOptions(); IoK8sApiCoreV1SeccompProfile(); IoK8sApiCoreV1Sysctl(); IoK8sApiCoreV1WindowsSecurityContextOptions(); register("io.k8s.api.core.v1.PodSecurityContext", schema); }