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
See the README in the hack directory.
This code was adapted from Hashicorp Vault. link