diff --git a/README.md b/README.md index 9d0bcce..0e3d04d 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ See [example/Role.yaml](example/Role.yaml), [example/ServiceAccount.yaml](exampl ## Notes: -- The watching process after a deployment goes through is not super 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. +- 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](https://github.com/kubernetes/client-go/blob/master/INSTALL.md#add-client-go-as-a-dependency) @@ -29,3 +29,7 @@ See [example/Role.yaml](example/Role.yaml), [example/ServiceAccount.yaml](exampl - [Creating a Drone plugin in Go](https://docs.drone.io/plugins/tutorials/golang/) - [Client-go API Docs @ godoc.org](https://godoc.org/k8s.io/client-go/kubernetes) - Testing with minikube (OSX: `brew cask install minikube`) + +## Acknowledgements +- [@vallard](https://github.com/vallard) for the original plugin +- [@jbonzo](https://github.com/jbonzo) for ingress, service support, improved error handling etc diff --git a/build.sh b/build.sh old mode 100644 new mode 100755 index c024980..12c2be3 --- a/build.sh +++ b/build.sh @@ -5,5 +5,5 @@ set -eou pipefail rm -rf build/kubano GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o build/kubano -docker build -t danielgormly/drone-plugin-kube:0.0.2 build -docker push danielgormly/drone-plugin-kube:0.0.2 +docker build -t danielgormly/drone-plugin-kube:0.1.0 build +docker push danielgormly/drone-plugin-kube:0.1.0 diff --git a/drone.md b/drone.md index a31b32a..e9732b9 100644 --- a/drone.md +++ b/drone.md @@ -8,7 +8,7 @@ logo: kubernetes.svg image: danielgormly/drone-plugin-kube --- -Updates Kubernetes deployments from templates & configMaps from files. This plugin will either create or update existing resources dependent on their presence. It will wait for deployments before it progresses. Additional +Updates Kubernetes resources (deployments, ingresses, services, configmap - with binary data). This plugin will either create or update existing resources dependent on their presence. It will wait for deployments before it progresses. Create or update deployment @@ -48,6 +48,9 @@ ca server : https://10.0.0.20:6443 +namespace +: Namespace to deploy to + kubernetes_token : Kubernetes service account token (Not base64 encoded) diff --git a/test-config-map.sh b/test-config-map.sh index 0bf4ab3..b0323e2 100755 --- a/test-config-map.sh +++ b/test-config-map.sh @@ -4,6 +4,7 @@ export PLUGIN_TEMPLATE=test/configmap.template.yaml export PLUGIN_CONFIGMAP_FILE=test/sample-config-data export PLUGIN_NAME=drone-kube-test export PLUGIN_COMMIT=a5b81d0f +export PLUGIN_NAMESPACE=default go build -o build/kubano export $(cat .env | xargs) && ./build/kubano diff --git a/test-deployment.sh b/test-deployment.sh index 513f52a..efce31b 100755 --- a/test-deployment.sh +++ b/test-deployment.sh @@ -2,6 +2,7 @@ export PLUGIN_TEMPLATE=test/deployment.template.yaml export PLUGIN_NAME=drone-kube-test +export PLUGIN_NAMESPACE=default go build -o build/kubano export $(cat .env | xargs) && ./build/kubano