Ahmet Alp Balkan
cd1849d8df
query namespace exists with GET Namespace
...
More efficient ns switches with kubens by querying only the namespace (instead
of listing all namespaces).
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com >
2020-05-31 15:23:02 -07:00
Ahmet Alp Balkan
0141ee19d2
handle ctxs with ':' in the name for windows ( #235 )
...
For windows, if the ctx name for kubens state file
contains a colon ':' (EKS), we replace it with __ (both while reading/writing).
It doesn't break existing users (as it didn't work in the first place).
Other characters remain unhandled, hoping it won't happen again.
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com >
2020-05-31 14:24:01 -07:00
Jason Harmon
401188fefd
Fix color output on Windows ( #220 )
2020-05-15 15:26:00 -07:00
Ahmet Alp Balkan
956d5953c2
kubens: fix interactive switch messages
...
Fixes #209 .
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com >
2020-04-30 07:36:21 -07:00
Curro Rodriguez
f2021bb08b
changed help in kubens, return had a typo ( #210 )
2020-04-30 07:34:06 -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
5348d7aa7e
kubens add a short-circuit to bypass API call for tests
...
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com >
2020-04-29 12:52:56 -07:00
Ahmet Alp Balkan
04689f571e
ns list: increase page size to 500
...
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com >
2020-04-29 12:52:56 -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
52bbf5c786
fix compile error
...
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
5b745727c3
Add interactive switching to kubens
...
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
6c3977d574
kubens: Add facility to store state file
...
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