mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-25 02:40:04 +00:00
shellcheck: kata-deploy: Fix warnings
He were fixing the few warnings we found in the files present in the functional tests for kata-deploy. Signed-off-by: Fabiano Fidêncio <fabiano@fidencio.org>
This commit is contained in:
@@ -24,9 +24,9 @@ function cleanup_runtimeclasses() {
|
||||
# Cleanup any runtime class that was left behind in the cluster, in
|
||||
# case of a test failure, apart from the default one that comes from
|
||||
# AKS
|
||||
for rc in `kubectl get runtimeclass -o name | grep -v "kata-mshv-vm-isolation" | sed 's|runtimeclass.node.k8s.io/||'`
|
||||
for rc in $(kubectl get runtimeclass -o name | grep -v "kata-mshv-vm-isolation" | sed 's|runtimeclass.node.k8s.io/||')
|
||||
do
|
||||
kubectl delete runtimeclass $rc;
|
||||
kubectl delete runtimeclass "${rc}";
|
||||
done
|
||||
}
|
||||
|
||||
@@ -36,8 +36,8 @@ function cleanup() {
|
||||
|
||||
cleanup_runtimeclasses || true
|
||||
|
||||
if [ "${platform}" = "aks" ]; then
|
||||
delete_cluster ${test_type}
|
||||
if [[ "${platform}" = "aks" ]]; then
|
||||
delete_cluster "${test_type}"
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ function main() {
|
||||
export KATA_HOST_OS="${KATA_HOST_OS:-}"
|
||||
|
||||
platform="aks"
|
||||
if [ "${KATA_HYPERVISOR}" = "qemu-tdx" ]; then
|
||||
if [[ "${KATA_HYPERVISOR}" = "qemu-tdx" ]]; then
|
||||
platform="tdx"
|
||||
fi
|
||||
export platform
|
||||
|
Reference in New Issue
Block a user