nydus: Skipping SNP and SEV from deploying and deleting Snapshotter

Preparing to install nydus permanently on the AMD node,
so disabling deploy and delete command for SNP and SEV.

Signed-off-by: Arvind Kumar <arvinkum@amd.com>
This commit is contained in:
Arvind Kumar
2025-01-29 13:33:32 -06:00
parent f9bbe4e439
commit 47534c1c3e

View File

@@ -444,7 +444,7 @@ function cleanup() {
} }
function deploy_snapshotter() { function deploy_snapshotter() {
if [[ "${KATA_HYPERVISOR}" == "qemu-tdx" ]]; then if [[ "${KATA_HYPERVISOR}" == "qemu-tdx" || "${KATA_HYPERVISOR}" == "qemu-snp" || "${KATA_HYPERVISOR}" == "qemu-sev" ]]; then
echo "[Skip] ${SNAPSHOTTER} is pre-installed in the TEE machine" echo "[Skip] ${SNAPSHOTTER} is pre-installed in the TEE machine"
return return
fi fi
@@ -458,7 +458,7 @@ function deploy_snapshotter() {
} }
function cleanup_snapshotter() { function cleanup_snapshotter() {
if [[ "${KATA_HYPERVISOR}" == "qemu-tdx" ]]; then if [[ "${KATA_HYPERVISOR}" == "qemu-tdx" || "${KATA_HYPERVISOR}" == "qemu-snp" || "${KATA_HYPERVISOR}" == "qemu-sev" ]]; then
echo "[Skip] ${SNAPSHOTTER} is pre-installed in the TEE machine" echo "[Skip] ${SNAPSHOTTER} is pre-installed in the TEE machine"
return return
fi fi