Robert James Hernandez
6c94248e98
Ensure kubectl in PATH for kubectx
2018-10-19 22:20:03 -07:00
Gianpaolo Macario
244dd5b8a5
kubens: Fix typo in comment ( #90 )
2018-10-17 09:04:46 -07:00
Ahmet Alp Balkan
121f15d1d3
Update README.md
2018-10-16 20:15:36 -07:00
Ahmet Alp Balkan
21a1e1e963
Add ga-beacon
2018-10-16 20:15:01 -07:00
Mitchell Turner
6811a5f03c
Added example of using bash completion ( #86 )
...
Added example using bash completion.
Example clones into `~/.kubectx` for people who don't want to make modifications outside of `$HOME`.
2018-09-16 23:31:35 -07:00
Ahmet Alp Balkan
41296a5fcf
README: fix typo in ln cmd for zsh comp
...
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-09-05 15:26:17 -07:00
schnatterer
34a9e100c8
README: Install completion for zsh & Linux ( #80 )
2018-09-04 15:59:34 -07:00
Ahmet Alp Balkan
365fa23d87
zsh: fix kubectx completion for 2+ contexts ( #81 )
...
fixes #68
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-08-31 15:40:26 -07:00
Oliver
ccc077b6c5
allow disabling interactive mode with fzf ( #82 )
...
Introduce KUBECTX_IGNORE_FZF for both kubectx/kubens to force-disable
attempt to enable interactive mode and lookup for fzf(1).
2018-08-31 15:39:43 -07:00
Ahmet Alp Balkan
d931779c0c
Release v0.6.1
...
- FIX: fix crash when kubectx/kubens is installed --with-short-names and fzf(1)
is in PATH, but calling the binaries with the wrong name. (#78 )
2018-08-24 09:28:10 -07:00
Ahmet Alp Balkan
f01719a5a6
fix: --with-short-names not compatible with fzf ( #79 )
...
When kubectx is installed as kctx, FZF_DEFAULT_COMMAND=kubectx won't work.
Fixes #78 .
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-08-24 09:28:00 -07:00
Ahmet Alp Balkan
46d593305a
Release v0.6.0
...
- FEATURE: interactive search mode when kubectx and kubens are ran without any
arguments and fzf(1) is detected in PATH. (#71 , #74 )
- FIX: kubectx -d now doesn't ignore arguments after the first argument. (#75 )
- FIX: empty output bug when TERM=vt100 even though NO_COLOR is set. (#57 , #73 )
- FIX: --help exits with code 0 now. (#69 , #72 )
2018-08-23 10:19:12 -07:00
Ahmet Alp Balkan
595c27ada7
fix: ignored args while deleting multiple clusters ( #76 )
...
Fixes #75 .
2018-08-23 10:17:42 -07:00
Ahmet Alp Balkan
8df92316d6
add support for interactive selection with fzf ( #74 )
...
Present a fuzzy search choice in "kubectx" and "kubens" commands without
arguments.

Fixes #71 .
2018-08-22 10:08:13 -07:00
Ahmet Alp Balkan
7b23263fc2
ignore errors from tput (to fix TERM=vt100) ( #73 )
...
Currently TERM=vt100 is causing kubectx failure since tput is returning
exitcode=1. vt100 does not have colors. Ignoring tput exit code.
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-08-22 09:50:34 -07:00
Vít Listík
e368d13eea
help exit status 0 ( #72 )
2018-08-19 16:40:47 -07:00
Ahmet Alp Balkan
7bc9a1277c
Release v0.5.1
2018-08-06 12:21:18 -07:00
Ahmet Alp Balkan
bc46739ab5
add note about NO_COLOR
2018-08-06 12:20:51 -07:00
Ahmet Alp Balkan
5a1366b7c9
Merge pull request #64 from idvoretskyi/patch-1
...
Debian package installation information added
2018-07-19 20:04:13 -07:00
Ihor Dvoretskyi
5144c0f958
Debian releases information added
...
Signed-off-by: Ihor Dvoretskyi <ihor@linux.com>
2018-07-19 23:03:25 +00:00
Ihor Dvoretskyi
11336883cb
Debian releases information added
...
Signed-off-by: Ihor Dvoretskyi <ihor@linux.com>
2018-07-19 23:00:17 +00:00
Ihor Dvoretskyi
b1324570ad
Debian releases information added
...
Signed-off-by: Ihor Dvoretskyi <ihor@linux.com>
2018-07-19 22:58:08 +00:00
Ihor Dvoretskyi
5f4160766d
Debian package installation information added
...
As the package is currently available for Debian Buster and Sid, the brief installation information added.
2018-07-18 22:53:09 +03:00
Ahmet Alp Balkan
c606382a62
Respect $NO_COLOR
...
Fixes #54 .
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-10 14:16:05 -07:00
Ahmet Alp Balkan
428fb0045c
Merge pull request #53 from prabhu43/master
...
Configure highlight color for current context & namespace
2018-06-07 12:27:45 -07:00
Prabhu Jayakumar
a97ab8367d
Update Readme
2018-06-08 00:35:45 +05:30
Prabhu Jayakumar
9beb1a1587
Configure highlight color for current context & namespace using environment variable
2018-06-05 23:29:08 +05:30
Prabhu Jayakumar
c23c2a9e29
Revert "Use * to indicate current context & current namespace"
...
This reverts commit dad48e5397
.
2018-05-30 00:32:23 +05:30
Prabhu Jayakumar
dad48e5397
Use * to indicate current context & current namespace
2018-05-28 23:03:03 +05:30
Ahmet Alp Balkan
e9fbafc923
Merge pull request #46 from uesteibar/delete-multiple-contexts
...
Allow deleting multiple contexts at once
2018-05-25 11:06:09 -07:00
Ahmet Alp Balkan
b7af607a91
Merge pull request #48 from xnaveira/portable
...
Make the scripts portable
2018-05-23 09:26:23 -07:00
Xavier Naveira
bcb89389c6
Make the scripts portable
2018-05-23 17:09:54 +02:00
uesteibar
4a1d73d5fe
Allow deleting multiple contexts at once
...
fixes #39
Example: `kubectx -d ctx1 ctx2`
2018-05-18 23:20:49 +02:00
Ahmet Alp Balkan
f986c148b2
Merge pull request #44 from fiws/patch-1
...
add Arch AUR note to the readme
2018-04-28 16:35:13 -07:00
Ahmet Alp Balkan
2799a9e331
Fix indentation to 80 chars, make title Arch Linux
2018-04-28 16:34:57 -07:00
Filip Weiss
d61654cb39
add Arch AUR note to the readme
2018-04-28 00:34:00 +02:00
Ahmet Alp Balkan
d1b69a995a
Merge pull request #41 from ahmetb/tty_check
...
Do not print colors if stdout isn't tty
2018-04-17 13:17:10 -07:00
Ahmet Alp Balkan
4520d3f54b
Do not print colors if stdout isn't tty
...
This is previously offered in #18 , #22 , and #27 and I previously rejected
these PRs. My rationale was to prevent scripting around kubectx as it is
meant to be used as an interactive tool.
But clearly that will be a problem, when you're doing operations like:
kubectx -d $(kubectx)
which I proposed in #39 . Plus this change is harmless. I think this
implementation does a better check than the previous ones.
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-04-10 21:53:14 -07:00
Ahmet Alp Balkan
d906013970
Fix readme.md
...
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-04-10 09:45:57 -07:00
Ahmet Alp Balkan
c4867bc1f2
Merge pull request #38 from ahmetb/delete-context
...
Prototype context deletion (kubectx -d)
2018-04-09 16:06:51 -07:00
Ahmet Alp Balkan
7b6528a4ae
Prototype context deletion (kubectx -d)
...
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-04-04 12:40:23 -07:00
Ahmet Alp Balkan
07583efe3d
Update -h message in README.md
...
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-04-04 12:32:37 -07:00
Ahmet Alp Balkan
cce04a3279
Merge pull request #37 from jvassev/fix-kubens
...
Allow for '/' in context name
2018-04-04 12:12:43 -07:00
Julian Vassev
d6f706a28e
Allow for '/' in context name
...
Also, fix `kubens -` which fails to save previous namespace
after 6610d70
2018-04-04 11:42:04 -07:00
Ahmet Alp Balkan
0141d66224
Support "kubectx NAME=." to rename current-context
...
Fixes #24 .
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-04-02 23:52:18 -07:00
Ahmet Alp Balkan
fbce3de6b9
Add overwriting to rename
...
rename now deletes the context (soft-delete, as in does not delete user or
cluster of the context) if the specified name exists.
Fixes #25 .
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-04-02 23:27:51 -07:00
Ahmet Alp Balkan
6610d70ca8
separate local declarations and function calls
...
Suggested by SC2155 (https://github.com/koalaman/shellcheck/wiki/SC2155 ).
It captures some of the errors from kubectl that were previously described
in #5 . However, this doesn't completely address that.
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-04-02 22:20:35 -07:00
Ahmet Alp Balkan
80336137bd
Merge pull request #32 from shiroyasha/installation-steps-linux
...
Example installation steps on Linux
2018-03-30 10:26:18 -07:00
Ahmet Alp Balkan
1c9b5c54e8
Merge pull request #33 from jonmosco/utils_bash
...
Incorporate utils.bash into each executable to help simplify packaging for Linux and other platforms. This adds to PR #32
2018-03-15 10:17:48 -07:00
Jon Mosco
b188f4da88
Incorporate utils.bash into each executable to help simplify packaging
...
for Linux and other platforms. This adds to PR #32
remove unused functions
2018-03-15 12:34:18 -04:00