Skip to content

Commit

Permalink
Add crc links to dashboard
Browse files Browse the repository at this point in the history
Signed-off-by: Yevhen Vydolob <[email protected]>
  • Loading branch information
evidolob committed May 8, 2023
1 parent 9d20e0e commit 5197167
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,29 @@ export async function activate(extensionContext: extensionApi.ExtensionContext):

detectionChecks.push(...getCrcDetectionChecks(crcVersion));

const links: extensionApi.Link[] = [
{
title: 'Website',
url: 'https://developers.redhat.com/products/openshift-local/overview',
},
{
title: 'Installation guide',
url: 'https://access.redhat.com/documentation/en-us/red_hat_openshift_local/2.18/html/getting_started_guide/installation_gsg',
},
{
title: 'Obtain pull-secret',
url: 'https://cloud.redhat.com/openshift/create/local',
},
{
title: 'Troubleshooting',
url: 'https://access.redhat.com/documentation/en-us/red_hat_openshift_local/2.18/html/getting_started_guide/troubleshooting_gsg',
},
{
title: 'Repository',
url: 'https://github.com/crc-org/crc-extension',
},
];

// create CRC provider
const provider = extensionApi.provider.createProvider({
name: productName,
Expand All @@ -75,6 +98,7 @@ export async function activate(extensionContext: extensionApi.ExtensionContext):
icon: './icon.png',
logo: './icon.png',
},
links,
});
extensionContext.subscriptions.push(provider);

Expand Down
1 change: 1 addition & 0 deletions src/install/crc-install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export class CrcInstall {

// update detections checks
provider.updateDetectionChecks(getCrcDetectionChecks(newInstalledCrc));
provider.updateVersion(newInstalledCrc.version);
let setupResult = false;
if (await needSetup()) {
setupResult = await setUpCrc(logger, true);
Expand Down

0 comments on commit 5197167

Please sign in to comment.