Skip to content

BlackMetalz/ChgK8sCtx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChgK8sCtx

Change K8S Context, a clone idea of kubectx and kubens for learning purpose.

Flat structure:

  • My project is fucking small
  • No need to make it complex or fancy LOL

Feature

  • make it works with idea of Kubectx and Kubens

Usage

NOTE: You can see some print duplicate in previous ( showing triple line). It is fixed in v0.0.4 xD

  • Change context with selection

change context

  • Change context with fuzzy selection xD

change context fuzzy

  • Change context to previous context

change context previous

Build

Tested with go version go1.25.0 darwin/arm64

go mod tidy
go build -o kctx .

Run Unit Test

go test -v ./...

Install from release

Ubuntu/Linux (amd64)

curl -sL https://github.com/BlackMetalz/ChgK8sCtx/releases/latest/download/kctx-linux-amd64 -o /tmp/kctx && chmod +x /tmp/kctx && sudo mv /tmp/kctx /usr/local/bin/kctx && kctx -v

macOS (Apple Silicon)

curl -sL https://github.com/BlackMetalz/ChgK8sCtx/releases/latest/download/kctx-darwin-arm64 -o /tmp/kctx && chmod +x /tmp/kctx && sudo mv /tmp/kctx /usr/local/bin/kctx && kctx -v

About

Holy fucking GO

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages