peter woodman
ff2f9661a2
stop using XDG_CACHE_HOME as home directory ( #299 )
...
* stop using XDG_CACHE_HOME as home directory
XDG_CACHE_HOME is not a substitute for $HOME, see [1].
[1]: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
* fix bats testing setup/teardown
since cmdutil.Homedir() would treat $XDG_CACHE_HOME as $HOME, deleting
$XDG_CACHE_HOME would wipe out previous kubens state. now that we're not
doing that, we need to make a real synthetic $HOME and clear it out so
that $HOME/.kube/kubens doesn't persist between runs.
2021-05-28 16:09:32 -07:00
Ahmet Alp Balkan
1e49c336fc
Add license headers for 2021
...
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com >
2020-12-29 13:38:42 -08:00
Jason Harmon
8c323c5653
Fix color in kubens success message when using fzf ( #228 )
2020-11-16 09:01:28 -08:00
Sedat Gökcen
1db00a20d9
Structural refactoring for multiple kubeconfig support ( #219 )
2020-06-02 13:04:13 -07:00
Ahmet Alp Balkan
7f3f0699b3
Extend CI workflow with gofmt
...
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com >
2020-04-29 13:28:12 -07:00
Ahmet Alp Balkan
1881107d55
Load namespaces using client-go
...
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com >
2020-04-29 12:52:56 -07:00
Ahmet Alp Balkan
4bbe0fad79
deprecation msgs for KUBECTX_CURRENT_{BG,FG}COLOR
...
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com >
2020-04-29 12:52:56 -07:00
Ahmet Alp Balkan
fc2e1c6b08
Fix bug about where cur ns was stored in yaml
...
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com >
2020-04-29 12:52:56 -07:00
Ahmet Alp Balkan
2915103e3d
kubens: implement namespace switching
...
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com >
2020-04-29 12:52:56 -07:00
Ahmet Alp Balkan
de2867a622
Implement list (via exec kubectl), clearer color settings
...
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com >
2020-04-29 12:52:56 -07:00
Ahmet Alp Balkan
c4252b5795
Move kubeconfig loader utils to cmdutil pkg
...
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com >
2020-04-29 12:52:56 -07:00
Ahmet Alp Balkan
1982becb15
kubens: Start implementing stubs
...
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com >
2020-04-29 12:52:56 -07:00
Ahmet Alp Balkan
342d21683b
Create test utils for crafting kubeconfig strings
...
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com >
2020-04-29 12:52:56 -07:00
Ahmet Alp Balkan
62d8dad7d5
extract kubeconfig test utils to a type
...
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com >
2020-04-29 12:52:56 -07:00
Ahmet Alp Balkan
f4f558004a
Tidy up colors, help msgs, TODOs
...
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com >
2020-04-29 12:52:56 -07:00
Ahmet Alp Balkan
7598c4d4dd
Create printer pkg, fix color force enable/disable
...
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com >
2020-04-29 12:52:56 -07:00
Ahmet Alp Balkan
bef0a4cca7
Move kubeconfig utility to a shared pkg
...
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com >
2020-04-29 12:52:56 -07:00