1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 07:57:07 +00:00
kyverno/test/conformance/chainsaw/webhooks/pod-exec-subresource/policy.yaml
Mariam Fahmy 8805620574
fix: add CONNECT operation in the webhook config for pod/exec subresource (#9855)
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2024-05-06 09:51:46 +00:00

21 lines
405 B
YAML

apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
name: std-shell
spec:
background: false
rules:
- match:
any:
- resources:
kinds:
- Pod/exec
operations:
- CONNECT
mutate:
patchesJson6902: |-
- op: replace
path: "/command/0"
value: "bash"
name: std-shell-replace
validationFailureAction: Audit