ServerSideFieldValidation
feature disabled will discard valid values specified in this param and not perform any server side field validation. Valid values are: - Ignore: ignores unknown/duplicate fields. - Warn: responds with a warning for each unknown/duplicate field, but successfully serves the request. - Strict: fails the request on unknown/duplicate fields.{}
curl --location --request PATCH '/apis/policy/v1beta1/podsecuritypolicies/' \
--header 'Content-Type: application/json' \
--data-raw '{}'
{
"apiVersion": "string",
"kind": "string",
"metadata": {
"annotations": {
"property1": "string",
"property2": "string"
},
"clusterName": "string",
"creationTimestamp": "2019-08-24T14:15:22Z",
"deletionGracePeriodSeconds": 0,
"deletionTimestamp": "2019-08-24T14:15:22Z",
"finalizers": [
"string"
],
"generateName": "string",
"generation": 0,
"labels": {
"property1": "string",
"property2": "string"
},
"managedFields": [
{
"apiVersion": "string",
"fieldsType": "string",
"fieldsV1": {},
"manager": "string",
"operation": "string",
"subresource": "string",
"time": "2019-08-24T14:15:22Z"
}
],
"name": "string",
"namespace": "string",
"ownerReferences": [
{
"apiVersion": "string",
"blockOwnerDeletion": true,
"controller": true,
"kind": "string",
"name": "string",
"uid": "string"
}
],
"resourceVersion": "string",
"selfLink": "string",
"uid": "string"
},
"spec": {
"allowPrivilegeEscalation": true,
"allowedCSIDrivers": [
{
"name": "string"
}
],
"allowedCapabilities": [
"string"
],
"allowedFlexVolumes": [
{
"driver": "string"
}
],
"allowedHostPaths": [
{
"pathPrefix": "string",
"readOnly": true
}
],
"allowedProcMountTypes": [
"string"
],
"allowedUnsafeSysctls": [
"string"
],
"defaultAddCapabilities": [
"string"
],
"defaultAllowPrivilegeEscalation": true,
"forbiddenSysctls": [
"string"
],
"fsGroup": {
"ranges": [
{
"max": 0,
"min": 0
}
],
"rule": "string"
},
"hostIPC": true,
"hostNetwork": true,
"hostPID": true,
"hostPorts": [
{
"max": 0,
"min": 0
}
],
"privileged": true,
"readOnlyRootFilesystem": true,
"requiredDropCapabilities": [
"string"
],
"runAsGroup": {
"ranges": [
{
"max": 0,
"min": 0
}
],
"rule": "string"
},
"runAsUser": {
"ranges": [
{
"max": 0,
"min": 0
}
],
"rule": "string"
},
"runtimeClass": {
"allowedRuntimeClassNames": [
"string"
],
"defaultRuntimeClassName": "string"
},
"seLinux": {
"rule": "string",
"seLinuxOptions": {
"level": "string",
"role": "string",
"type": "string",
"user": "string"
}
},
"supplementalGroups": {
"ranges": [
{
"max": 0,
"min": 0
}
],
"rule": "string"
},
"volumes": [
"string"
]
}
}