Skip to content

Commit 01b42c5

Browse files
committed
Stop trying to connect to a cluster when it doesn't appear to be available
Signed-off-by: Victor Rubezhny <vrubezhny@redhat.com>
1 parent b361edc commit 01b42c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/openshift/cluster.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,9 +548,11 @@ export class Cluster extends OpenShiftItem {
548548
return null;
549549
}
550550
} else {
551+
// Stop trying because the cluster doesn't appear to be available
551552
void window.showWarningMessage(
552553
'Unable to contact the cluster. Is it running and accessible?',
553554
);
555+
return null;
554556
}
555557
}
556558
} while (!clusterIsUp);

0 commit comments

Comments
 (0)