Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions src/openshift/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -530,10 +530,10 @@ export class Cluster extends OpenShiftItem {
);
if (promptResponse === startCrc){
await commands.executeCommand('openshift.explorer.addCluster', 'crc');
// no point in continuing with the wizard,
// it will take the cluster a few minutes to stabilize
return null;
}
// Anyway, no point in continuing with the wizard
return null;
} else if (Cluster.isSandboxCluster(clusterURL)) {
const devSandboxSignup = 'Sign up for OpenShift Dev Sandbox';
const promptResponse = await window.showWarningMessage(
Expand All @@ -543,15 +543,17 @@ export class Cluster extends OpenShiftItem {
);
if (promptResponse === devSandboxSignup){
await commands.executeCommand('openshift.explorer.addCluster', 'sandbox');
// no point in continuing with the wizard,
// the user needs to sign up for the service
return null;
}
} else {
void window.showWarningMessage(
'Unable to contact the cluster. Is it running and accessible?',
);
// Anyway, no point in continuing with the wizard
return null;
}

// Stop trying because the cluster doesn't appear to be available
void window.showWarningMessage(
'Unable to contact the cluster. Is it running and accessible?',
);
return null;
}
} while (!clusterIsUp);

Expand Down