Skip to content
Permalink
Branch: master
Commits on May 9, 2019
  1. Add shields.io badges

    ahmetb committed May 9, 2019
Commits on Apr 4, 2019
  1. kubectx rename check if old_name is a valid ctx (#139)

    ahmetb committed Apr 4, 2019
    Without this safeguard, when user runs `kubectx NEW_NAME=OLD_NAME` where
    NEW_NAME is an existing context but OLD_NAME isn't, we end up deleting NEW_NAME
    and not doing any renames (because OLD_NAME is not found).
    
    Fixes #136.
    
    Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
Commits on Feb 6, 2019
  1. Update README.md

    ahmetb committed Feb 6, 2019
Commits on Jan 28, 2019
  1. v0.6.3

    ahmetb committed Jan 28, 2019
    - FIX: Show current context/ns color in interactive (fzf) mode. (#109)
    - TEST: Add integration tests for kubectx (#111, #113) and kubens (#105, #117)
    
    Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
Commits on Dec 29, 2018
  1. Show color in interactive mode (#109)

    ahmetb committed Dec 29, 2018
    This patch introduces an internal _KUBECTX_FORCE_COLOR environment variable
    that overrides color output decision.
    
    With this, fzf output shows the color indicators for ctx/ns and choosing the
    option with the color works without any extra handling.
    
    Fixes #89.
    Fixes #98.
Commits on Dec 22, 2018
  1. test: enable travis-ci with bats (#108)

    ahmetb committed Dec 22, 2018
    - add .travis.yml.
    - move bats fixtures to .bats extension, since it allows detection of test
    files automatically by file extension.
    - use BATS_TEST_DIRNAME variable to compute location of COMMAND.
    - IMPORTANT: use `echo "$output">&2` before final check so that we can debug
      the test cases by their output
    
    Ref #2.
    
    Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
Commits on Nov 26, 2018
  1. Release v0.6.2

    ahmetb committed Nov 26, 2018
Commits on Oct 22, 2018
  1. Adding dependency checker for kubectx and kubens (#92)

    ahmetb committed Oct 22, 2018
    Ensure kubectl in PATH for kubectx and kubens.
Commits on Oct 17, 2018
  1. Update README.md

    ahmetb committed Oct 17, 2018
  2. Add ga-beacon

    ahmetb committed Oct 17, 2018
Commits on Sep 5, 2018
  1. README: fix typo in ln cmd for zsh comp

    ahmetb committed Sep 5, 2018
    Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
Commits on Aug 31, 2018
  1. zsh: fix kubectx completion for 2+ contexts (#81)

    ahmetb committed Aug 31, 2018
    fixes #68
    
    Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
Commits on Aug 24, 2018
  1. Release v0.6.1

    ahmetb committed Aug 24, 2018
    - 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)
  2. fix: --with-short-names not compatible with fzf (#79)

    ahmetb committed Aug 24, 2018
    When kubectx is installed as kctx, FZF_DEFAULT_COMMAND=kubectx won't work.
    
    Fixes #78.
    
    Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
Commits on Aug 23, 2018
  1. Release v0.6.0

    ahmetb committed Aug 23, 2018
    - 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)
Commits on Aug 22, 2018
  1. add support for interactive selection with fzf (#74)

    ahmetb committed Aug 22, 2018
    Present a fuzzy search choice in "kubectx" and "kubens" commands without
    arguments.
    
    ![demo2](https://user-images.githubusercontent.com/159209/44478683-40f16d00-a5f3-11e8-99e2-f32f2a3539c1.gif)
    
    Fixes #71.
  2. ignore errors from tput (to fix TERM=vt100) (#73)

    ahmetb committed Aug 22, 2018
    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>
Commits on Aug 6, 2018
  1. Release v0.5.1

    ahmetb committed Aug 6, 2018
  2. add note about NO_COLOR

    ahmetb committed Aug 6, 2018
Commits on Jul 20, 2018
  1. Merge pull request #64 from idvoretskyi/patch-1

    ahmetb committed Jul 20, 2018
    Debian package installation information added
Commits on Jun 10, 2018
  1. Respect $NO_COLOR

    ahmetb committed Jun 10, 2018
    Fixes #54.
    
    Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
Commits on Jun 7, 2018
  1. Merge pull request #53 from prabhu43/master

    ahmetb committed Jun 7, 2018
     Configure highlight color for current context & namespace
Commits on May 25, 2018
  1. Merge pull request #46 from uesteibar/delete-multiple-contexts

    ahmetb committed May 25, 2018
    Allow deleting multiple contexts at once
Commits on May 23, 2018
  1. Merge pull request #48 from xnaveira/portable

    ahmetb committed May 23, 2018
    Make the scripts portable
Commits on Apr 28, 2018
  1. Merge pull request #44 from fiws/patch-1

    ahmetb committed Apr 28, 2018
    add Arch AUR note to the readme
Commits on Apr 17, 2018
  1. Merge pull request #41 from ahmetb/tty_check

    ahmetb committed Apr 17, 2018
    Do not print colors if stdout isn't tty
Commits on Apr 11, 2018
  1. Do not print colors if stdout isn't tty

    ahmetb committed Apr 11, 2018
    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>
Commits on Apr 10, 2018
  1. Fix readme.md

    ahmetb committed Apr 10, 2018
    Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
Commits on Apr 9, 2018
  1. Merge pull request #38 from ahmetb/delete-context

    ahmetb committed Apr 9, 2018
    Prototype context deletion (kubectx -d)
Commits on Apr 4, 2018
  1. Prototype context deletion (kubectx -d)

    ahmetb committed Apr 4, 2018
    Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
  2. Update -h message in README.md

    ahmetb committed Apr 4, 2018
    Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
  3. Merge pull request #37 from jvassev/fix-kubens

    ahmetb committed Apr 4, 2018
    Allow for '/' in context name
Commits on Apr 3, 2018
  1. Support "kubectx NAME=." to rename current-context

    ahmetb committed Apr 3, 2018
    Fixes #24.
    
    Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
Older
You can’t perform that action at this time.