Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

1.2-alpha.2 – (recalled release)

Pre-release
Pre-release
Compare
Choose a tag to compare
@Mikulas Mikulas released this 02 Jul 07:25
· 30 commits to master since this release

This is a botched release with broken features, removed

Original content
  • removed dynamic watch mode introduced in alpha 1

    • The output was too wonky and the utility was minimal.
  • added support for KUBECONFIG env variable

    • Consists of two parts, separated by a colon (:). The first part sets path to kube config (defaults to $HOME/.kube/config). The other part overrides current context.
    • Example: KUBECONFIG="$PROJECT/kubecfg.yaml:prod" use context prod defined in custom config

Wrapper for kubectl-repl with context as inline parameter:

#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'

if [[ $# -ne 1 ]]; then
    echo "Usage: $0 context"
    exit 1
fi

CTX="$1"
export KUBECONFIG="$HOME/.kube/config:$CTX"
rlwrap kubectl-repl