Skip to content

Commit

Permalink
Don't prompt before switching over to service account on Sandbox
Browse files Browse the repository at this point in the history
Per our discussion, this makes the experience smoother

Signed-off-by: David Thompson <davthomp@redhat.com>
  • Loading branch information
datho7561 committed Feb 15, 2024
1 parent dffaa5a commit 9d433c5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/openshift/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -849,11 +849,7 @@ export class Cluster extends OpenShiftItem {
try {
await Oc.Instance.loginWithToken(clusterURL, ocToken);
if (Cluster.isOpenShiftSandbox(clusterURL)) {
const YES = 'Yes';
const result = await window.showInformationMessage('OpenShift Sandbox logs you out after 15 minutes. Would you like to switch to a service account to prevent this?', YES, 'No');
if (result === YES) {
await Cluster.installPipelineUserContext();
}
await Cluster.installPipelineUserContext();

Check warning on line 852 in src/openshift/cluster.ts

View check run for this annotation

Codecov / codecov/patch

src/openshift/cluster.ts#L852

Added line #L852 was not covered by tests
}
return Cluster.loginMessage(clusterURL);
} catch (error) {
Expand Down

0 comments on commit 9d433c5

Please sign in to comment.