Skip to content

Commit f0ef792

Browse files
committed
chore: fix lint and update to dev-tools v1.15
1 parent acd2d41 commit f0ef792

File tree

14 files changed

+148
-150
lines changed

14 files changed

+148
-150
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# Make will use bash instead of sh
1919
SHELL := /usr/bin/env bash
2020

21-
DOCKER_TAG_VERSION_DEVELOPER_TOOLS := 1.10
21+
DOCKER_TAG_VERSION_DEVELOPER_TOOLS := 1.15
2222
DOCKER_IMAGE_DEVELOPER_TOOLS := cft/developer-tools
2323
REGISTRY_URL := gcr.io/cloud-foundation-cicd
2424
DOCKER_BIN ?= docker

build/int.cloudbuild.yaml

Lines changed: 36 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ steps:
2121
- 'TF_VAR_org_id=$_ORG_ID'
2222
- 'TF_VAR_folder_id=$_FOLDER_ID'
2323
- 'TF_VAR_billing_account=$_BILLING_ACCOUNT'
24-
- id: create all
24+
- id: create-all
2525
waitFor:
2626
- prepare
2727
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
2828
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do create']
2929
- id: init disable-client-cert
3030
waitFor:
31-
- prepare
31+
- create-all
3232
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
3333
args: ['/bin/bash', '-c', 'cft test run TestDisableClientCert --stage init --verbose --test-dir test/integration']
3434
- id: apply disable-client-cert
@@ -48,7 +48,7 @@ steps:
4848
args: ['/bin/bash', '-c', 'cft test run TestDisableClientCert --stage teardown --verbose --test-dir test/integration']
4949
- id: init shared-vpc-local
5050
waitFor:
51-
- create all
51+
- verify disable-client-cert
5252
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
5353
args: ['/bin/bash', '-c', 'cft test run TestSharedVPC --stage init --verbose --test-dir test/integration']
5454
- id: apply shared-vpc-local
@@ -68,7 +68,7 @@ steps:
6868
args: ['/bin/bash', '-c', 'cft test run TestSharedVPC --stage teardown --verbose --test-dir test/integration']
6969
- id: init safer-cluster-local
7070
waitFor:
71-
- create all
71+
- init shared-vpc-local
7272
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
7373
args: ['/bin/bash', '-c', 'cft test run TestSaferCluster --stage init --verbose']
7474
- id: apply safer-cluster-local
@@ -88,7 +88,7 @@ steps:
8888
args: ['/bin/bash', '-c', 'cft test run TestSaferCluster --stage destroy --verbose']
8989
- id: init simple-regional-local
9090
waitFor:
91-
- create all
91+
- init safer-cluster-local
9292
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
9393
args: ['/bin/bash', '-c', 'cft test run TestSimpleRegional --stage init --verbose']
9494
- id: apply simple-regional-local
@@ -108,7 +108,7 @@ steps:
108108
args: ['/bin/bash', '-c', 'cft test run TestSimpleRegional --stage teardown --verbose']
109109
- id: init simple-regional-private-local
110110
waitFor:
111-
- create all
111+
- init simple-regional-local
112112
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
113113
args: ['/bin/bash', '-c', 'cft test run TestSimpleRegionalPrivate --stage init --verbose']
114114
- id: apply simple-regional-private-local
@@ -128,7 +128,7 @@ steps:
128128
args: ['/bin/bash', '-c', 'cft test run TestSimpleRegionalPrivate --stage teardown --verbose']
129129
- id: init simple-regional-with-kubeconfig-local
130130
waitFor:
131-
- create all
131+
- init simple-regional-private-local
132132
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
133133
args: ['/bin/bash', '-c', 'cft test run TestSimpleRegionalWithKubeConfig --stage init --verbose']
134134
- id: apply simple-regional-with-kubeconfig-local
@@ -148,7 +148,8 @@ steps:
148148
args: ['/bin/bash', '-c', 'cft test run TestSimpleRegionalWithKubeConfig --stage teardown --verbose']
149149
- id: converge simple-regional-with-gateway-api-local
150150
waitFor:
151-
- create all
151+
- create-all
152+
- init disable-client-cert
152153
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
153154
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do converge simple-regional-with-gateway-api-local']
154155
- id: verify simple-regional-with-gateway-api-local
@@ -163,7 +164,7 @@ steps:
163164
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do destroy simple-regional-with-gateway-api-local']
164165
- id: init simple-regional-with-networking-local
165166
waitFor:
166-
- create all
167+
- init simple-regional-private-local
167168
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
168169
args: ['/bin/bash', '-c', 'cft test run TestSimpleRegionalWithNetworking --stage init --verbose']
169170
- id: apply simple-regional-with-networking-local
@@ -183,7 +184,7 @@ steps:
183184
args: ['/bin/bash', '-c', 'cft test run TestSimpleRegionalWithNetworking --stage teardown --verbose']
184185
- id: init simple-zonal-local
185186
waitFor:
186-
- create all
187+
- init simple-regional-with-networking-local
187188
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
188189
args: ['/bin/bash', '-c', 'cft test run TestSimpleZonal --stage init --verbose']
189190
- id: apply simple-zonal-local
@@ -203,7 +204,7 @@ steps:
203204
args: ['/bin/bash', '-c', 'cft test run TestSimpleZonal --stage teardown --verbose']
204205
- id: init simple-zonal-private-local
205206
waitFor:
206-
- create all
207+
- init simple-zonal-local
207208
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
208209
args: ['/bin/bash', '-c', 'cft test run TestSimpleZonalPrivate --stage init --verbose']
209210
- id: apply simple-zonal-private-local
@@ -223,7 +224,8 @@ steps:
223224
args: ['/bin/bash', '-c', 'cft test run TestSimpleZonalPrivate --stage teardown --verbose']
224225
- id: converge stub-domains-local
225226
waitFor:
226-
- create all
227+
- create-all
228+
- init disable-client-cert
227229
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
228230
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do converge stub-domains-local']
229231
- id: verify stub-domains-local
@@ -238,7 +240,8 @@ steps:
238240
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do destroy stub-domains-local']
239241
- id: converge upstream-nameservers-local
240242
waitFor:
241-
- create all
243+
- create-all
244+
- init disable-client-cert
242245
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
243246
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do converge upstream-nameservers-local']
244247
- id: verify upstream-nameservers-local
@@ -253,7 +256,8 @@ steps:
253256
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do destroy upstream-nameservers-local']
254257
- id: converge stub-domains-upstream-nameservers-local
255258
waitFor:
256-
- create all
259+
- create-all
260+
- init disable-client-cert
257261
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
258262
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do converge stub-domains-upstream-nameservers-local']
259263
- id: verify stub-domains-upstream-nameservers-local
@@ -268,7 +272,8 @@ steps:
268272
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do destroy stub-domains-upstream-nameservers-local']
269273
- id: converge workload-metadata-config-local
270274
waitFor:
271-
- create all
275+
- create-all
276+
- init disable-client-cert
272277
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
273278
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do converge workload-metadata-config-local']
274279
- id: verify workload-metadata-config-local
@@ -283,7 +288,7 @@ steps:
283288
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do destroy workload-metadata-config-local']
284289
- id: init beta-cluster
285290
waitFor:
286-
- prepare
291+
- init simple-zonal-private-local
287292
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
288293
args: ['/bin/bash', '-c', 'cft test run TestBetaCluster --stage init --verbose --test-dir test/integration']
289294
- id: apply beta-cluster
@@ -303,7 +308,7 @@ steps:
303308
args: ['/bin/bash', '-c', 'cft test run TestBetaCluster --stage teardown --verbose --test-dir test/integration']
304309
- id: init simple-windows-node-pool-local
305310
waitFor:
306-
- create all
311+
- init beta-cluster
307312
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
308313
args: ['/bin/bash', '-c', 'cft test run TestSimpleWindowsNodePool --stage init --verbose --test-dir test/integration']
309314
- id: apply simple-windows-node-pool-local
@@ -323,7 +328,7 @@ steps:
323328
args: ['/bin/bash', '-c', 'cft test run TestSimpleWindowsNodePool --stage teardown --verbose --test-dir test/integration']
324329
- id: init deploy-service-local
325330
waitFor:
326-
- create all
331+
- init simple-windows-node-pool-local
327332
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
328333
args: ['/bin/bash', '-c', 'cft test run TestDeployService --stage init --verbose']
329334
- id: apply deploy-service-local
@@ -343,7 +348,8 @@ steps:
343348
args: ['/bin/bash', '-c', 'cft test run TestDeployService --stage destroy --verbose']
344349
- id: converge node-pool-local
345350
waitFor:
346-
- create all
351+
- create-all
352+
- init disable-client-cert
347353
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
348354
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do converge node-pool-local']
349355
- id: verify node-pool-local
@@ -358,7 +364,7 @@ steps:
358364
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do destroy node-pool-local']
359365
- id: init sandbox-enabled-local
360366
waitFor:
361-
- create all
367+
- init deploy-service-local
362368
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
363369
args: ['/bin/bash', '-c', 'cft test run TestSandboxEnabled --stage init --verbose']
364370
- id: apply sandbox-enabled-local
@@ -378,7 +384,8 @@ steps:
378384
args: ['/bin/bash', '-c', 'cft test run TestSandboxEnabled --stage destroy --verbose']
379385
- id: converge workload-identity-local
380386
waitFor:
381-
- create all
387+
- create-all
388+
- init disable-client-cert
382389
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
383390
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do converge workload-identity-local']
384391
- id: verify workload-identity-local
@@ -393,7 +400,8 @@ steps:
393400
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do destroy workload-identity-local']
394401
- id: converge safer-cluster-iap-bastion-local
395402
waitFor:
396-
- create all
403+
- create-all
404+
- init disable-client-cert
397405
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
398406
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do converge safer-cluster-iap-bastion-local']
399407
- id: verify safer-cluster-iap-bastion-local
@@ -408,7 +416,7 @@ steps:
408416
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do destroy safer-cluster-iap-bastion-local']
409417
- id: init simple-zonal-with-asm-local
410418
waitFor:
411-
- create all
419+
- init sandbox-enabled-local
412420
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
413421
args: ['/bin/bash', '-c', 'cft test run TestSimpleZonalWithASM --stage init --verbose']
414422
- id: apply simple-zonal-with-asm-local
@@ -428,7 +436,7 @@ steps:
428436
args: ['/bin/bash', '-c', 'cft test run TestSimpleZonalWithASM --stage teardown --verbose']
429437
- id: init simple-autopilot-private-local
430438
waitFor:
431-
- create all
439+
- init simple-zonal-with-asm-local
432440
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
433441
args: ['/bin/bash', '-c', 'cft test run TestSimpleAutopilotPrivate --stage init --verbose']
434442
- id: apply simple-autopilot-private-local
@@ -448,7 +456,7 @@ steps:
448456
args: ['/bin/bash', '-c', 'cft test run TestSimpleAutopilotPrivate --stage teardown --verbose']
449457
- id: init simple-autopilot-public-local
450458
waitFor:
451-
- create all
459+
- init simple-autopilot-private-local
452460
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
453461
args: ['/bin/bash', '-c', 'cft test run TestSimpleAutopilotPublic --stage init --verbose']
454462
- id: apply simple-autopilot-public-local
@@ -468,7 +476,7 @@ steps:
468476
args: ['/bin/bash', '-c', 'cft test run TestSimpleAutopilotPublic --stage teardown --verbose']
469477
- id: init private-zonal-with-networking
470478
waitFor:
471-
- prepare
479+
- init simple-autopilot-public-local
472480
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
473481
args: ['/bin/bash', '-c', 'cft test run TestPrivateZonalWithNetworking --stage init --verbose --test-dir test/integration']
474482
- id: apply private-zonal-with-networking
@@ -488,7 +496,7 @@ steps:
488496
args: ['/bin/bash', '-c', 'cft test run TestPrivateZonalWithNetworking --stage teardown --verbose --test-dir test/integration']
489497
- id: init simple-autopilot-private-non-default-sa
490498
waitFor:
491-
- prepare
499+
- init private-zonal-with-networking
492500
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
493501
args: ['/bin/bash', '-c', 'cft test run TestSimpleAutopilotPrivateNonDefaultSA --stage init --verbose']
494502
- id: apply simple-autopilot-private-non-default-sa
@@ -511,6 +519,6 @@ tags:
511519
- 'integration'
512520
substitutions:
513521
_DOCKER_IMAGE_DEVELOPER_TOOLS: 'cft/developer-tools'
514-
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '1.10'
522+
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '1.15'
515523
options:
516524
machineType: 'N1_HIGHCPU_8'

