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: README.md
+5-10Lines changed: 5 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -167,11 +167,12 @@ Before this module can be used on a project, you must ensure that the following
167
167
The [project factory](https://github.com/terraform-google-modules/terraform-google-project-factory) can be used to provision projects with the correct APIs active and the necessary Shared VPC connections.
Copy file name to clipboardExpand all lines: autogen/README.md
+20-22Lines changed: 20 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -166,18 +166,22 @@ Then perform the following commands on the root folder:
166
166
Before this module can be used on a project, you must ensure that the following pre-requisites are fulfilled:
167
167
168
168
1. Terraform and kubectl are [installed](#software-dependencies) on the machine where Terraform is executed.
169
-
2. The Service Account you execute the module with has the right [permissions](#iam-roles).
169
+
2. The Service Account you execute the module with has the right [permissions](#configure-a-service-account).
170
170
3. The Compute Engine and Kubernetes Engine APIs are [active](#enable-apis) on the project you will launch the cluster in.
171
171
4. If you are using a Shared VPC, the APIs must also be activated on the Shared VPC host project and your service account needs the proper permissions there.
172
172
173
173
The [project factory](https://github.com/terraform-google-modules/terraform-google-project-factory) can be used to provision projects with the correct APIs active and the necessary Shared VPC connections.
In order to execute this module you must have a Service Account with the
@@ -193,12 +197,6 @@ In order to operate with the Service Account you must activate the following API
193
197
- Compute Engine API - compute.googleapis.com
194
198
- Kubernetes Engine API - container.googleapis.com
195
199
196
-
## Install
197
-
198
-
### Terraform
199
-
Be sure you have the correct Terraform version (0.10.x), you can choose the binary here:
200
-
-https://releases.hashicorp.com/terraform/
201
-
202
200
## File structure
203
201
The project has the following folders and files:
204
202
@@ -237,23 +235,22 @@ Integration tests are run though [test-kitchen](https://github.com/test-kitchen/
237
235
238
236
Six test-kitchen instances are defined:
239
237
240
-
-`deploy_service`
241
-
-`node_pool`
242
-
-`shared_vpc`
243
-
-`simple_regional`
244
-
-`simple_zonal`
245
-
-`stub_domains`
238
+
-`deploy-service`
239
+
-`node-pool`
240
+
-`shared-vpc`
241
+
-`simple-regional`
242
+
-`simple-zonal`
243
+
-`stub-domains`
246
244
247
245
The test-kitchen instances in `test/fixtures/` wrap identically-named examples in the `examples/` directory.
248
246
249
247
#### Setup
250
248
251
249
1. Configure the [test fixtures](#test-configuration)
252
250
2. Download a Service Account key with the necessary permissions and put it in the module's root directory with the name `credentials.json`.
253
-
3. Build the Docker containers for testing:
251
+
3. Build the Docker container for testing:
254
252
255
253
```
256
-
make docker_build_terraform
257
254
make docker_build_kitchen_terraform
258
255
```
259
256
4. Run the testing container in interactive mode:
@@ -262,13 +259,14 @@ The test-kitchen instances in `test/fixtures/` wrap identically-named examples i
262
259
make docker_run
263
260
```
264
261
265
-
The module root directory will be loaded into the Docker container at `/cftk/workdir/`.
262
+
The module root directory will be loaded into the Docker container at `/cft/workdir/`.
266
263
5. Run kitchen-terraform to test the infrastructure:
267
264
268
265
1.`kitchen create` creates Terraform state and downloads modules, if applicable.
269
266
2.`kitchen converge` creates the underlying resources. Run `kitchen converge <INSTANCE_NAME>` to create resources for a specific test case.
270
-
3.`kitchen verify` tests the created infrastructure. Run `kitchen verify <INSTANCE_NAME>` to run a specific test case.
271
-
4.`kitchen destroy` tears down the underlying resources created by `kitchen converge`. Run `kitchen destroy <INSTANCE_NAME>` to tear down resources for a specific test case.
267
+
3. Run `kitchen converge` again. This is necessary due to an oddity in how `networkPolicyConfig` is handled by the upstream API. (See [#72](https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/issues/72) for details).
268
+
4.`kitchen verify` tests the created infrastructure. Run `kitchen verify <INSTANCE_NAME>` to run a specific test case.
269
+
5.`kitchen destroy` tears down the underlying resources created by `kitchen converge`. Run `kitchen destroy <INSTANCE_NAME>` to tear down resources for a specific test case.
272
270
273
271
Alternatively, you can simply run `make test_integration_docker` to run all the test steps non-interactively.
Copy file name to clipboardExpand all lines: modules/private-cluster/README.md
+17-22Lines changed: 17 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -163,18 +163,19 @@ Then perform the following commands on the root folder:
163
163
Before this module can be used on a project, you must ensure that the following pre-requisites are fulfilled:
164
164
165
165
1. Terraform and kubectl are [installed](#software-dependencies) on the machine where Terraform is executed.
166
-
2. The Service Account you execute the module with has the right [permissions](#iam-roles).
166
+
2. The Service Account you execute the module with has the right [permissions](#configure-a-service-account).
167
167
3. The Compute Engine and Kubernetes Engine APIs are [active](#enable-apis) on the project you will launch the cluster in.
168
168
4. If you are using a Shared VPC, the APIs must also be activated on the Shared VPC host project and your service account needs the proper permissions there.
169
169
170
170
The [project factory](https://github.com/terraform-google-modules/terraform-google-project-factory) can be used to provision projects with the correct APIs active and the necessary Shared VPC connections.
In order to execute this module you must have a Service Account with the
180
181
following project roles:
@@ -189,12 +190,6 @@ In order to operate with the Service Account you must activate the following API
189
190
- Compute Engine API - compute.googleapis.com
190
191
- Kubernetes Engine API - container.googleapis.com
191
192
192
-
## Install
193
-
194
-
### Terraform
195
-
Be sure you have the correct Terraform version (0.10.x), you can choose the binary here:
196
-
-https://releases.hashicorp.com/terraform/
197
-
198
193
## File structure
199
194
The project has the following folders and files:
200
195
@@ -233,23 +228,22 @@ Integration tests are run though [test-kitchen](https://github.com/test-kitchen/
233
228
234
229
Six test-kitchen instances are defined:
235
230
236
-
-`deploy_service`
237
-
-`node_pool`
238
-
-`shared_vpc`
239
-
-`simple_regional`
240
-
-`simple_zonal`
241
-
-`stub_domains`
231
+
-`deploy-service`
232
+
-`node-pool`
233
+
-`shared-vpc`
234
+
-`simple-regional`
235
+
-`simple-zonal`
236
+
-`stub-domains`
242
237
243
238
The test-kitchen instances in `test/fixtures/` wrap identically-named examples in the `examples/` directory.
244
239
245
240
#### Setup
246
241
247
242
1. Configure the [test fixtures](#test-configuration)
248
243
2. Download a Service Account key with the necessary permissions and put it in the module's root directory with the name `credentials.json`.
249
-
3. Build the Docker containers for testing:
244
+
3. Build the Docker container for testing:
250
245
251
246
```
252
-
make docker_build_terraform
253
247
make docker_build_kitchen_terraform
254
248
```
255
249
4. Run the testing container in interactive mode:
@@ -258,13 +252,14 @@ The test-kitchen instances in `test/fixtures/` wrap identically-named examples i
258
252
make docker_run
259
253
```
260
254
261
-
The module root directory will be loaded into the Docker container at `/cftk/workdir/`.
255
+
The module root directory will be loaded into the Docker container at `/cft/workdir/`.
262
256
5. Run kitchen-terraform to test the infrastructure:
263
257
264
258
1.`kitchen create` creates Terraform state and downloads modules, if applicable.
265
259
2.`kitchen converge` creates the underlying resources. Run `kitchen converge <INSTANCE_NAME>` to create resources for a specific test case.
266
-
3.`kitchen verify` tests the created infrastructure. Run `kitchen verify <INSTANCE_NAME>` to run a specific test case.
267
-
4.`kitchen destroy` tears down the underlying resources created by `kitchen converge`. Run `kitchen destroy <INSTANCE_NAME>` to tear down resources for a specific test case.
260
+
3. Run `kitchen converge` again. This is necessary due to an oddity in how `networkPolicyConfig` is handled by the upstream API. (See [#72](https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/issues/72) for details).
261
+
4.`kitchen verify` tests the created infrastructure. Run `kitchen verify <INSTANCE_NAME>` to run a specific test case.
262
+
5.`kitchen destroy` tears down the underlying resources created by `kitchen converge`. Run `kitchen destroy <INSTANCE_NAME>` to tear down resources for a specific test case.
268
263
269
264
Alternatively, you can simply run `make test_integration_docker` to run all the test steps non-interactively.
0 commit comments