Skip to content

Commit 6037c26

Browse files
cloud-foundation-botJamesDuncanNzmorgante
authored
feat!: add Terraform 0.13 constraint and module attribution (#89)
* feat!: add Terraform 0.13 constraint and module attribution * Added GKE API and bumped versions * Regenerate docs Co-authored-by: James Duncan <jdun@google.com> Co-authored-by: Morgante Pell <morgantep@google.com>
1 parent 3fac16c commit 6037c26

File tree

20 files changed

+106
-73
lines changed

20 files changed

+106
-73
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 -O extglob
2020

21-
DOCKER_TAG_VERSION_DEVELOPER_TOOLS := 0.12.0
21+
DOCKER_TAG_VERSION_DEVELOPER_TOOLS := 0.13
2222
DOCKER_IMAGE_DEVELOPER_TOOLS := cft/developer-tools
2323
REGISTRY_URL := gcr.io/cloud-foundation-cicd
2424

README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -41,24 +41,24 @@ Setting it to `never` will *never* gcloud download and setting it to `always` wi
4141
## Inputs
4242

4343
| Name | Description | Type | Default | Required |
44-
|------|-------------|:----:|:-----:|:-----:|
45-
| additional\_components | Additional gcloud CLI components to install. Defaults to none. Valid value are components listed in `gcloud components list` | list | `<list>` | no |
46-
| create\_cmd\_body | On create, the command body you'd like to run with your entrypoint. | string | `"info"` | no |
47-
| create\_cmd\_entrypoint | On create, the command entrypoint you'd like to use. Can also be set to a custom script. Module's bin directory will be prepended to path. | string | `"gcloud"` | no |
48-
| create\_cmd\_triggers | List of any additional triggers for the create command execution. | map | `<map>` | no |
49-
| destroy\_cmd\_body | On destroy, the command body you'd like to run with your entrypoint. | string | `"info"` | no |
50-
| destroy\_cmd\_entrypoint | On destroy, the command entrypoint you'd like to use. Can also be set to a custom script. Module's bin directory will be prepended to path. | string | `"gcloud"` | no |
51-
| enabled | Flag to optionally disable usage of this module. | bool | `"true"` | no |
52-
| gcloud\_download\_url | Custom gcloud download url. Optional. | string | `""` | no |
53-
| gcloud\_sdk\_version | The gcloud sdk version to download. | string | `"281.0.0"` | no |
54-
| jq\_download\_url | Custom jq download url. Optional. | string | `""` | no |
55-
| jq\_version | The jq version to download. | string | `"1.6"` | no |
56-
| module\_depends\_on | List of modules or resources this module depends on. | list | `<list>` | no |
57-
| platform | Platform CLI will run on. Defaults to linux. Valid values: linux, darwin | string | `"linux"` | no |
58-
| service\_account\_key\_file | Path to service account key file to run `gcloud auth activate-service-account` with. Optional. | string | `""` | no |
59-
| skip\_download | Whether to skip downloading gcloud (assumes gcloud is already available outside the module) | bool | `"true"` | no |
60-
| upgrade | Whether to upgrade gcloud at runtime | bool | `"true"` | no |
61-
| use\_tf\_google\_credentials\_env\_var | Use GOOGLE_CREDENTIALS environment variable to run `gcloud auth activate-service-account` with. Optional. | string | `"false"` | no |
44+
|------|-------------|------|---------|:--------:|
45+
| additional\_components | Additional gcloud CLI components to install. Defaults to none. Valid value are components listed in `gcloud components list` | `list` | `[]` | no |
46+
| create\_cmd\_body | On create, the command body you'd like to run with your entrypoint. | `string` | `"info"` | no |
47+
| create\_cmd\_entrypoint | On create, the command entrypoint you'd like to use. Can also be set to a custom script. Module's bin directory will be prepended to path. | `string` | `"gcloud"` | no |
48+
| create\_cmd\_triggers | List of any additional triggers for the create command execution. | `map` | `{}` | no |
49+
| destroy\_cmd\_body | On destroy, the command body you'd like to run with your entrypoint. | `string` | `"info"` | no |
50+
| destroy\_cmd\_entrypoint | On destroy, the command entrypoint you'd like to use. Can also be set to a custom script. Module's bin directory will be prepended to path. | `string` | `"gcloud"` | no |
51+
| enabled | Flag to optionally disable usage of this module. | `bool` | `true` | no |
52+
| gcloud\_download\_url | Custom gcloud download url. Optional. | `string` | `""` | no |
53+
| gcloud\_sdk\_version | The gcloud sdk version to download. | `string` | `"281.0.0"` | no |
54+
| jq\_download\_url | Custom jq download url. Optional. | `string` | `""` | no |
55+
| jq\_version | The jq version to download. | `string` | `"1.6"` | no |
56+
| module\_depends\_on | List of modules or resources this module depends on. | `list` | `[]` | no |
57+
| platform | Platform CLI will run on. Defaults to linux. Valid values: linux, darwin | `string` | `"linux"` | no |
58+
| service\_account\_key\_file | Path to service account key file to run `gcloud auth activate-service-account` with. Optional. | `string` | `""` | no |
59+
| skip\_download | Whether to skip downloading gcloud (assumes gcloud is already available outside the module) | `bool` | `true` | no |
60+
| upgrade | Whether to upgrade gcloud at runtime | `bool` | `true` | no |
61+
| use\_tf\_google\_credentials\_env\_var | Use GOOGLE\_CREDENTIALS environment variable to run `gcloud auth activate-service-account` with. Optional. | `bool` | `false` | no |
6262

6363
## Outputs
6464

build/int.cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ tags:
5858
- 'integration'
5959
substitutions:
6060
_DOCKER_IMAGE_DEVELOPER_TOOLS: 'cft/developer-tools'
61-
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '0.12.0'
61+
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '0.13'

build/lint.cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ tags:
2323
- 'lint'
2424
substitutions:
2525
_DOCKER_IMAGE_DEVELOPER_TOOLS: 'cft/developer-tools'
26-
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '0.12.0'
26+
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '0.13'

examples/dependency_example/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
This example illustrates how to control the order of execution for scripts.
44

55
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
6+
## Inputs
7+
8+
No input.
9+
610
## Outputs
711

812
| Name | Description |

examples/kubectl_wrapper_example/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ This example illustrates how to use the kubectl submodule to deploy Kubernetes r
66
## Inputs
77

88
| Name | Description | Type | Default | Required |
9-
|------|-------------|:----:|:-----:|:-----:|
10-
| cluster\_name | The name for the GKE cluster | string | `"gke-on-vpc-cluster"` | no |
11-
| ip\_range\_pods\_name | The secondary ip range to use for pods | string | `"ip-range-pods"` | no |
12-
| ip\_range\_services\_name | The secondary ip range to use for services | string | `"ip-range-scv"` | no |
13-
| network | The VPC network created to host the cluster in | string | `"gke-network"` | no |
14-
| project\_id | The project ID to host the cluster in | string | n/a | yes |
15-
| region | The region to host the cluster in | string | `"us-central1"` | no |
16-
| subnetwork | The subnetwork created to host the cluster in | string | `"gke-subnet"` | no |
9+
|------|-------------|------|---------|:--------:|
10+
| cluster\_name | The name for the GKE cluster | `string` | `"gke-on-vpc-cluster"` | no |
11+
| ip\_range\_pods\_name | The secondary ip range to use for pods | `string` | `"ip-range-pods"` | no |
12+
| ip\_range\_services\_name | The secondary ip range to use for services | `string` | `"ip-range-scv"` | no |
13+
| network | The VPC network created to host the cluster in | `string` | `"gke-network"` | no |
14+
| project\_id | The project ID to host the cluster in | `any` | n/a | yes |
15+
| region | The region to host the cluster in | `string` | `"us-central1"` | no |
16+
| subnetwork | The subnetwork created to host the cluster in | `string` | `"gke-subnet"` | no |
1717

1818
## Outputs
1919

examples/kubectl_wrapper_example/main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
provider "google" {
18-
version = "~> 3.16.0"
18+
version = "~> 3.53"
1919
}
2020

2121
locals {
@@ -24,7 +24,7 @@ locals {
2424

2525
module "enabled_google_apis" {
2626
source = "terraform-google-modules/project-factory/google//modules/project_services"
27-
version = "~> 8.0"
27+
version = "~> 10.2"
2828

2929
project_id = var.project_id
3030
disable_services_on_destroy = false
@@ -39,7 +39,7 @@ module "enabled_google_apis" {
3939

4040
module "gcp-network" {
4141
source = "terraform-google-modules/network/google"
42-
version = "~> 2.0"
42+
version = "~> 3.0"
4343
project_id = module.enabled_google_apis.project_id
4444
network_name = var.network
4545

@@ -67,7 +67,7 @@ module "gcp-network" {
6767

6868
module "gke" {
6969
source = "terraform-google-modules/kubernetes-engine/google"
70-
version = "~> 9.0"
70+
version = "~> 14.0"
7171
project_id = module.enabled_google_apis.project_id
7272
name = var.cluster_name
7373
regional = true

examples/script_example/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@ This example illustrates how to use the `gcloud` module with a script
66
## Inputs
77

88
| Name | Description | Type | Default | Required |
9-
|------|-------------|:----:|:-----:|:-----:|
10-
| project\_id | The ID of the project in which to provision resources. | string | n/a | yes |
9+
|------|-------------|------|---------|:--------:|
10+
| project\_id | The ID of the project in which to provision resources. | `string` | n/a | yes |
11+
12+
## Outputs
13+
14+
No output.
1115

1216
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
1317

examples/script_example/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
provider "google" {
18-
version = "~> 2.0"
18+
version = "~> 3.53"
1919
}
2020

2121
module "cli" {

examples/simple_example/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ This example illustrates how to use the `gcloud` module.
66
## Inputs
77

88
| Name | Description | Type | Default | Required |
9-
|------|-------------|:----:|:-----:|:-----:|
10-
| project\_id | The ID of the project in which to provision resources. | string | n/a | yes |
9+
|------|-------------|------|---------|:--------:|
10+
| project\_id | The ID of the project in which to provision resources. | `string` | n/a | yes |
1111

1212
## Outputs
1313

0 commit comments

Comments
 (0)