{
    "definitions": {
        "https:__kubernetesjsonschema_dev_master__defs_json_defs_io_k8s_api_core_v1_SELinuxOptions": {
            "description": "SELinuxOptions are the labels to be applied to the container",
            "properties": {
                "level": {
                    "description": "Level is SELinux level label that applies to the container.",
                    "type": "string"
                },
                "role": {
                    "description": "Role is a SELinux role label that applies to the container.",
                    "type": "string"
                },
                "type": {
                    "description": "Type is a SELinux type label that applies to the container.",
                    "type": "string"
                },
                "user": {
                    "description": "User is a SELinux user label that applies to the container.",
                    "type": "string"
                }
            },
            "type": "object"
        },
        "https:__kubernetesjsonschema_dev_master__defs_json_defs_io_k8s_api_policy_v1beta1_AllowedCSIDriver": {
            "description": "AllowedCSIDriver represents a single inline CSI Driver that is allowed to be used.",
            "properties": {
                "name": {
                    "description": "Name is the registered name of the CSI driver",
                    "type": "string"
                }
            },
            "required": [
                "name"
            ],
            "type": "object"
        },
        "https:__kubernetesjsonschema_dev_master__defs_json_defs_io_k8s_api_policy_v1beta1_AllowedFlexVolume": {
            "description": "AllowedFlexVolume represents a single Flexvolume that is allowed to be used.",
            "properties": {
                "driver": {
                    "description": "driver is the name of the Flexvolume driver.",
                    "type": "string"
                }
            },
            "required": [
                "driver"
            ],
            "type": "object"
        },
        "https:__kubernetesjsonschema_dev_master__defs_json_defs_io_k8s_api_policy_v1beta1_AllowedHostPath": {
            "description": "AllowedHostPath defines the host volume conditions that will be enabled by a policy for pods to use. It requires the path prefix to be defined.",
            "properties": {
                "pathPrefix": {
                    "description": "pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path.\n\nExamples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo`",
                    "type": "string"
                },
                "readOnly": {
                    "description": "when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.",
                    "type": "boolean"
                }
            },
            "type": "object"
        },
        "https:__kubernetesjsonschema_dev_master__defs_json_defs_io_k8s_api_policy_v1beta1_FSGroupStrategyOptions": {
            "description": "FSGroupStrategyOptions defines the strategy type and options used to create the strategy.",
            "properties": {
                "ranges": {
                    "description": "ranges are the allowed ranges of fs groups.  If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs.",
                    "items": {
                        "$ref": "#/definitions/https:__kubernetesjsonschema_dev_master__defs_json_defs_io_k8s_api_policy_v1beta1_IDRange"
                    },
                    "type": "array"
                },
                "rule": {
                    "description": "rule is the strategy that will dictate what FSGroup is used in the SecurityContext.",
                    "type": "string"
                }
            },
            "type": "object"
        },
        "https:__kubernetesjsonschema_dev_master__defs_json_defs_io_k8s_api_policy_v1beta1_HostPortRange": {
            "description": "HostPortRange defines a range of host ports that will be enabled by a policy for pods to use.  It requires both the start and end to be defined.",
            "properties": {
                "max": {
                    "_format": "int32",
                    "description": "max is the end of the range, inclusive.",
                    "type": "integer"
                },
                "min": {
                    "_format": "int32",
                    "description": "min is the start of the range, inclusive.",
                    "type": "integer"
                }
            },
            "required": [
                "min",
                "max"
            ],
            "type": "object"
        },
        "https:__kubernetesjsonschema_dev_master__defs_json_defs_io_k8s_api_policy_v1beta1_IDRange": {
            "description": "IDRange provides a min/max of an allowed range of IDs.",
            "properties": {
                "max": {
                    "_format": "int64",
                    "description": "max is the end of the range, inclusive.",
                    "type": "integer"
                },
                "min": {
                    "_format": "int64",
                    "description": "min is the start of the range, inclusive.",
                    "type": "integer"
                }
            },
            "required": [
                "min",
                "max"
            ],
            "type": "object"
        },
        "https:__kubernetesjsonschema_dev_master__defs_json_defs_io_k8s_api_policy_v1beta1_RunAsGroupStrategyOptions": {
            "description": "RunAsGroupStrategyOptions defines the strategy type and any options used to create the strategy.",
            "properties": {
                "ranges": {
                    "description": "ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs.",
                    "items": {
                        "$ref": "#/definitions/https:__kubernetesjsonschema_dev_master__defs_json_defs_io_k8s_api_policy_v1beta1_IDRange"
                    },
                    "type": "array"
                },
                "rule": {
                    "description": "rule is the strategy that will dictate the allowable RunAsGroup values that may be set.",
                    "type": "string"
                }
            },
            "required": [
                "rule"
            ],
            "type": "object"
        },
        "https:__kubernetesjsonschema_dev_master__defs_json_defs_io_k8s_api_policy_v1beta1_RunAsUserStrategyOptions": {
            "description": "RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy.",
            "properties": {
                "ranges": {
                    "description": "ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs.",
                    "items": {
                        "$ref": "#/definitions/https:__kubernetesjsonschema_dev_master__defs_json_defs_io_k8s_api_policy_v1beta1_IDRange"
                    },
                    "type": "array"
                },
                "rule": {
                    "description": "rule is the strategy that will dictate the allowable RunAsUser values that may be set.",
                    "type": "string"
                }
            },
            "required": [
                "rule"
            ],
            "type": "object"
        },
        "https:__kubernetesjsonschema_dev_master__defs_json_defs_io_k8s_api_policy_v1beta1_RuntimeClassStrategyOptions": {
            "description": "RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses for a pod.",
            "properties": {
                "allowedRuntimeClassNames": {
                    "description": "allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of \"*\" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset.",
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "defaultRuntimeClassName": {
                    "description": "defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod.",
                    "type": "string"
                }
            },
            "required": [
                "allowedRuntimeClassNames"
            ],
            "type": "object"
        },
        "https:__kubernetesjsonschema_dev_master__defs_json_defs_io_k8s_api_policy_v1beta1_SELinuxStrategyOptions": {
            "description": "SELinuxStrategyOptions defines the strategy type and any options used to create the strategy.",
            "properties": {
                "rule": {
                    "description": "rule is the strategy that will dictate the allowable labels that may be set.",
                    "type": "string"
                },
                "seLinuxOptions": {
                    "$ref": "#/definitions/https:__kubernetesjsonschema_dev_master__defs_json_defs_io_k8s_api_core_v1_SELinuxOptions",
                    "description": "seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/"
                }
            },
            "required": [
                "rule"
            ],
            "type": "object"
        },
        "https:__kubernetesjsonschema_dev_master__defs_json_defs_io_k8s_api_policy_v1beta1_SupplementalGroupsStrategyOptions": {
            "description": "SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy.",
            "properties": {
                "ranges": {
                    "description": "ranges are the allowed ranges of supplemental groups.  If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs.",
                    "items": {
                        "$ref": "#/definitions/https:__kubernetesjsonschema_dev_master__defs_json_defs_io_k8s_api_policy_v1beta1_IDRange"
                    },
                    "type": "array"
                },
                "rule": {
                    "description": "rule is the strategy that will dictate what supplemental groups is used in the SecurityContext.",
                    "type": "string"
                }
            },
            "type": "object"
        }
    },
    "description": "PodSecurityPolicySpec defines the policy enforced.",
    "properties": {
        "allowPrivilegeEscalation": {
            "description": "allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true.",
            "type": [
                "boolean",
                "null"
            ]
        },
        "allowedCSIDrivers": {
            "description": "AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is an alpha field, and is only honored if the API server enables the CSIInlineVolume feature gate.",
            "items": {
                "$ref": "#/definitions/https:__kubernetesjsonschema_dev_master__defs_json_defs_io_k8s_api_policy_v1beta1_AllowedCSIDriver"
            },
            "type": [
                "array",
                "null"
            ]
        },
        "allowedCapabilities": {
            "description": "allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities.",
            "items": {
                "type": [
                    "string",
                    "null"
                ]
            },
            "type": [
                "array",
                "null"
            ]
        },
        "allowedFlexVolumes": {
            "description": "allowedFlexVolumes is a whitelist of allowed Flexvolumes.  Empty or nil indicates that all Flexvolumes may be used.  This parameter is effective only when the usage of the Flexvolumes is allowed in the \"volumes\" field.",
            "items": {
                "$ref": "#/definitions/https:__kubernetesjsonschema_dev_master__defs_json_defs_io_k8s_api_policy_v1beta1_AllowedFlexVolume"
            },
            "type": [
                "array",
                "null"
            ]
        },
        "allowedHostPaths": {
            "description": "allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used.",
            "items": {
                "$ref": "#/definitions/https:__kubernetesjsonschema_dev_master__defs_json_defs_io_k8s_api_policy_v1beta1_AllowedHostPath"
            },
            "type": [
                "array",
                "null"
            ]
        },
        "allowedProcMountTypes": {
            "description": "AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled.",
            "items": {
                "type": [
                    "string",
                    "null"
                ]
            },
            "type": [
                "array",
                "null"
            ]
        },
        "allowedUnsafeSysctls": {
            "description": "allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection.\n\nExamples: e.g. \"foo/*\" allows \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" allows \"foo.bar\", \"foo.baz\", etc.",
            "items": {
                "type": [
                    "string",
                    "null"
                ]
            },
            "type": [
                "array",
                "null"
            ]
        },
        "defaultAddCapabilities": {
            "description": "defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability.  You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list.",
            "items": {
                "type": [
                    "string",
                    "null"
                ]
            },
            "type": [
                "array",
                "null"
            ]
        },
        "defaultAllowPrivilegeEscalation": {
            "description": "defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process.",
            "type": [
                "boolean",
                "null"
            ]
        },
        "forbiddenSysctls": {
            "description": "forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden.\n\nExamples: e.g. \"foo/*\" forbids \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" forbids \"foo.bar\", \"foo.baz\", etc.",
            "items": {
                "type": [
                    "string",
                    "null"
                ]
            },
            "type": [
                "array",
                "null"
            ]
        },
        "fsGroup": {
            "$ref": "#/definitions/https:__kubernetesjsonschema_dev_master__defs_json_defs_io_k8s_api_policy_v1beta1_FSGroupStrategyOptions",
            "description": "fsGroup is the strategy that will dictate what fs group is used by the SecurityContext."
        },
        "hostIPC": {
            "description": "hostIPC determines if the policy allows the use of HostIPC in the pod spec.",
            "type": [
                "boolean",
                "null"
            ]
        },
        "hostNetwork": {
            "description": "hostNetwork determines if the policy allows the use of HostNetwork in the pod spec.",
            "type": [
                "boolean",
                "null"
            ]
        },
        "hostPID": {
            "description": "hostPID determines if the policy allows the use of HostPID in the pod spec.",
            "type": [
                "boolean",
                "null"
            ]
        },
        "hostPorts": {
            "description": "hostPorts determines which host port ranges are allowed to be exposed.",
            "items": {
                "$ref": "#/definitions/https:__kubernetesjsonschema_dev_master__defs_json_defs_io_k8s_api_policy_v1beta1_HostPortRange"
            },
            "type": [
                "array",
                "null"
            ]
        },
        "privileged": {
            "description": "privileged determines if a pod can request to be run as privileged.",
            "type": [
                "boolean",
                "null"
            ]
        },
        "readOnlyRootFilesystem": {
            "description": "readOnlyRootFilesystem when set to true will force containers to run with a read only root file system.  If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to.",
            "type": [
                "boolean",
                "null"
            ]
        },
        "requiredDropCapabilities": {
            "description": "requiredDropCapabilities are the capabilities that will be dropped from the container.  These are required to be dropped and cannot be added.",
            "items": {
                "type": [
                    "string",
                    "null"
                ]
            },
            "type": [
                "array",
                "null"
            ]
        },
        "runAsGroup": {
            "$ref": "#/definitions/https:__kubernetesjsonschema_dev_master__defs_json_defs_io_k8s_api_policy_v1beta1_RunAsGroupStrategyOptions",
            "description": "RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled."
        },
        "runAsUser": {
            "$ref": "#/definitions/https:__kubernetesjsonschema_dev_master__defs_json_defs_io_k8s_api_policy_v1beta1_RunAsUserStrategyOptions",
            "description": "runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set."
        },
        "runtimeClass": {
            "$ref": "#/definitions/https:__kubernetesjsonschema_dev_master__defs_json_defs_io_k8s_api_policy_v1beta1_RuntimeClassStrategyOptions",
            "description": "runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. If this field is omitted, the pod's runtimeClassName field is unrestricted. Enforcement of this field depends on the RuntimeClass feature gate being enabled."
        },
        "seLinux": {
            "$ref": "#/definitions/https:__kubernetesjsonschema_dev_master__defs_json_defs_io_k8s_api_policy_v1beta1_SELinuxStrategyOptions",
            "description": "seLinux is the strategy that will dictate the allowable labels that may be set."
        },
        "supplementalGroups": {
            "$ref": "#/definitions/https:__kubernetesjsonschema_dev_master__defs_json_defs_io_k8s_api_policy_v1beta1_SupplementalGroupsStrategyOptions",
            "description": "supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext."
        },
        "volumes": {
            "description": "volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'.",
            "items": {
                "type": [
                    "string",
                    "null"
                ]
            },
            "type": [
                "array",
                "null"
            ]
        }
    },
    "required": [
        "seLinux",
        "runAsUser",
        "supplementalGroups",
        "fsGroup"
    ],
    "type": "object"
}