File tree 1 file changed +21
-0
lines changed
1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change
1
+ : ${KUBECONFIG:= ocp/ auth/ kubeconfig}
2
+ : ${OLD_IMAGE:= docker.io/ openshift/ origin-openstack-machine-controllers: v4.0.0}
3
+ : ${NEW_IMAGE:= quay.io/ trown/ openstack-machine-controllers: rebase}
4
+
5
+ config_map=$( mktemp)
6
+
7
+ cluster_api_pod=$( oc get pods -n openshift-cluster-api | grep clusterapi | cut -f1 -d " " )
8
+
9
+ echo $config_map
10
+
11
+ oc scale --replicas 0 -n openshift-cluster-version deployments/cluster-version-operator
12
+
13
+ oc get configmaps machine-api-operator-images -o yaml -n openshift-cluster-api > $config_map
14
+
15
+ sed -i " s%$OLD_IMAGE %$NEW_IMAGE %" $config_map
16
+
17
+ oc replace --force -f $config_map
18
+
19
+ oc scale --replicas 0 deployments/clusterapi-manager-controllers -n openshift-cluster-api
20
+ sleep 10
21
+ oc scale --replicas 1 deployments/clusterapi-manager-controllers -n openshift-cluster-api
You can’t perform that action at this time.
0 commit comments