mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 04:04:45 +00:00
Merge pull request #9887 from ldoktor/ci-kata-runtime
ci.ocp: Ensure we smoke-test with the right runtime class
This commit is contained in:
commit
c4fb6fbda2
@ -15,7 +15,9 @@ pod='http-server'
|
|||||||
# Create a pod.
|
# Create a pod.
|
||||||
#
|
#
|
||||||
info "Creating the ${pod} pod"
|
info "Creating the ${pod} pod"
|
||||||
oc apply -f ${script_dir}/smoke/${pod}.yaml || \
|
[ -z "$KATA_RUNTIME" ] && die "Please set the KATA_RUNTIME first"
|
||||||
|
envsubst < "${script_dir}/smoke/${pod}.yaml.in" | \
|
||||||
|
oc apply -f - || \
|
||||||
die "failed to create ${pod} pod"
|
die "failed to create ${pod} pod"
|
||||||
|
|
||||||
# Check it eventually goes to 'running'
|
# Check it eventually goes to 'running'
|
||||||
|
@ -27,4 +27,4 @@ spec:
|
|||||||
runAsUser: 1000
|
runAsUser: 1000
|
||||||
seccompProfile:
|
seccompProfile:
|
||||||
type: RuntimeDefault
|
type: RuntimeDefault
|
||||||
runtimeClassName: kata-qemu
|
runtimeClassName: ${KATA_RUNTIME}
|
@ -5,6 +5,9 @@
|
|||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# The kata shim to be used
|
||||||
|
export KATA_RUNTIME=${KATA_RUNTIME:-kata-qemu}
|
||||||
|
|
||||||
script_dir=$(dirname $0)
|
script_dir=$(dirname $0)
|
||||||
source ${script_dir}/lib.sh
|
source ${script_dir}/lib.sh
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user