Skip to content

Commit 6fcacab

Browse files
committed
platform HyperShift not supported
1 parent e710b3c commit 6fcacab

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/monitortests/cli/adm_upgrade/status/monitortest.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ func (w *monitor) PrepareCollection(ctx context.Context, adminRESTConfig *rest.C
5858
return err
5959
}
6060

61+
if ok, err := exutil.IsHypershift(ctx, clientconfigv1client); err != nil {
62+
return fmt.Errorf("unable to determine if cluster is Hypershift: %v", err)
63+
} else if ok {
64+
w.notSupportedReason = &monitortestframework.NotSupportedError{Reason: "platform Hypershift not supported"}
65+
return w.notSupportedReason
66+
}
67+
6168
if ok, err := exutil.IsSingleNode(ctx, clientconfigv1client); err != nil {
6269
return fmt.Errorf("unable to determine if cluster is single node: %v", err)
6370
} else {

0 commit comments

Comments
 (0)