build/lint.cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ tags:
2222
- 'lint'
2323
substitutions:
2424
_DOCKER_IMAGE_DEVELOPER_TOOLS: 'cft/developer-tools'
25-
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '1.10'
25+
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '1.15'
2626
options:
2727
machineType: 'N1_HIGHCPU_8'
2828
env:

examples/safer_cluster_iap_bastion/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@ To deploy this example:
7171
| router\_name | Name of the router that was created |
7272
| subnet\_name | The name of the VPC subnet being created |
7373

74-
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
74+
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

examples/simple_regional_private_beta/README.md

Lines changed: 22 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,45 +2,42 @@
22

33
This example illustrates how to create a simple private cluster with beta features.
44

5-
[^]: (autogen_docs_start)
6-
5+
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
76
## Inputs
87

98
| Name | Description | Type | Default | Required |
10-
|------|-------------|:----:|:-----:|:-----:|
11-
| cloudrun | Boolean to enable / disable CloudRun | string | `"true"` | no |
12-
| cluster\_name\_suffix | A suffix to append to the default cluster name | string | `""` | no |
13-
| compute\_engine\_service\_account | Service account to associate to the nodes in the cluster | string | n/a | yes |
14-
| credentials\_path | The path to the GCP credentials JSON file | string | n/a | yes |
15-
| ip\_range\_pods | The secondary ip range to use for pods | string | n/a | yes |
16-
| ip\_range\_services | The secondary ip range to use for pods | string | n/a | yes |
17-
| istio | Boolean to enable / disable Istio | string | `"true"` | no |
18-
| network | The VPC network to host the cluster in | string | n/a | yes |
19-
| project\_id | The project ID to host the cluster in | string | n/a | yes |
20-
| region | The region to host the cluster in | string | n/a | yes |
21-
| subnetwork | The subnetwork to host the cluster in | string | n/a | yes |
9+
|------|-------------|------|---------|:--------:|
10+
| cluster\_name\_suffix | A suffix to append to the default cluster name | `string` | `""` | no |
11+
| compute\_engine\_service\_account | Service account to associate to the nodes in the cluster | `any` | n/a | yes |
12+
| dns\_cache | Boolean to enable / disable NodeLocal DNSCache | `bool` | `false` | no |
13+
| gce\_pd\_csi\_driver | (Beta) Whether this cluster should enable the Google Compute Engine Persistent Disk Container Storage Interface (CSI) Driver. | `bool` | `false` | no |
14+
| ip\_range\_pods | The secondary ip range to use for pods | `any` | n/a | yes |
15+
| ip\_range\_services | The secondary ip range to use for services | `any` | n/a | yes |
16+
| network | The VPC network to host the cluster in | `any` | n/a | yes |
17+
| project\_id | The project ID to host the cluster in | `any` | n/a | yes |
18+
| region | The region to host the cluster in | `any` | n/a | yes |
19+
| subnetwork | The subnetwork to host the cluster in | `any` | n/a | yes |
2220

2321
## Outputs
2422

2523
| Name | Description |
2624
|------|-------------|
27-
| ca\_certificate | |
28-
| client\_token | |
25+
| ca\_certificate | n/a |
26+
| client\_token | n/a |
2927
| cluster\_name | Cluster name |
30-
| credentials\_path | |
3128
| ip\_range\_pods | The secondary IP range used for pods |
3229
| ip\_range\_services | The secondary IP range used for services |
33-
| kubernetes\_endpoint | |
34-
| location | |
30+
| kubernetes\_endpoint | n/a |
31+
| location | n/a |
3532
| master\_kubernetes\_version | The master Kubernetes version |
36-
| network | |
37-
| project\_id | |
38-
| region | |
39-
| service\_account | The service account to default running nodes as if not overridden in `node_pools`. |
40-
| subnetwork | |
33+
| network | n/a |
34+
| project\_id | n/a |
35+
| region | n/a |
36+
| service\_account | The default service account used for running nodes. |
37+
| subnetwork | n/a |
4138
| zones | List of zones in which the cluster resides |
4239

43-
[^]: (autogen_docs_end)
40+
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
4441

4542
To provision this example, run the following from within this directory:
4643
- `terraform init` to get the plugins

0 commit comments

Comments
 (0)