File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
test/extended/cli/adm_upgrade Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 11package adm_upgrade
22
33import (
4+ "context"
5+
46 g "github.com/onsi/ginkgo/v2"
57 o "github.com/onsi/gomega"
68 exutil "github.com/openshift/origin/test/extended/util"
@@ -16,6 +18,15 @@ var _ = g.Describe("[sig-cli][OCPFeatureGate:UpgradeStatus] oc adm upgrade statu
1618 oc := exutil .NewCLIWithoutNamespace ("oc-adm-upgrade-status" ).AsAdmin ()
1719
1820 g .It ("reports correctly when the cluster is not updating" , func () {
21+
22+ // CLI-side oc adm upgrade status does not support HyperShift (assumes MCPs, ignores NodePools, has no knowledge of
23+ // management / hosted cluster separation)
24+ isHyperShift , err := exutil .IsHypershift (context .TODO (), oc .AdminConfigClient ())
25+ o .Expect (err ).NotTo (o .HaveOccurred ())
26+ if isHyperShift {
27+ g .Skip ("oc adm upgrade status is not supported on HyperShift" )
28+ }
29+
1930 cmd := oc .Run ("adm" , "upgrade" , "status" ).EnvVar ("OC_ENABLE_CMD_UPGRADE_STATUS" , "true" )
2031 out , err := cmd .Output ()
2132 o .Expect (err ).NotTo (o .HaveOccurred ())
You can’t perform that action at this time.
0 commit comments