Skip to content

Latest commit

 

History

History
57 lines (34 loc) · 1.84 KB

README.md

File metadata and controls

57 lines (34 loc) · 1.84 KB

kubectl-copi

GitHub Actions Workflow Status GitHub Release GitHub License

A kubectl extension to pick configuration options - copi for configuration PIcker.

Installation

With Krew

kubectl krew install --manifest-url https://raw.githubusercontent.com/worldline/kubectl-copi/main/krew-manifest.yaml

Manually

Get the appropriate binary from the latest release, and put it somewhere in your PATH so that kubectl can find it. More information on the Extend kubectl with plugin page.

Usage

Once installed, it can be invoked using kubectl copi:

Usage: kubectl-copi [COMMAND]

Commands:
  ctx   Pick a context from the kube config
  ns    Pick a namespace for the current context - Default command if none is specified
  help  Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version

Prerequisites

For some of the commands, you need to be logged in on the target cluster; this pluggin will use the current context in your ~/.kube/config file.

Building

This project aims at staying small and simple; for the moment the build process is cargo build.

cargo-watch is used for local development; use make pipeline to use it.

Contributing

All contributions are welcome, open an issue if you face any problem; open a PR if you want to make an improvement of spontaneously fix something.

TODO List

  • Generate Krew manifest along with the release
  • Windows & Mac support