jeessy2 / drone-plugin-kube

Drone CI plugin for creating & updating K8s Deployments, ConfigMaps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Acknowledgements

  • @vallard for the original plugin
  • @jbonzo for ingress, service support, improved error handling etc

About

Drone CI plugin for creating & updating K8s Deployments, ConfigMaps


Languages

Language:Go 90.7%Language:Shell 8.9%Language:Dockerfile 0.4%