-
Notifications
You must be signed in to change notification settings - Fork 251
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
Add support for custom configuration #19
Conversation
This follows the client-go docs tutorial https://github.com/kubernetes/client-go/blob/master/tools/clientcmd/doc.go
Could you resolve the conflicts with this PR |
kubernetes/kubernetes.go
Outdated
} | ||
|
||
if apiserverHost, override := cfg.ClusterAPIServerHost(); override { | ||
fmt.Printf("API server host overriden to: %s\n", apiserverHost) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is still using fmt
(pre-glog commit) but is no longer importing the fmt package.
Here are the errors I'm seeing:
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o kube-monkey
# github.com/asobti/kube-monkey/kubernetes
kubernetes/kubernetes.go:16:22: undefined: os
kubernetes/kubernetes.go:31:37: undefined: fmt
kubernetes/kubernetes.go:41:37: undefined: fmt
kubernetes/kubernetes.go:47:3: undefined: fmt
kubernetes/kubernetes.go:48:3: undefined: config
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh yes, I was on the go and unable to integrate the glog changes. It should now be using it glog style.
I developed this branch separately from glog Resolved the conflicts correctly and verified the build locally :) ready for review |
If someone has a cluster that isn't easily configured with InClusterConfig, this allows them to use a custom config. This does not change the user experience for normal users.