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

BUG with kubectl v1.10.0 #69

Open
pixie79 opened this issue Mar 29, 2018 · 2 comments
Open

BUG with kubectl v1.10.0 #69

pixie79 opened this issue Mar 29, 2018 · 2 comments

Comments

@pixie79
Copy link

pixie79 commented Mar 29, 2018

It appears the latest version of kubectl is not compatible with v1.9.6

Marks-MacBook-Pro:prest molliver$ kd --config /Users/molliver/git/borders/platform/kube-secrets/dev.env -f ./network-policy.yaml
[INFO] 2018/03/29 10:53:55 main.go:278: deploying networkpolicy/prest
[ERROR] 2018/03/29 10:53:56 main.go:122: Error from server (NotAcceptable): unknown
Marks-MacBook-Pro:prest molliver$ which kubectl
/usr/local/bin/kubectl
Marks-MacBook-Pro:prest molliver$ sum which kubectl
5542 52618 /usr/local/bin/kubectl
Marks-MacBook-Pro:prest molliver$ kubectl version
Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.0", GitCommit:"fc32d2f3698e36b93322a3465f63a14e9f0eaead", GitTreeState:"clean", BuildDate:"2018-03-27T00:13:02Z", GoVersion:"go1.9.4", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.6+a08f5eeb62", GitCommit:"c84beff", GitTreeState:"clean", BuildDate:"2018-03-15T19:58:35Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}

Yet when I switch just kubectl back to the earlier 1.9.6 version kd works fine.

Regards

Mark

@arehmandev
Copy link
Contributor

arehmandev commented Apr 29, 2018

Maybe overkill but I recommend moving from kubectl to kube client library and making calls as such (e.g.): https://github.com/arehmandev/kubernetes/blob/997861d86635c8c9517ee290f1d79ebb85da155d/staging/src/k8s.io/client-go/examples/out-of-cluster-client-configuration/main.go

But in the short term you could add a kubectl version check.

@lewismarshall
Copy link
Contributor

@arehmandev created #99 for now...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants