You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DOCS.md
+48Lines changed: 48 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -154,6 +154,30 @@ steps:
154
154
# ...
155
155
```
156
156
157
+
### `namespace`
158
+
159
+
_**type**_`string`
160
+
161
+
_**default**_`''`
162
+
163
+
_**description**_ name of Kubernetes Namespace where manifests will be applied
164
+
165
+
_**notes**_ if not specified, resources will be applied to `default` Namespace; if specified and [`create_namespace`](#create_namespace) is set to `false`, the Namespace resource must already exist within the cluster
166
+
167
+
_**example**_
168
+
169
+
```yaml
170
+
# .drone.yml
171
+
---
172
+
pipeline:
173
+
# ...
174
+
deploy:
175
+
image: nytimes/drone-gke
176
+
cluster: prod
177
+
namespace: petstore
178
+
# ...
179
+
```
180
+
157
181
### `template`
158
182
159
183
_**type**_`string`
@@ -511,6 +535,30 @@ steps:
511
535
# ...
512
536
```
513
537
538
+
### `create_namespace`
539
+
540
+
_**type**_`bool`
541
+
542
+
_**default**_`true`
543
+
544
+
_**description**_ automatically create a Namespace resource when a [`namespace`](#namespace) value is specified
545
+
546
+
_**notes**_ depends on non-empty `namespace` value; the resource will _always_ be applied to the cluster _prior to_ any resources included in [`template`](#template) / [`secret_template`](#secret_template); may modify any existing Namespace resource configuration; the automatically created Namespace resource is not configurable (see [source](https://github.com/nytimes/drone-gke/blob/2909135b2dce136aa5095d609d91b0963fbb4697/main.go#L51-L54) for more details);
547
+
548
+
_**example**_
549
+
550
+
```yaml
551
+
# .drone.yml
552
+
---
553
+
pipeline:
554
+
# ...
555
+
deploy:
556
+
image: nytimes/drone-gke
557
+
namespace: petstore
558
+
create_namespace: false
559
+
# ...
560
+
```
561
+
514
562
## Service Account Credentials
515
563
516
564
`drone-gke` requires a Google service account and uses its [JSON credential file][service-account] to authenticate.
0 commit comments