Skip to content

Commit f84e838

Browse files
authored
fix: removing gcloud_skip_download variable (#712)
1 parent 2cb4fae commit f84e838

File tree

46 files changed

+34
-124
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+34
-124
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ Then perform the following commands on the root folder:
131131
| enable\_shielded\_nodes | Enable Shielded Nodes features on all nodes in this cluster | bool | `"true"` | no |
132132
| firewall\_inbound\_ports | List of TCP ports for admission/webhook controllers | list(string) | `<list>` | no |
133133
| firewall\_priority | Priority rule for firewall rules | number | `"1000"` | no |
134-
| gcloud\_skip\_download | Whether to skip downloading gcloud (assumes gcloud is already available outside the module) | bool | `"true"` | no |
135134
| gcloud\_upgrade | Whether to upgrade gcloud at runtime | bool | `"false"` | no |
136135
| grant\_registry\_access | Grants created cluster-specific service account storage.objectViewer role. | bool | `"false"` | no |
137136
| horizontal\_pod\_autoscaling | Enable horizontal pod autoscaling addon | bool | `"true"` | no |
@@ -252,6 +251,9 @@ The [project factory](https://github.com/terraform-google-modules/terraform-goog
252251
#### Terraform and Plugins
253252
- [Terraform](https://www.terraform.io/downloads.html) 0.12
254253
- [Terraform Provider for GCP][terraform-provider-google] v3.41
254+
#### gcloud
255+
Some submodules use the [terraform-google-gcloud](https://github.com/terraform-google-modules/terraform-google-gcloud) module. By default, this module assumes you already have gcloud installed in your $PATH.
256+
See the [module](https://github.com/terraform-google-modules/terraform-google-gcloud#downloading) documentation for more information.
255257

256258
### Configure a Service Account
257259
In order to execute this module you must have a Service Account with the

autogen/main/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,9 @@ The [project factory](https://github.com/terraform-google-modules/terraform-goog
213213
{% else %}
214214
- [Terraform Provider for GCP][terraform-provider-google] v3.41
215215
{% endif %}
216+
#### gcloud
217+
Some submodules use the [terraform-google-gcloud](https://github.com/terraform-google-modules/terraform-google-gcloud) module. By default, this module assumes you already have gcloud installed in your $PATH.
218+
See the [module](https://github.com/terraform-google-modules/terraform-google-gcloud#downloading) documentation for more information.
216219

217220
### Configure a Service Account
218221
In order to execute this module you must have a Service Account with the

autogen/main/cluster.tf.tmpl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,6 @@ module "gcloud_wait_for_cluster" {
538538
enabled = ! var.skip_provisioners
539539

540540
upgrade = var.gcloud_upgrade
541-
skip_download = var.gcloud_skip_download
542541

543542
create_cmd_entrypoint = "${path.module}/scripts/wait-for-cluster.sh"
544543
create_cmd_body = "${var.project_id} ${var.name}"

autogen/main/dns.tf.tmpl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ module "gcloud_delete_default_kube_dns_configmap" {
2727
cluster_location = google_container_cluster.primary.location
2828
project_id = var.project_id
2929
upgrade = var.gcloud_upgrade
30-
skip_download = var.gcloud_skip_download
3130

3231

3332
kubectl_create_command = "${path.module}/scripts/delete-default-resource.sh kube-system configmap kube-dns"

autogen/main/variables.tf.tmpl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -548,12 +548,6 @@ variable "gcloud_upgrade" {
548548
default = false
549549
}
550550

551-
variable "gcloud_skip_download" {
552-
type = bool
553-
description = "Whether to skip downloading gcloud (assumes gcloud is already available outside the module)"
554-
default = true
555-
}
556-
557551
{% if beta_cluster %}
558552
variable "disable_default_snat" {
559553
type = bool

cluster.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,7 @@ module "gcloud_wait_for_cluster" {
321321
version = "~> 2.0.2"
322322
enabled = ! var.skip_provisioners
323323

324-
upgrade = var.gcloud_upgrade
325-
skip_download = var.gcloud_skip_download
324+
upgrade = var.gcloud_upgrade
326325

327326
create_cmd_entrypoint = "${path.module}/scripts/wait-for-cluster.sh"
328327
create_cmd_body = "${var.project_id} ${var.name}"

dns.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ module "gcloud_delete_default_kube_dns_configmap" {
2727
cluster_location = google_container_cluster.primary.location
2828
project_id = var.project_id
2929
upgrade = var.gcloud_upgrade
30-
skip_download = var.gcloud_skip_download
3130

3231

3332
kubectl_create_command = "${path.module}/scripts/delete-default-resource.sh kube-system configmap kube-dns"

modules/acm/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ By default, this module will attempt to download the ACM operator from Google di
5757
| project\_id | GCP project_id used to reach cluster. | string | n/a | yes |
5858
| secret\_type | git authentication secret type, is passed through to ConfigManagement spec.git.secretType. Overriden to value 'ssh' if `create_ssh_key` is true | string | `"ssh"` | no |
5959
| service\_account\_key\_file | Path to service account key file to auth as for running `gcloud container clusters get-credentials`. | string | `""` | no |
60-
| skip\_gcloud\_download | Whether to skip downloading gcloud (assumes gcloud and kubectl already available outside the module) | bool | `"true"` | no |
6160
| source\_format | Configures a non-hierarchical repo if set to 'unstructured'. Uses [ACM defaults](https://cloud.google.com/anthos-config-management/docs/how-to/installing#configuring-config-management-operator) when unset. | string | `""` | no |
6261
| ssh\_auth\_key | Key for Git authentication. Overrides 'create_ssh_key' variable. Can be set using 'file(path/to/file)'-function. | string | `"null"` | no |
6362
| sync\_branch | ACM repo Git branch. If un-set, uses Config Management default. | string | `""` | no |

modules/acm/main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ module "acm_operator" {
3131
ssh_auth_key = var.ssh_auth_key
3232
enable_policy_controller = var.enable_policy_controller
3333
install_template_library = var.install_template_library
34-
skip_gcloud_download = var.skip_gcloud_download
3534
source_format = var.source_format
3635
hierarchy_controller = var.hierarchy_controller
3736
enable_log_denies = var.enable_log_denies

modules/acm/variables.tf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,6 @@ variable "install_template_library" {
8787
default = true
8888
}
8989

90-
variable "skip_gcloud_download" {
91-
description = "Whether to skip downloading gcloud (assumes gcloud and kubectl already available outside the module)"
92-
type = bool
93-
default = true
94-
}
95-
9690
variable "source_format" {
9791
description = "Configures a non-hierarchical repo if set to 'unstructured'. Uses [ACM defaults](https://cloud.google.com/anthos-config-management/docs/how-to/installing#configuring-config-management-operator) when unset."
9892
type = string

0 commit comments

Comments
 (0)