Skip to content

Commit

Permalink
commit formatting changes from make generate
Browse files Browse the repository at this point in the history
  • Loading branch information
emalloy committed Feb 13, 2019
1 parent 41ea0d0 commit 9229f9d
Show file tree
Hide file tree
Showing 17 changed files with 23 additions and 30 deletions.
2 changes: 1 addition & 1 deletion auth.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ provider "kubernetes" {
host = "https://${local.cluster_endpoint}"
token = "${data.google_client_config.default.access_token}"
cluster_ca_certificate = "${base64decode(local.cluster_ca_certificate)}"
}
}
3 changes: 1 addition & 2 deletions cluster_regional.tf
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ resource "google_container_cluster" "primary" {
service_account = "${lookup(var.node_pools[0], "service_account", var.service_account)}"
}
}

remove_default_node_pool = "${var.remove_default_node_pool}"
}

Expand Down Expand Up @@ -156,4 +155,4 @@ resource "null_resource" "wait_for_regional_cluster" {
}

depends_on = ["google_container_cluster.primary", "google_container_node_pool.pools"]
}
}
3 changes: 1 addition & 2 deletions cluster_zonal.tf
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ resource "google_container_cluster" "zonal_primary" {
service_account = "${lookup(var.node_pools[0], "service_account", var.service_account)}"
}
}

remove_default_node_pool = "${var.remove_default_node_pool}"
}

Expand Down Expand Up @@ -156,4 +155,4 @@ resource "null_resource" "wait_for_zonal_cluster" {
}

depends_on = ["google_container_cluster.zonal_primary", "google_container_node_pool.zonal_pools"]
}
}
2 changes: 1 addition & 1 deletion dns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ EOF
}

depends_on = ["null_resource.delete_default_kube_dns_configmap", "data.google_client_config.default", "google_container_cluster.primary", "google_container_node_pool.pools", "google_container_cluster.zonal_primary", "google_container_node_pool.zonal_pools"]
}
}
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,4 @@ data "google_container_engine_versions" "region" {
provider = "google"
zone = "${data.google_compute_zones.available.names[0]}"
project = "${var.project_id}"
}
}
2 changes: 1 addition & 1 deletion masq.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ EOF
}

depends_on = ["data.google_client_config.default", "google_container_cluster.primary", "google_container_node_pool.pools", "google_container_cluster.zonal_primary", "google_container_node_pool.zonal_pools"]
}
}
2 changes: 1 addition & 1 deletion modules/private-cluster/auth.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ provider "kubernetes" {
host = "https://${local.cluster_endpoint}"
token = "${data.google_client_config.default.access_token}"
cluster_ca_certificate = "${base64decode(local.cluster_ca_certificate)}"
}
}
4 changes: 1 addition & 3 deletions modules/private-cluster/cluster_regional.tf
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,11 @@ resource "google_container_cluster" "primary" {
service_account = "${lookup(var.node_pools[0], "service_account", var.service_account)}"
}
}

private_cluster_config {
enable_private_endpoint = "${var.enable_private_endpoint}"
enable_private_nodes = "${var.enable_private_nodes}"
master_ipv4_cidr_block = "${var.master_ipv4_cidr_block}"
}

remove_default_node_pool = "${var.remove_default_node_pool}"
}

Expand Down Expand Up @@ -162,4 +160,4 @@ resource "null_resource" "wait_for_regional_cluster" {
}

depends_on = ["google_container_cluster.primary", "google_container_node_pool.pools"]
}
}
4 changes: 1 addition & 3 deletions modules/private-cluster/cluster_zonal.tf
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,11 @@ resource "google_container_cluster" "zonal_primary" {
service_account = "${lookup(var.node_pools[0], "service_account", var.service_account)}"
}
}

private_cluster_config {
enable_private_endpoint = "${var.enable_private_endpoint}"
enable_private_nodes = "${var.enable_private_nodes}"
master_ipv4_cidr_block = "${var.master_ipv4_cidr_block}"
}

remove_default_node_pool = "${var.remove_default_node_pool}"
}

Expand Down Expand Up @@ -162,4 +160,4 @@ resource "null_resource" "wait_for_zonal_cluster" {
}

depends_on = ["google_container_cluster.zonal_primary", "google_container_node_pool.zonal_pools"]
}
}
2 changes: 1 addition & 1 deletion modules/private-cluster/dns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ EOF
}

depends_on = ["null_resource.delete_default_kube_dns_configmap", "data.google_client_config.default", "google_container_cluster.primary", "google_container_node_pool.pools", "google_container_cluster.zonal_primary", "google_container_node_pool.zonal_pools"]
}
}
2 changes: 1 addition & 1 deletion modules/private-cluster/masq.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ EOF
}

depends_on = ["data.google_client_config.default", "google_container_cluster.primary", "google_container_node_pool.pools", "google_container_cluster.zonal_primary", "google_container_node_pool.zonal_pools"]
}
}
2 changes: 1 addition & 1 deletion modules/private-cluster/networks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ data "google_compute_subnetwork" "gke_subnetwork" {
name = "${var.subnetwork}"
region = "${var.region}"
project = "${local.network_project_id}"
}
}
2 changes: 1 addition & 1 deletion modules/private-cluster/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,4 @@ output "node_pools_names" {
output "node_pools_versions" {
description = "List of node pools versions"
value = "${local.cluster_node_pools_versions}"
}
}
15 changes: 7 additions & 8 deletions modules/private-cluster/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -220,18 +220,17 @@ variable "service_account" {
description = "The service account to default running nodes as if not overridden in `node_pools`. Defaults to the compute engine default service account"
default = ""
}

variable "enable_private_endpoint" {
description = "(Beta) Whether the master's internal IP address is used as the cluster endpoint"
default = false
description = "(Beta) Whether the master's internal IP address is used as the cluster endpoint"
default = false
}

variable "enable_private_nodes" {
description = "(Beta) Whether nodes have internal IP addresses only"
default = false
description = "(Beta) Whether nodes have internal IP addresses only"
default = false
}

variable "master_ipv4_cidr_block" {
description = "(Beta) The IP range in CIDR notation to use for the hosted master network"
default = "10.0.0.0/28"
}
description = "(Beta) The IP range in CIDR notation to use for the hosted master network"
default = "10.0.0.0/28"
}
2 changes: 1 addition & 1 deletion networks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ data "google_compute_subnetwork" "gke_subnetwork" {
name = "${var.subnetwork}"
region = "${var.region}"
project = "${local.network_project_id}"
}
}
2 changes: 1 addition & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,4 @@ output "node_pools_names" {
output "node_pools_versions" {
description = "List of node pools versions"
value = "${local.cluster_node_pools_versions}"
}
}
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -219,4 +219,4 @@ variable "monitoring_service" {
variable "service_account" {
description = "The service account to default running nodes as if not overridden in `node_pools`. Defaults to the compute engine default service account"
default = ""
}
}

0 comments on commit 9229f9d

Please sign in to comment.