Skip to content

Commit df0294e

Browse files
committed
update the CI deploy scripts for new runners
Signed-off-by: Sebastian Sch <[email protected]>
1 parent f9190bf commit df0294e

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

hack/run-e2e-conformance-virtual-cluster.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
#!/usr/bin/env bash
22
set -xeo pipefail
33

4-
cluster_version=${CLUSTER_VERSION:-1.32.0}
5-
cluster_name=${CLUSTER_NAME:-virtual}
6-
domain_name=$cluster_name.lab
4+
export cluster_version=${CLUSTER_VERSION:-1.34.2}
5+
export cluster_name=${CLUSTER_NAME:-virtual}
6+
export domain_name=$cluster_name.lab
77

8-
api_ip=${API_IP:-192.168.124.250}
9-
virtual_router_id=${VIRTUAL_ROUTER_ID:-250}
10-
HOME="/root"
8+
export api_ip=${API_IP:-192.168.124.250}
9+
export virtual_router_id=${VIRTUAL_ROUTER_ID:-250}
1110

1211
here="$(dirname "$(readlink --canonicalize "${BASH_SOURCE[0]}")")"
1312
root="$(readlink --canonicalize "$here/..")"
@@ -50,6 +49,7 @@ kcli delete network $cluster_name -y
5049
function cleanup {
5150
kcli delete cluster $cluster_name -y
5251
kcli delete network $cluster_name -y
52+
sudo rm -f /etc/containers/registries.conf.d/003-${cluster_name}.conf
5353
}
5454

5555
if [ -z $SKIP_DELETE ]; then
@@ -154,9 +154,10 @@ insecure = true
154154
\"golang\" = \"docker.io/library/golang\"
155155
"
156156

157-
cat << EOF > /etc/containers/registries.conf.d/003-${cluster_name}.conf
157+
sudo bash -c "cat << EOF > /etc/containers/registries.conf.d/003-${cluster_name}.conf
158158
$insecure_registry
159159
EOF
160+
"
160161

161162
function update_host() {
162163
node_name=$1

hack/run-e2e-conformance-virtual-ocp.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
#!/usr/bin/env bash
22
set -xeo pipefail
33

4-
OCP_VERSION=${OCP_VERSION:-4.18}
4+
OCP_VERSION=${OCP_VERSION:-4.20}
55
OCP_RELEASE_TYPE=${OCP_RELEASE_TYPE:-stable}
66
cluster_name=${CLUSTER_NAME:-ocp-virt}
77
domain_name=lab
88

99
api_ip=${API_IP:-192.168.123.253}
1010
virtual_router_id=${VIRTUAL_ROUTER_ID:-253}
1111
registry="default-route-openshift-image-registry.apps.${cluster_name}.${domain_name}"
12-
HOME="/root"
1312

1413
NUM_OF_WORKERS=${NUM_OF_WORKERS:-3}
1514
total_number_of_nodes=$((1 + NUM_OF_WORKERS))
@@ -43,6 +42,7 @@ kcli delete network $cluster_name -y
4342
function cleanup {
4443
kcli delete cluster $cluster_name -y
4544
kcli delete network $cluster_name -y
45+
sudo rm -f /etc/containers/registries.conf.d/003-${cluster_name}.conf
4646
}
4747

4848
if [ -z $SKIP_DELETE ]; then
@@ -67,7 +67,7 @@ ctlplanes: 1
6767
workers: $NUM_OF_WORKERS
6868
machine: q35
6969
network_type: OVNKubernetes
70-
pull_secret: /root/openshift_pull.json
70+
pull_secret: $HOME/openshift_pull.json
7171
vmrules:
7272
- $cluster_name-worker-.*:
7373
nets:
@@ -136,7 +136,7 @@ controller_ip=`kubectl get node -o wide | grep ctlp | awk '{print $6}'`
136136

137137
if [ `cat /etc/hosts | grep ${api_ip} | grep "default-route-openshift-image-registry.apps.${cluster_name}.${domain_name}" | wc -l` == 0 ]; then
138138
echo "adding registry to hosts"
139-
sed -i "s/${api_ip}/${api_ip} default-route-openshift-image-registry.apps.${cluster_name}.${domain_name}/g" /etc/hosts
139+
sudo sed -i "s/${api_ip}/${api_ip} default-route-openshift-image-registry.apps.${cluster_name}.${domain_name}/g" /etc/hosts
140140
fi
141141

142142

0 commit comments

Comments
 (0)