mirror of
https://github.com/danielgormly/drone-plugin-kube.git
synced 2026-06-04 10:14:53 +08:00
Minor updates to documentation, testing
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user