Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed preset text #97

Merged
merged 1 commit into from
May 9, 2023
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
12 changes: 8 additions & 4 deletions src/crc-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,21 @@ export async function needSetup(): Promise<boolean> {
export async function setUpCrc(logger: extensionApi.Logger, askForPreset = false): Promise<boolean> {
if (askForPreset) {
const preset = await extensionApi.window.showInformationMessage(
'Which preset do you want to run?\n\nOpenShift offers a full cluster\n\nMicroshift is a lightweight ...',
'openshift',
'microshift',
'Which preset bundle would you like to use with OpenShift Local. Microshift (experimental), provides a lightweight and optimized environment with a limited set of services. OpenShift, provides a single node OpenShift cluster with a fuller set of services, including a web console (requires more resources).',
'OpenShift',
'MicroShift (experimental)',
);
if (!preset) {
extensionApi.window.showNotification({
title: productName,
body: 'Default preset will be used.',
});
} else {
await execPromise(getCrcCli(), ['config', 'set', 'preset', preset]);
let choice = preset.toLowerCase();
if(choice.includes('microshift')) {
choice = 'microshift';
}
await execPromise(getCrcCli(), ['config', 'set', 'preset', choice]);
}
}

Expand Down