PoC to create a new k8s Job using the Golang API, making use of Init Containers.
# Kubernetes
brew cask install minikube
brew install docker-machine-driver-xhyve
brew install kubectl
minikube start --vm-driver=xhyve
eval $(minikube docker-env)
kubectl create -f ./namespace.yaml
# Dependency Management
brew install glide
glide up -v // AKA: glide update --strip-vendor
eval $(minikube docker-env)
go run main.go
- Switch from Glide to Dep when Kubernetes client-go supports it