Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

microk8s serverVersion can't be parsed #943

Closed
alishchytovych opened this issue Feb 12, 2021 · 3 comments · Fixed by #928
Closed

microk8s serverVersion can't be parsed #943

alishchytovych opened this issue Feb 12, 2021 · 3 comments · Fixed by #928

Comments

@alishchytovych
Copy link

Hello,

Using microk8s, the following is reported by kubectl version -o json:

{
  "clientVersion": {
    "major": "1",
    "minor": "20",
    "gitVersion": "v1.20.0",
    "gitCommit": "af46c47ce925f4c4ad5cc8d1fca46c7b77d13b38",
    "gitTreeState": "clean",
    "buildDate": "2020-12-08T17:59:43Z",
    "goVersion": "go1.15.5",
    "compiler": "gc",
    "platform": "windows/amd64"
  },
  "serverVersion": {
    "major": "1",
    "minor": "20+",
    "gitVersion": "v1.20.1-34+e7db93d188d0d1",
    "gitCommit": "e7db93d188d0d12f2fe5336d1b85cdb94cb909d3",
    "gitTreeState": "clean",
    "buildDate": "2021-01-11T23:50:46Z",
    "goVersion": "go1.15.6",
    "compiler": "gc",
    "platform": "linux/amd64"
  }
}

Unfortunately, this can't be parsed because of integer version here:

var minor = int.Parse(element.Value.GetProperty("minor").GetString());

therefore, tye deploy doesn't work.

Kindly ask to fix

@bbteam17
Copy link

I have same problem.

@Douglas-Cleghorn
Copy link
Contributor

Looks like it is the same issue I've been having. #927

@jkotalik
Copy link
Contributor

jkotalik commented Mar 3, 2021

Going to close as a dup of #927

@jkotalik jkotalik closed this as completed Mar 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants