apply-configmap

module
v0.0.0-...-fbe9cc8 Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: MPL-2.0

README

apply-configmap

This code builds a minimal binary of the lightweight kubernetes client and exposes it for manual testing. The intention is that the binary can be built and dropped into a Kube environment like this:

https://kubernetes.io/docs/tasks/debug-application-cluster/get-shell-running-container/

Then, commands can be run to test its API calls. The above commands are intended to be run inside an instance of minikube that has been started. After building this binary, place it in the container like this:

kubectl cp apply-configmap /shell-demo:/

At first you may get 403's, which can be resolved using this:

https://github.com/fabric8io/fabric8/issues/6840#issuecomment-307560275

Example calls:

./apply-configmap -namespace='default' -file=configmap.yaml

Demo

See the README in the hack directory.

References

This code was adapted from Hashicorp Vault. link

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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