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

Use default namespace set in kubecfg #21

Merged
merged 1 commit into from
Apr 11, 2017
Merged

Conversation

dtan4
Copy link
Owner

@dtan4 dtan4 commented Apr 11, 2017

Close #15

kubecfg context can have default namespace instead of default. Now k8stail reads this value and use by default.

$ kubectl config get-contexts
CURRENT   NAME                                 CLUSTER                              AUTHINFO                             NAMESPACE
*         qa.cluster.examplesapp.com           qa.cluster.examplesapp.com           qa.cluster.examplesapp.com           sample-rails

$ bin/k8stail
Context:   qa.cluster.examplesapp.com
Namespace: sample-rails
Labels:
Press Ctrl-C to exit.
----------
^C

@dtan4 dtan4 merged commit fbf2776 into master Apr 11, 2017
@dtan4 dtan4 deleted the dtan4/use-context-namespace branch April 11, 2017 02:45
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

Successfully merging this pull request may close these issues.

1 participant