tests: k8s-policy-rc: add unexpected UID test

Change pod runAsUser value of a Replication Controller after generating
the RC's policy, and verify that the RC pods get rejected due to this
change.

Signed-off-by: Dan Mihai <dmihai@microsoft.com>
This commit is contained in:
Dan Mihai
2024-09-13 03:06:03 +00:00
parent 6773f14667
commit 5777869cf4
2 changed files with 26 additions and 14 deletions

View File

@@ -17,6 +17,8 @@ spec:
labels:
app: policy-nginx-rc
spec:
securityContext:
runAsUser: 123
terminationGracePeriodSeconds: 0
runtimeClassName: kata
containers: