mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-12 13:22:28 +00:00
Merge pull request #10345 from ldoktor/kata-webhook
ci: Reorder webhook deployment
This commit is contained in:
commit
edf4ca4738
@ -13,16 +13,11 @@ set -e
|
|||||||
set -o nounset
|
set -o nounset
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
script_dir="$(dirname $0)"
|
script_dir="$(realpath $(dirname $0))"
|
||||||
webhook_dir="${script_dir}/../../../tools/testing/kata-webhook"
|
webhook_dir="${script_dir}/../../../tools/testing/kata-webhook"
|
||||||
source "${script_dir}/../lib.sh"
|
source "${script_dir}/../lib.sh"
|
||||||
KATA_RUNTIME=${KATA_RUNTIME:-kata-ci}
|
KATA_RUNTIME=${KATA_RUNTIME:-kata-ci}
|
||||||
|
|
||||||
info "Creates the kata-webhook ConfigMap"
|
|
||||||
RUNTIME_CLASS="${KATA_RUNTIME}" \
|
|
||||||
envsubst < "${script_dir}/deployments/configmap_kata-webhook.yaml.in" \
|
|
||||||
| oc apply -f -
|
|
||||||
|
|
||||||
pushd "${webhook_dir}" >/dev/null
|
pushd "${webhook_dir}" >/dev/null
|
||||||
# Build and deploy the webhook
|
# Build and deploy the webhook
|
||||||
#
|
#
|
||||||
@ -30,6 +25,12 @@ info "Builds the kata-webhook"
|
|||||||
./create-certs.sh
|
./create-certs.sh
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user