Security context and volumes kyverno policy fail
Job #37936318 failed for 957a083a:
fix the following errors:
2024-09-04T01:26:28Z DEBUG engine.validate variables/evaluate.go:90 a condition failed in 'all' block {"policy.name": "require-non-root-user", "policy.namespace": "", "policy.apply": "All", "new.kind": "Deployment", "new.namespace": "cert-manager", "new.name": "cert-manager-webhook", "rule.name": "autogen-non-root-user", "condition": {"key":"{{ request.object.spec.template.spec.securityContext.runAsNonRoot || '0' == '1' }}","operator":"NotEquals","value":true}, "message": ""}
2024-09-04T01:26:28Z DEBUG engine.validate validation/validate_resource.go:369 validation rule failed {"policy.name": "require-non-root-group", "policy.namespace": "", "policy.apply": "All", "new.kind": "Deployment", "new.namespace": "cert-manager", "new.name": "trust-manager", "rule.name": "autogen-run-as-group", "anyPattern[%d]": 0, "path": "/securityContext/runAsGroup/"}
2024-09-04T01:26:28Z DEBUG engine.validate validation/validate_resource.go:369 validation rule failed {"policy.name": "restrict-volume-types", "policy.namespace": "", "policy.apply": "All", "new.kind": "Deployment", "new.namespace": "cert-manager", "new.name": "trust-manager", "rule.name": "autogen-restrict-volume-types", "anyPattern[%d]": 6, "path": "/"}
more information can be found here: pipeline result