A simple Drone plugin for updating Kubernetes resources from yaml templates. Follows from vallard/drone-kube. The plugin will create a resource if it doesn't already exist i.e. behaves similar to kubectl apply
. This plugin supports deployments, configmaps, ingresses, and services.
Usage: See drone.md
See example/Role.yaml, example/ServiceAccount.yaml, example/RoleBinding.yaml.
- The watching process is not currently reliable i.e. it doesn't properly wait for new deployments to become live. Not entirely sure how this should behave but I think behind a flag would make sense. PRs welcome.
- kubernetes/client-go installation notes
- Creating a Drone plugin in Go
- Client-go API Docs @ godoc.org
- Testing with minikube (OSX:
brew cask install minikube
)