You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[#3935] use fully qualified name for machinesets (#3936)
fixes#3935
With shortname only it is failing on OCP 4.21 nightly
```
$ oc get machineset -n openshift-machine-api
No resources found in openshift-machine-api namespace.
$ oc get machineset.machine.openshift.io -n openshift-machine-api
NAME DESIRED CURRENT READY AVAILABLE AGE
msimka-1194-qmbmc-worker-0 4 4 4 4 4h10m
$ oc get machineset.v1beta1.machine.openshift.io -n openshift-machine-api
NAME DESIRED CURRENT READY AVAILABLE AGE
msimka-1194-qmbmc-worker-0 4 4 4 4 4h10m
```
Copy file name to clipboardExpand all lines: hack/lib/scaleup.bash
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ function scale_up_workers {
22
22
# (us-east-1e). Please retry your request by not specifying an Availability Zone
23
23
# or choosing us-east-1a, us-east-1b, us-east-1c, us-east-1d, us-east-1f."
24
24
ignored_zone="us-east-1e"
25
-
az_total="$(oc get machineset -n openshift-machine-api -oname | grep -cv "$ignored_zone")"
25
+
az_total="$(oc get machineset.machine.openshift.io -n openshift-machine-api -oname | grep -cv "$ignored_zone")"
26
26
27
27
logger.debug "ready machine count: ${current_total}, number of available zones: ${az_total}"
28
28
@@ -32,7 +32,7 @@ function scale_up_workers {
32
32
fi
33
33
34
34
idx=0
35
-
formsetin$(oc get machineset -n openshift-machine-api -o name | grep -v "$ignored_zone");do
35
+
formsetin$(oc get machineset.machine.openshift.io -n openshift-machine-api -o name | grep -v "$ignored_zone");do
36
36
replicas=$(( SCALE_UP / az_total ))
37
37
if [ ${idx}-lt$(( SCALE_UP % az_total )) ];then
38
38
(( replicas++))||true
@@ -88,7 +88,7 @@ function use_spot_instances {
88
88
return
89
89
fi
90
90
91
-
if [[ $(oc get machineset -n openshift-machine-api -ojsonpath='{.items[*].spec.template.spec.providerSpec.value.spotMarketOptions}')!="" ]];then
91
+
if [[ $(oc get machineset.machine.openshift.io -n openshift-machine-api -ojsonpath='{.items[*].spec.template.spec.providerSpec.value.spotMarketOptions}')!="" ]];then
92
92
logger.info "Spot instances already configured."
93
93
return
94
94
fi
@@ -101,7 +101,7 @@ function use_spot_instances {
101
101
local available
102
102
available=$(oc get machineconfigpool worker -o jsonpath='{.status.readyMachineCount}')
103
103
104
-
formsetin$(oc get machineset -n openshift-machine-api -oname);do
104
+
formsetin$(oc get machineset.machine.openshift.io -n openshift-machine-api -oname);do
105
105
oc get "${mset}" -n openshift-machine-api -ojson >"$mset_file"
0 commit comments