mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-05-04 22:47:29 +00:00
Merge pull request #10892 from ldoktor/webhook
ci: Change the way we modify runtimeclass in webhook
This commit is contained in:
commit
8c2d1b374c
ci/openshift-ci/cluster
@ -23,14 +23,11 @@ pushd "${webhook_dir}" >/dev/null
|
|||||||
#
|
#
|
||||||
info "Builds the kata-webhook"
|
info "Builds the kata-webhook"
|
||||||
./create-certs.sh
|
./create-certs.sh
|
||||||
|
info "Override our KATA_RUNTIME ConfigMap"
|
||||||
|
sed -i deploy/webhook.yaml -e "s/runtime_class: .*$/runtime_class: $KATA_RUNTIME/g"
|
||||||
info "Deploys the kata-webhook"
|
info "Deploys the kata-webhook"
|
||||||
oc apply -f deploy/
|
oc apply -f deploy/
|
||||||
|
|
||||||
info "Override our KATA_RUNTIME ConfigMap"
|
|
||||||
RUNTIME_CLASS="${KATA_RUNTIME}" \
|
|
||||||
envsubst < "${script_dir}/deployments/configmap_kata-webhook.yaml.in" \
|
|
||||||
| oc apply -f -
|
|
||||||
|
|
||||||
# Check the webhook was deployed and is working.
|
# Check the webhook was deployed and is working.
|
||||||
RUNTIME_CLASS="${KATA_RUNTIME}" ./webhook-check.sh
|
RUNTIME_CLASS="${KATA_RUNTIME}" ./webhook-check.sh
|
||||||
popd >/dev/null
|
popd >/dev/null
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
# Copyright (c) 2021 Red Hat, Inc.
|
|
||||||
#
|
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
#
|
|
||||||
# Apply customizations to the kata-webhook.
|
|
||||||
#
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: kata-webhook
|
|
||||||
data:
|
|
||||||
runtime_class: ${RUNTIME_CLASS}
|
|
Loading…
Reference in New Issue
Block a user