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

kubectl version #77

Closed
garyburgmann opened this issue Oct 20, 2023 · 3 comments
Closed

kubectl version #77

garyburgmann opened this issue Oct 20, 2023 · 3 comments
Labels
enhancement 🧑‍🔧💡 New feature or request

Comments

@garyburgmann
Copy link

Describe the bug
Suspect that a very old version of kubectl is causing issues (#58).

Mention the platform you are using
MacOS Apple Silicon

To Reproduce
Steps to reproduce the behavior:

  1. re: this
  2. rm -rf '/Users/gary.burgmann/Library/Application Support/Code/User/globalStorage/mindaro.mindaro/file-downloader-downloads'
  3. Developer: Reload Window
  4. mindaro-vscode-*.txt
T01:52:49.364Z | Common Extension Root    | TRACE | Making sure that the CLI is present locally, by downloading it if needed <json>{}</json>
2023-10-20T01:52:49.364Z | Common Extension Root    | WARNG | dotnetruntime is not present locally. <json>{}</json>
2023-10-20T01:52:49.365Z | Common Extension Root    | WARNG | kubectl is not present locally. <json>{}</json>
2023-10-20T01:52:49.365Z | Common Extension Root    | TRACE | Resolved versionUrl 'https://bridgetokubernetes.blob.core.windows.net/zipv2/1.0.20231003.1/lks.json' <json>{}</json>
2023-10-20T01:52:49.367Z | Common Extension Root    | TRACE | Performing clean up before download for client 'bridge' <json>{}</json>
2023-10-20T01:52:50.136Z | Common Extension Root    | TRACE | Event: binaries-version-client-get-download-info-success <json>{"bridgeAvailableVersion":"1.0.20231003.1","bridgeExpectedVersion":"1.0.20231003.1","dotNetExpectedVersion":"7.0.7","kubectlExpectedVersion":"1.21.2"}</json>
2023-10-20T01:52:50.136Z | Common Extension Root    | TRACE | Event: binaries-version-client-get-download-info-status <json>{"binariesVersionsDownloadTimeInMilliseconds":771,"binariesVersionsDownloadSucceeded":true}</json>
2023-10-20T01:52:50.136Z | Common Extension Root    | TRACE | Event: binaries-version-client-get-cached-binaries-download-info-success <json>{}</json>
2023-10-20T01:52:50.136Z | Common Extension Root    | TRACE | Downloading client dotnetruntime... <json>{}</json>
2023-10-20T01:52:50.136Z | Common Extension Root    | TRACE | Downloading client kubectl... <json>{}</json>
2023-10-20T01:52:50.136Z | Common Extension Root    | TRACE | Downloading client bridge... <json>{}</json>
2023-10-20T01:52:50.136Z | Common Extension Root    | TRACE | Event: binaries-utility-download-start <json>{"clientType":"dotnetruntime","downloadUrl":"https://bridgetokubernetes.blob.core.windows.net/zipv2/LKS/dotnetruntime-osx.zip"}</json>
2023-10-20T01:52:50.136Z | Common Extension Root    | TRACE | Event: binaries-utility-download-start <json>{"clientType":"kubectl","downloadUrl":"https://bridgetokubernetes.blob.core.windows.net/zipv2/LKS/kubectl-osx.zip"}</json>
2023-10-20T01:52:50.136Z | Common Extension Root    | TRACE | Event: binaries-utility-download-start <json>{"clientType":"bridge","downloadUrl":"https://bridgetokubernetes.blob.core.windows.net/zipv2/1.0.20231003.1/lpk-osx.zip"}</json>
2023-10-20T01:54:06.090Z | Common Extension Root    | TRACE | Event: binaries-utility-download-success <json>{"clientType":"kubectl","downloadUrl":"https://bridgetokubernetes.blob.core.windows.net/zipv2/LKS/kubectl-osx.zip"}</json>
2023-10-20T01:54:19.025Z | Common Extension Root    | TRACE | Event: binaries-utility-download-success <json>{"clientType":"bridge","downloadUrl":"https://bridgetokubernetes.blob.core.windows.net/zipv2/1.0.20231003.1/lpk-osx.zip"}</json>
2023-10-20T01:56:40.984Z | Common Extension Root    | TRACE | Event: binaries-utility-download-success <json>{"clientType":"dotnetruntime","downloadUrl":"https://bridgetokubernetes.blob.core.windows.net/zipv2/LKS/dotnetruntime-osx.zip"}</json>
2023-10-20T01:56:40.984Z | Common Extension Root    | TRACE | Event: binaries-utility-overall-download-status <json>{"numberOfBinariesDownloaded":3,"binariesDownloadTimeInMilliseconds":231619,"binariesDownloadSucceeded":true}</json>
2023-10-20T01:56:40.984Z | Common Extension Root    | TRACE | Validating dotnetruntime. <json>{}</json>
2023-10-20T01:56:40.984Z | Common Extension Root    | TRACE | Validating bridge. <json>{}</json>
2023-10-20T01:56:40.984Z | Common Extension Root    | TRACE | Validating kubectl. <json>{}</json>
$ '/Users/gary.burgmann/Library/Application Support/Code/User/globalStorage/mindaro.mindaro/file-downloader-downloads/kubectl/osx/kubectl' version
Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.2", GitCommit:"092fbfbf53427de67cac1e9fa54aaa09a28371d7", GitTreeState:"clean", BuildDate:"2021-06-16T12:59:11Z", GoVersion:"go1.16.5", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.3", GitCommit:"31eb725f9812713ec7fd6cf293466ce4fdc7efa8", GitTreeState:"clean", BuildDate:"2023-10-09T14:42:41Z", GoVersion:"go1.20.5", Compiler:"gc", Platform:"linux/amd64"}
WARNING: version difference between client (1.21) and server (1.27) exceeds the supported minor version skew of +/-1

Expected behavior
If the extension is ignoring current system binaries in favor of downloading and managing its own version, they should be more up to date. Current LTS version 1.27 would be a sensible choice. Currently uses 1.21.2.

Screenshots
image

image

Desktop (please complete the following information):

  • OS: MacOS Monterey Apple Silicon
@hsubramanianaks hsubramanianaks added the enhancement 🧑‍🔧💡 New feature or request label Oct 20, 2023
@hsubramanianaks
Copy link
Collaborator

@garyburgmann Thanks for raising this issue, we are aware of this and working on them.

@hsubramanianaks
Copy link
Collaborator

@garyburgmann we are working on updating the kubectl version as part of this PR - Azure/Bridge-To-Kubernetes#290, and there will be another PR to update them from vscode extension side. I will keep you posted when this will be ready. Thank you.

@hsubramanianaks
Copy link
Collaborator

@garyburgmann Kubectl version is updated to V1.27.3 - refer here. The reason being keeping our own version of kubectl is we don't want to use user local version of kubectl and if in case it is corrupted or having issues then it would cause issues to this extension. Hope this make sense and if you are satisfied, please close this issue. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 🧑‍🔧💡 New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants