Skip to content

Commit

Permalink
Fix the RUNTIME overwrite in the install spo script
Browse files Browse the repository at this point in the history
Change-Id: I6dea16a829cbe2ba9b0fcecc325966b91b22b1c4
Signed-off-by: Cosmin Cojocar <[email protected]>
  • Loading branch information
ccojocar committed Jan 14, 2025
1 parent a5ad3c4 commit c8ab1b1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions hack/ci/install-spo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,16 @@ print_spo_logs() {
}

ensure_runtime_classes() {
RUNTIMES=(runc crun)
for RUNTIME in "${RUNTIMES[@]}"; do
echo "Installing RuntimeClass $RUNTIME..."
local runtimes=(runc crun)
for runtime in "${runtimes[@]}"; do
echo "Installing RuntimeClass $runtime..."
cat <<EOF | k apply -f -
---
apiVersion: node.k8s.io/v1
kind: RuntimeClass
metadata:
name: $RUNTIME
handler: $RUNTIME
name: $runtime
handler: $runtime
EOF
done
}
Expand Down

0 comments on commit c8ab1b1

Please sign in to comment.