jkevlin / apply-configmap

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

fabric8io/fabric8#6840 (comment)

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

About

License:Mozilla Public License 2.0


Languages

Language:Go 99.6%Language:Dockerfile 0.4%