File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 5
5
RELEASE_IMAGE=$1
6
6
CLUSTER_IMAGE_NAME=$2
7
7
8
+ podman pull " $RELEASE_IMAGE "
9
+
8
10
CLUSTER_IMAGE=" $( podman run --rm $RELEASE_IMAGE image $CLUSTER_IMAGE_NAME ) "
9
11
10
12
podman pull " $CLUSTER_IMAGE "
Original file line number Diff line number Diff line change 4
4
5
5
config_map=$( mktemp)
6
6
7
- cluster_api_pod=$( oc get pods -n openshift-cluster -api | grep clusterapi | cut -f1 -d " " )
7
+ cluster_api_pod=$( oc get pods -n openshift-machine -api | grep clusterapi | cut -f1 -d " " )
8
8
9
9
echo $config_map
10
10
11
11
oc scale --replicas 0 -n openshift-cluster-version deployments/cluster-version-operator
12
12
13
- oc get configmaps machine-api-operator-images -o yaml -n openshift-cluster -api > $config_map
13
+ oc get configmaps machine-api-operator-images -o yaml -n openshift-machine -api > $config_map
14
14
15
15
sed -i " s%$OLD_IMAGE %$NEW_IMAGE %" $config_map
16
16
17
17
oc replace --force -f $config_map
18
18
19
- oc scale --replicas 0 deployments/clusterapi-manager-controllers -n openshift-cluster -api
19
+ oc scale --replicas 0 deployments/clusterapi-manager-controllers -n openshift-machine -api
20
20
sleep 10
21
- oc scale --replicas 1 deployments/clusterapi-manager-controllers -n openshift-cluster -api
21
+ oc scale --replicas 1 deployments/clusterapi-manager-controllers -n openshift-machine -api
You can’t perform that action at this time.
0 commit comments