kcpcl

command module
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

README

kcpcl

CLI tool and consumable library that supports download and upload operations which download objects from a k8s cluster into a local directory and upload objects from that local directory into a target k8s cluster.

Useful to load "test" clusters with "real" world cluster objects with minimal latency.

Usage

End user
  1. Install: go install github.com/elankath/kcpcl
  2. See help: kcpcl -h
Developer

Use the Makefile targets

  1. See Available Make Targets: make help
  2. GARDNER CLUSTERS: Generate viewer kubeconfigs for a cluster: make genkubeconfig
    1. Requres LANDSCAPE, PROJECT and SHOOT env variables to be set.
    2. This creates viewer kubeconfigs for a cluster and downloads them into the gen folder.
  3. Build Binary: make build
  4. Execute Download: ./bin/kcpcl -k gen/<cluster-name>.yaml -d /tmp/<cluster-name>
    1. Uses a default list of GVR that allow the kube-scheduler to successfully assign pods to nodes.
    2. Example: ./bin/kcpcl download -k gen/garden-i034796--aw-external.yaml -d /tmp/aw
  5. Execute Upload: ./bin/kcpcl -k gen/<cluster-name>.yaml -d /tmp/<cluster-name>
    1. Example: ./bin/kcpcl upload -k /tmp/kvcl.yaml -d /tmp/aw #Using virtual cluster from https://github.com/unmarshall/kvcl

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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