mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-22 21:49:41 +00:00
tests: k8s-projected-volume.bats allow all policy
Use the "allow all" policy for k8s-projected-volume.bats, instead of relying on the Kata Guest image to use the same policy as its default. Signed-off-by: Dan Mihai <dmihai@microsoft.com>
This commit is contained in:
parent
3f94e2ee1b
commit
543e40b80c
@ -13,6 +13,9 @@ setup() {
|
||||
[ "${KATA_HYPERVISOR}" == "fc" ] && skip "test not working see: ${fc_limitations}"
|
||||
|
||||
get_pod_config_dir
|
||||
|
||||
pod_yaml="${pod_config_dir}/pod-projected-volume.yaml"
|
||||
add_allow_all_policy_to_yaml "${pod_yaml}"
|
||||
}
|
||||
|
||||
@test "Projected volume" {
|
||||
@ -32,7 +35,7 @@ setup() {
|
||||
kubectl create secret generic pass --from-file=$SECOND_TMP_FILE
|
||||
|
||||
# Create pod
|
||||
kubectl create -f "${pod_config_dir}/pod-projected-volume.yaml"
|
||||
kubectl create -f "${pod_yaml}"
|
||||
|
||||
# Check pod creation
|
||||
kubectl wait --for=condition=Ready --timeout=$timeout pod "$pod_name"
|
||||
|
Loading…
Reference in New Issue
Block a user