mirror of
https://github.com/danielgormly/drone-plugin-kube.git
synced 2026-06-04 18:23:48 +08:00
0.1.0
drone-plugin-kube
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
Creating a Kubernetes service account for Drone
See example/Role.yaml, example/ServiceAccount.yaml, example/RoleBinding.yaml.
Usage notes:
- 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.
Development notes
- Kubernetes client is a little confusing with dependencies but does work with go.mod as seen here
- 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)
Acknowledgements
Description
Languages
Go
90.7%
Shell
8.9%
Dockerfile
0.4%