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

Error parsing Kubernetes minor version with extra characters (+) #927

Closed
Douglas-Cleghorn opened this issue Feb 5, 2021 · 0 comments · Fixed by #928
Closed

Error parsing Kubernetes minor version with extra characters (+) #927

Douglas-Cleghorn opened this issue Feb 5, 2021 · 0 comments · Fixed by #928
Labels
bug Something isn't working

Comments

@Douglas-Cleghorn
Copy link
Contributor

Douglas-Cleghorn commented Feb 5, 2021

Describe the bug

Some versions of Kubernetes return a plus sign (+) in the minor version number. When this happens Tye quits showing a misleading error message.

Drats! 'deploy' failed:
        Cannot apply manifests because kubectl is not installed

To Reproduce

  1. Install Ubuntu 20.04 and MicroK8s
  2. Configure kubectl using alias or by copying the config file
  3. tye deploy -i

Further technical details

tye --version
0.6.0-alpha.21070.5+a42e4463943e3136dbd1de38474d8d62b802797c

Ubuntu 20.04.1

kubectl version -o json

{
  "clientVersion": {
    "major": "1",
    "minor": "20",
    "gitVersion": "v1.20.2",
    "gitCommit": "faecb196815e248d3ecfb03c680a4507229c2a56",
    "gitTreeState": "clean",
    "buildDate": "2021-01-13T13:28:09Z",
    "goVersion": "go1.15.5",
    "compiler": "gc",
    "platform": "linux/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"
  }
}

This line is the problem:

"minor": "20+",
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant