Skip to content

Feature Request: chectl to support for Minikube's none driver. #23523

Description

@mikoto2000

Is your enhancement related to a problem? Please describe

I would like chectl to support for Minikube's none driver.

This allows you to verify the operation from the host’s browser even when Eclipse Che is deploy with Minikube on a Linux virtual machine.

Describe the solution you'd like

If you skip the part that creates /etc/ca-certificates via minikube ssh, the deployment will succeed even with the none driver.

src/tasks/platforms/minikube.ts:

{
  title: 'Create /etc/ca-certificates directory',
  enabled: (ctx: any) => Boolean(ctx[OIDCContext.CA_FILE]),
  task: async (_ctx: any, task: any) => {
    const args: string[] = []
    args.push('ssh', 'sudo mkdir -p /etc/ca-certificates')

    try {
        await execa('minikube', args, { timeout: 60_000 })
    } catch (e: unknown) {
        // Check the driver, and if it is `none`, ignore the exception
    }

    task.title = `${task.title}...[Created]`
  },
},

Describe alternatives you've considered

No response

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/chectlIssues related to chectl, the CLI of Chehelp wantedCommunity, we are fully engaged on other issues. Feel free to take this one. We'll help you!kind/enhancementA feature request - must adhere to the feature request template.severity/P2Has a minor but important impact to the usage or development of the system.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions