Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
morgante committed Jul 8, 2021
1 parent 71906ec commit e051555
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 25 deletions.
14 changes: 7 additions & 7 deletions examples/simple_zonal_with_acm/acm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
*/

module "acm" {
source = "../../modules/acm"
project_id = var.project_id
location = module.gke.location
cluster_name = module.gke.name
source = "../../modules/acm"
project_id = var.project_id
location = module.gke.location
cluster_name = module.gke.name

sync_repo = "[email protected]:GoogleCloudPlatform/csp-config-management.git"
sync_branch = "1.0.0"
policy_dir = "foo-corp"
sync_repo = "[email protected]:GoogleCloudPlatform/csp-config-management.git"
sync_branch = "1.0.0"
policy_dir = "foo-corp"

secret_type = "ssh"
}
22 changes: 11 additions & 11 deletions examples/simple_zonal_with_acm/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,20 @@ provider "kubernetes" {
}

module "gke" {
source = "../../"
project_id = var.project_id
regional = false
region = var.region
zones = [var.zone]
source = "../../"
project_id = var.project_id
regional = false
region = var.region
zones = [var.zone]

name = "${local.cluster_type}-cluster${var.cluster_name_suffix}"
name = "${local.cluster_type}-cluster${var.cluster_name_suffix}"

network = google_compute_network.main.name
subnetwork = google_compute_subnetwork.main.name
ip_range_pods = google_compute_subnetwork.main.secondary_ip_range[0].range_name
ip_range_services = google_compute_subnetwork.main.secondary_ip_range[1].range_name
network = google_compute_network.main.name
subnetwork = google_compute_subnetwork.main.name
ip_range_pods = google_compute_subnetwork.main.secondary_ip_range[0].range_name
ip_range_services = google_compute_subnetwork.main.secondary_ip_range[1].range_name

service_account = "create"
service_account = "create"
node_pools = [
{
name = "acm-node-pool"
Expand Down
4 changes: 2 additions & 2 deletions examples/simple_zonal_with_acm/network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ resource "random_string" "suffix" {
}

resource "google_compute_network" "main" {
project = var.project_id
project = var.project_id
name = "cft-gke-test-${random_string.suffix.result}"
auto_create_subnetworks = false
}

resource "google_compute_subnetwork" "main" {
project = var.project_id
project = var.project_id
name = "cft-gke-test-${random_string.suffix.result}"
ip_cidr_range = "10.0.0.0/17"
region = var.region
Expand Down
6 changes: 3 additions & 3 deletions examples/simple_zonal_with_acm/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ output "client_token" {
}

output "ca_certificate" {
value = module.gke.ca_certificate
value = module.gke.ca_certificate
sensitive = true
}

Expand Down Expand Up @@ -54,11 +54,11 @@ output "cluster_name" {
}

output "network" {
value = google_compute_network.main.name
value = google_compute_network.main.name
}

output "subnetwork" {
value = google_compute_subnetwork.main.name
value = google_compute_subnetwork.main.name
}

output "location" {
Expand Down
4 changes: 2 additions & 2 deletions examples/simple_zonal_with_acm/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ variable "cluster_name_suffix" {

variable "region" {
description = "The region to host the cluster in"
default = "us-central1"
default = "us-central1"
}

variable "zone" {
type = string
description = "The zone to host the cluster in"
default = "us-central1-a"
default = "us-central1-a"
}

0 comments on commit e051555

Please sign in to comment.