mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-14 22:24:14 +00:00
tests: k8s: common clean-up on teardown
teardown() gets executed after each test case, so there is no need to clean-up before teardown. Fixes: #9072 Signed-off-by: Dan Mihai <dmihai@microsoft.com>
This commit is contained in:
parent
9c164698d3
commit
b3c3f992ab
@ -39,8 +39,6 @@ setup() {
|
||||
add_exec_to_policy_settings "${policy_settings_dir}" "${exec_command}"
|
||||
|
||||
auto_generate_policy "${policy_settings_dir}" "${pod_config}"
|
||||
delete_tmp_policy_settings_dir "${policy_settings_dir}"
|
||||
policy_settings_dir=""
|
||||
|
||||
# Create pod
|
||||
kubectl create -f "${pod_config}"
|
||||
@ -78,8 +76,6 @@ setup() {
|
||||
add_exec_to_policy_settings "${policy_settings_dir}" "${exec_command}"
|
||||
|
||||
auto_generate_policy "${policy_settings_dir}" "${pod_config}"
|
||||
delete_tmp_policy_settings_dir "${policy_settings_dir}"
|
||||
policy_settings_dir=""
|
||||
|
||||
# Create pod
|
||||
kubectl create -f "${pod_config}"
|
||||
|
Loading…
Reference in New Issue
Block a user