kyn

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

README

kyn

Kubernetes YAML Namespace changer

Usage

Rename namespace for directory:

kyn --namespace acme ./yamls/ \
  | kubectl apply -f -

Rename for directory, for specific namespace:

kyn --namespace default=acme ./yamls/ \
  | kubectl apply -f -

Rename namespace in standard input:

cat kube.yaml | \
  kyn --namespace acme - | \
  kubectl apply -f -

Installation

go install github.com/cardil/kyn@latest

Or use directly (Go 1.17+):

go run github.com/cardil/kyn@latest \
  --namespace acme ./yamls/ | \
  kubectl apply -f -

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
cmd
pkg
cli
ns

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL