From 7e6f11a8ed067960a24b155cf188194dcbdd5916 Mon Sep 17 00:00:00 2001 From: lefebsy Date: Mon, 22 Jul 2024 10:19:30 +0200 Subject: [PATCH] fix bug context --- .sonarcloud.properties | 2 +- CHANGELOG.md | 3 +++ package-lock.json | 4 ++-- package.json | 2 +- src/helpers.ts | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.sonarcloud.properties b/.sonarcloud.properties index 3f14de4..5de6b1f 100644 --- a/.sonarcloud.properties +++ b/.sonarcloud.properties @@ -1 +1 @@ -sonar.projectVersion=1.4.13 \ No newline at end of file +sonar.projectVersion=1.4.14 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index aa32f5d..401cf48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ All notable changes to the "vskubi-lite" extension will be documented in this file. +## 1.4.13 +- Fix bug + ## 1.4.13 - Fix code bug : Yaml lib methode modified unoticed. Solved :-) diff --git a/package-lock.json b/package-lock.json index adc82c1..2d9074d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "vskubi-lite", - "version": "1.4.13", + "version": "1.4.14", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "vskubi-lite", - "version": "1.4.13", + "version": "1.4.14", "license": "MIT", "devDependencies": { "@kubernetes/client-node": "0.21.0", diff --git a/package.json b/package.json index 32243d9..89166a0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vskubi-lite", - "version": "1.4.13", + "version": "1.4.14", "displayName": "Kubi-lite", "description": "Kubernetes CA-GIP/Kubi CLI, Lite wrapper version compatible with VSCode and Theia IDE", "engines": { diff --git a/src/helpers.ts b/src/helpers.ts index 1efb08f..49efae1 100644 --- a/src/helpers.ts +++ b/src/helpers.ts @@ -285,7 +285,7 @@ export function setKubeContext(kubiOutputChannel: vscode.OutputChannel, login: s let cmd = `${kubectlPath} config use-context ${contextName}`; // spawning child processus (kubi-cli itself) - child_process.execFile(kubectlPath, ['config','use-context'], (err, stdout) => { + child_process.execFile(kubectlPath, ['config','use-context', contextName], (err, stdout) => { if (err) { kubiOutputChannel.appendLine(''); kubiOutputChannel.appendLine(new Date().toLocaleString());