mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-02 09:24:35 +00:00
Merge pull request #10020 from microsoft/danmihai1/pod-security-context
tests: fix ps command in k8s-security-context
This commit is contained in:
@@ -33,7 +33,7 @@ setup() {
|
|||||||
|
|
||||||
# Check user
|
# Check user
|
||||||
process="tail -f /dev/null"
|
process="tail -f /dev/null"
|
||||||
kubectl exec $pod_name -- sh -c $cmd | grep "$process"
|
kubectl exec $pod_name -- sh -c "$cmd" | grep "$process"
|
||||||
}
|
}
|
||||||
|
|
||||||
teardown() {
|
teardown() {
|
||||||
|
@@ -14,5 +14,5 @@ spec:
|
|||||||
runAsUser: 1000
|
runAsUser: 1000
|
||||||
containers:
|
containers:
|
||||||
- name: sec-text
|
- name: sec-text
|
||||||
image: quay.io/prometheus/busybox:latest
|
image: quay.io/kata-containers/sysbench-kata:latest
|
||||||
command: ["tail", "-f", "/dev/null"]
|
command: ["tail", "-f", "/dev/null"]
|
||||||
|
Reference in New Issue
Block a user