Merge pull request #762 from mook-as/wsl-integration-fix-fetch

WSL: Fix fetching integrations
This commit is contained in:
Mark Yen
2021-10-07 16:54:36 -07:00
committed by GitHub

View File

@@ -1021,16 +1021,17 @@ export default class WSLBackend extends events.EventEmitter implements K8s.Kuber
try {
const kubeconfigPath = await this.k3sHelper.findKubeConfigToUpdate('rancher-desktop');
const stdout = await this.execCommand(
const stdout = await this.execWSL(
{
capture: true,
env: {
capture: true,
encoding: 'utf-8',
env: {
...process.env,
KUBECONFIG: kubeconfigPath,
WSLENV: `${ process.env.WSLENV }:KUBECONFIG/up`,
},
},
executable, 'kubeconfig', '--show');
'--distribution', distro, '--exec', executable, 'kubeconfig', '--show');
if (['true', 'false'].includes(stdout.trim())) {
result[distro] = stdout.trim() === 'true';