Minor updates

This commit is contained in:
Daniel
2019-05-20 19:00:19 +10:00
parent d15da04101
commit 2c759b39e6
3 changed files with 4 additions and 7 deletions
+2 -3
View File
@@ -18,9 +18,8 @@ Add the following [build step](https://docs.drone.io/user-guide/pipeline/steps/)
server: https://10.0.0.20:6443 # K8s master node address
token:
from_secret: kubernetes_token # Service account token to a service account that can manage deployments
namespace: custom # [Optional] Custom namespace. (Defaults to `default`)
custom: string # [Optional] Available to be referenced in template rendering as PLUGIN_CUSTOM
master_alias: production # [Optional] Custom setting example. Available as PLUGIN_MASTER_ALIAS
namespace: custom # [Optional] Kubernetes namespace to use (defaults to `default`)
[example_custom_key]: string # [Optional, example] Any additional values you label here will be available for template interpolation (lower case key names only!)
```
## Deployment templates
+2 -2
View File
@@ -3,5 +3,5 @@
rm -rf build/kubano
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o build/kubano
docker build -t danielgormly/drone-plugin-kube:beta2 build
docker push danielgormly/drone-plugin-kube:beta2
docker build -t danielgormly/drone-plugin-kube build
docker push danielgormly/drone-plugin-kube
-2
View File
@@ -55,8 +55,6 @@ func (p Plugin) Exec() error {
ctx[key] = matches[2]
}
}
// TODO: Remove in first release
fmt.Printf("%#v", ctx)
// Grab template from filesystem
raw, err := ioutil.ReadFile(p.Template)
if err != nil {