-
Notifications
You must be signed in to change notification settings - Fork 51
Local Kubeconfig for easier development #31
Conversation
I don't think TPR support should be removed in favor for 1.10, unless we "announce" it and/or make a tag/branch with TPR and one continuing development without TPR support.. Are you experiencing issues with 1.10 using the operator-kit as is? |
Specifically trying to get support for 1.10 |
In theory in my projects I could use |
ad6e62a
to
bf5e326
Compare
@jbw976 Updated. |
717082e
to
8a3160b
Compare
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.
Thanks for updating the PR!
sample-operator/main.go
Outdated
if err != nil { | ||
return nil, nil, fmt.Errorf("failed to get k8s config. %+v", err) | ||
} | ||
|
||
clientset, err := kubernetes.NewForConfig(config) | ||
if err != nil { | ||
return nil, nil, fmt.Errorf("failed to get k8s client. %+v", err) | ||
return nil, nil, fmt.Errorf("failed to get kubernetes client. %+v", err) |
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.
The other errors generated in this file all have k8s
not kubernetes
, so it would be good to keep it the same here as it was.
8a3160b
to
639c610
Compare
@galexrt updated 👍 |
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.
LGTM
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.
After the flag has been moved to init()
, I'll go ahead and merge.
**Why:** * makes it so you can pass `-kubeconfig` for a local config **This change addresses the need by:** * closes rook#30 Signed-off-by: Christopher Hein <me@christopherhein.com>
639c610
to
3459f4c
Compare
@christopherhein Thanks for bearing with me! |
Also allows a local
kubeconfig
to be passed into for easier testing.