tests: k8s-policy-deployment: add bad UID test

Change pod runAsUser value of a Deployment after generating the
Deployment's policy, and verify that the Deployment fails due to
this change.

Signed-off-by: Dan Mihai <dmihai@microsoft.com>
This commit is contained in:
Dan Mihai
2024-09-13 01:31:00 +00:00
parent 16f5ebf5f9
commit 124f01beb3
2 changed files with 42 additions and 8 deletions

View File

@@ -25,6 +25,8 @@ spec:
spec:
terminationGracePeriodSeconds: 0
runtimeClassName: kata
securityContext:
runAsUser: 1000
containers:
- name: master
image: quay.io/opstree/redis