File tree Expand file tree Collapse file tree 6 files changed +27
-10
lines changed Expand file tree Collapse file tree 6 files changed +27
-10
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ chmod +x operator-sdk
135135OLM_VERSION=$( curl https://api.github.com/repos/operator-framework/operator-lifecycle-manager/releases/latest | jq -r .name)
136136
137137# start K8s cluster
138- export KUBEVIRT_PROVIDER=k8s-1.32
138+ export KUBEVIRT_PROVIDER=k8s-1.34
139139export KUBEVIRT_MEMORY_SIZE=12G
140140export KUBEVIRT_NUM_NODES=4
141141# cluster/kubevirtci_tag.txt is auto updated by hack/bump-kubevirtci.sh
@@ -145,13 +145,11 @@ make cluster-up
145145export KUBECONFIG=$( _kubevirtci/cluster-up/kubeconfig.sh)
146146export KUBECTL=$( pwd) /_kubevirtci/cluster-up/kubectl.sh
147147
148+ CMD=${KUBECTL} ./hack/deploy-cert-manager.sh
149+
148150# install OLM on the cluster
149151./operator-sdk olm install --version " ${OLM_VERSION} "
150152
151- # Deploy cert-manager for webhooks
152- $KUBECTL apply -f deploy/cert-manager.yaml
153- $KUBECTL -n cert-manager wait deployment/cert-manager-webhook --for=condition=Available --timeout=" 300s"
154-
155153trap " dump" INT TERM EXIT
156154
157155# install HCO on the cluster
Original file line number Diff line number Diff line change 44
55hco_namespace=kubevirt-hyperconverged
66
7+ CERT_MANAGER_VERSION=${CERT_MANAGER_VERSION:- " v1.18.2" }
8+
79IS_OPENSHIFT=${IS_OPENSHIFT:- false}
810if kubectl api-resources | grep clusterversions | grep config.openshift.io; then
911 IS_OPENSHIFT=" true"
@@ -36,7 +38,7 @@ kubectl apply ${LABEL_SELECTOR_ARG} -f https://raw.githubusercontent.com/kubevir
3638kubectl apply ${LABEL_SELECTOR_ARG} -f https://raw.githubusercontent.com/kubevirt/hyperconverged-cluster-operator/main/deploy/crds/application-aware-quota00.crd.yaml
3739
3840# Deploy cert-manager for webhook certificates
39- kubectl apply ${LABEL_SELECTOR_ARG} -f https://raw.githubusercontent. com/kubevirt/hyperconverged-cluster-operator/main/deploy/ cert-manager.yaml
41+ kubectl apply -f " https://github. com/cert-manager/cert-manager/releases/download/ ${CERT_MANAGER_VERSION} / cert-manager.yaml"
4042kubectl -n cert-manager wait deployment/cert-manager --for=condition=Available --timeout=" 300s"
4143kubectl -n cert-manager wait deployment/cert-manager-webhook --for=condition=Available --timeout=" 300s"
4244
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ source hack/common.sh
5252" ${CMD} " delete -f _out/service_account.yaml --ignore-not-found || true
5353
5454# Remove cert-manager
55- " ${CMD} " delete -f _out/ cert-manager.yaml --ignore-not-found || true
55+ " ${CMD} " delete -f " https://github.com/ cert-manager/cert-manager/releases/download/ ${CERT_MANAGER_VERSION} /cert-manager .yaml" --ignore-not-found || true
5656" ${CMD} " delete validatingwebhookconfigurations cert-manager-webhook --ignore-not-found || true
5757" ${CMD} " delete mutatingwebhookconfigurations cert-manager-webhook --ignore-not-found || true
5858" ${CMD} " delete secrets -n kubevirt-hyperconverged -l controller.cert-manager.io/fao=true --ignore-not-found || true
Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ KUBECTL=${KUBECTL:-}
3939TEST_OUT_PATH=${TEST_OUT_PATH:- " tests/func-tests/_out" }
4040JOB_TYPE=${JOB_TYPE:- }
4141
42+ CERT_MANAGER_VERSION=${CERT_MANAGER_VERSION:- " v1.18.2" }
43+
4244KUBECTL=$( which kubectl 2> /dev/null) || true
4345
4446if [ -z " ${CMD} " ]; then
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ source hack/common.sh
4+
5+ set -ex
6+
7+ CERT_MANAGER_TIMEOUT=${CERT_MANAGER_TIMEOUT:- " 120s" }
8+
9+ echo " Installing cert-manager ${CERT_MANAGER_VERSION} "
10+ ${CMD} apply -f https://github.com/cert-manager/cert-manager/releases/download/${CERT_MANAGER_VERSION} /cert-manager.yaml
11+
12+ echo " Waiting for cert-manager to be ready..."
13+ ${CMD} wait --for=condition=Available --namespace=cert-manager deployment/cert-manager --timeout=${CERT_MANAGER_TIMEOUT}
14+ ${CMD} wait --for=condition=Available --namespace=cert-manager deployment/cert-manager-cainjector --timeout=${CERT_MANAGER_TIMEOUT}
15+ ${CMD} wait --for=condition=Available --namespace=cert-manager deployment/cert-manager-webhook --timeout=${CERT_MANAGER_TIMEOUT}
16+
17+ echo " cert-manager ${CERT_MANAGER_VERSION} installed successfully"
Original file line number Diff line number Diff line change @@ -114,9 +114,7 @@ if [ "$IS_OPENSHIFT" != "true" ]; then
114114 LABEL_SELECTOR_ARG=" -l name!=ssp-operator,name!=hyperconverged-cluster-cli-download"
115115fi
116116
117- # Deploy cert-manager for webhooks
118- " ${CMD} " apply -f _out/cert-manager.yaml
119- " ${CMD} " -n cert-manager wait deployment/cert-manager-webhook --for=condition=Available --timeout=" 300s"
117+ hack/deploy-cert-manager.sh
120118
121119# Deploy local manifests
122120" ${CMD} " apply $LABEL_SELECTOR_ARG -f _out/cluster_role.yaml
You can’t perform that action at this time.
0 commit comments