Skip to content

Commit

Permalink
fix: lint updates for dev-tools v1.16
Browse files Browse the repository at this point in the history
  • Loading branch information
apeabody committed Sep 21, 2023
1 parent 6b927e5 commit 9f896ca
Show file tree
Hide file tree
Showing 27 changed files with 39 additions and 34 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# Make will use bash instead of sh
SHELL := /usr/bin/env bash

DOCKER_TAG_VERSION_DEVELOPER_TOOLS := 1.10
DOCKER_TAG_VERSION_DEVELOPER_TOOLS := 1.16
DOCKER_IMAGE_DEVELOPER_TOOLS := cft/developer-tools
REGISTRY_URL := gcr.io/cloud-foundation-cicd
DOCKER_BIN ?= docker
Expand Down
2 changes: 1 addition & 1 deletion autogen/main/main.tf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ locals {
cluster_endpoint_for_nodes = "${google_container_cluster.primary.endpoint}/32"
{% endif %}

cluster_output_master_auth = concat(google_container_cluster.primary.*.master_auth, [])
cluster_output_master_auth = concat(google_container_cluster.primary[*].master_auth, [])
cluster_output_master_version = google_container_cluster.primary.master_version
cluster_output_min_master_version = google_container_cluster.primary.min_master_version
cluster_output_logging_service = google_container_cluster.primary.logging_service
Expand Down
2 changes: 1 addition & 1 deletion autogen/main/sa.tf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
locals {
service_account_list = compact(
concat(
google_service_account.cluster_service_account.*.email,
google_service_account.cluster_service_account[*].email,
["dummy"],
),
)
Expand Down
17 changes: 11 additions & 6 deletions build/int.cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,19 @@ steps:
- 'TF_VAR_org_id=$_ORG_ID'
- 'TF_VAR_folder_id=$_FOLDER_ID'
- 'TF_VAR_billing_account=$_BILLING_ACCOUNT'
- id: create all
- id: init-all
waitFor:
- prepare
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
args: ['/bin/bash', '-c', 'cft test run all --stage init --verbose']
- id: create-all
waitFor:
- init-all
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do create']
- id: init disable-client-cert
waitFor:
- prepare
- create all
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
args: ['/bin/bash', '-c', 'cft test run TestDisableClientCert --stage init --verbose --test-dir test/integration']
- id: apply disable-client-cert
Expand Down Expand Up @@ -283,7 +288,7 @@ steps:
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do destroy workload-metadata-config-local']
- id: init beta-cluster
waitFor:
- prepare
- create all
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
args: ['/bin/bash', '-c', 'cft test run TestBetaCluster --stage init --verbose --test-dir test/integration']
- id: apply beta-cluster
Expand Down Expand Up @@ -468,7 +473,7 @@ steps:
args: ['/bin/bash', '-c', 'cft test run TestSimpleAutopilotPublic --stage teardown --verbose']
- id: init private-zonal-with-networking
waitFor:
- prepare
- create all
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
args: ['/bin/bash', '-c', 'cft test run TestPrivateZonalWithNetworking --stage init --verbose --test-dir test/integration']
- id: apply private-zonal-with-networking
Expand All @@ -488,7 +493,7 @@ steps:
args: ['/bin/bash', '-c', 'cft test run TestPrivateZonalWithNetworking --stage teardown --verbose --test-dir test/integration']
- id: init simple-autopilot-private-non-default-sa
waitFor:
- prepare
- create all
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
args: ['/bin/bash', '-c', 'cft test run TestSimpleAutopilotPrivateNonDefaultSA --stage init --verbose']
- id: apply simple-autopilot-private-non-default-sa
Expand All @@ -511,6 +516,6 @@ tags:
- 'integration'
substitutions:
_DOCKER_IMAGE_DEVELOPER_TOOLS: 'cft/developer-tools'
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '1.10'
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '1.16'
options:
machineType: 'N1_HIGHCPU_8'
2 changes: 1 addition & 1 deletion build/lint.cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ tags:
- 'lint'
substitutions:
_DOCKER_IMAGE_DEVELOPER_TOOLS: 'cft/developer-tools'
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '1.10'
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '1.16'
options:
machineType: 'N1_HIGHCPU_8'
env:
Expand Down
4 changes: 2 additions & 2 deletions examples/regional_private_node_pool_oauth_scopes/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ module "gke" {
regional = true
network = module.gke-network.network_name
subnetwork = module.gke-network.subnets_names[0]
ip_range_pods = module.gke-network.subnets_secondary_ranges[0].*.range_name[0]
ip_range_services = module.gke-network.subnets_secondary_ranges[0].*.range_name[1]
ip_range_pods = module.gke-network.subnets_secondary_ranges[0][*].range_name[0]
ip_range_services = module.gke-network.subnets_secondary_ranges[0][*].range_name[1]
enable_private_endpoint = true
enable_private_nodes = true
master_ipv4_cidr_block = "172.16.0.16/28"
Expand Down
4 changes: 2 additions & 2 deletions examples/safer_cluster_iap_bastion/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ module "gke" {
region = var.region
network = module.vpc.network_name
subnetwork = module.vpc.subnets_names[0]
ip_range_pods = module.vpc.subnets_secondary_ranges[0].*.range_name[0]
ip_range_services = module.vpc.subnets_secondary_ranges[0].*.range_name[1]
ip_range_pods = module.vpc.subnets_secondary_ranges[0][*].range_name[0]
ip_range_services = module.vpc.subnets_secondary_ranges[0][*].range_name[1]
enable_private_endpoint = false
master_authorized_networks = [{
cidr_block = "${module.bastion.ip_address}/32"
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ locals {
cluster_endpoint = google_container_cluster.primary.endpoint
cluster_endpoint_for_nodes = "${google_container_cluster.primary.endpoint}/32"

cluster_output_master_auth = concat(google_container_cluster.primary.*.master_auth, [])
cluster_output_master_auth = concat(google_container_cluster.primary[*].master_auth, [])
cluster_output_master_version = google_container_cluster.primary.master_version
cluster_output_min_master_version = google_container_cluster.primary.min_master_version
cluster_output_logging_service = google_container_cluster.primary.logging_service
Expand Down
2 changes: 1 addition & 1 deletion modules/beta-autopilot-private-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ locals {
cluster_peering_name = (var.enable_private_nodes && length(google_container_cluster.primary.private_cluster_config) > 0) ? google_container_cluster.primary.private_cluster_config[0].peering_name : null
cluster_endpoint_for_nodes = var.master_ipv4_cidr_block

cluster_output_master_auth = concat(google_container_cluster.primary.*.master_auth, [])
cluster_output_master_auth = concat(google_container_cluster.primary[*].master_auth, [])
cluster_output_master_version = google_container_cluster.primary.master_version
cluster_output_min_master_version = google_container_cluster.primary.min_master_version
cluster_output_logging_service = google_container_cluster.primary.logging_service
Expand Down
2 changes: 1 addition & 1 deletion modules/beta-autopilot-private-cluster/sa.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
locals {
service_account_list = compact(
concat(
google_service_account.cluster_service_account.*.email,
google_service_account.cluster_service_account[*].email,
["dummy"],
),
)
Expand Down
2 changes: 1 addition & 1 deletion modules/beta-autopilot-public-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ locals {
cluster_endpoint = google_container_cluster.primary.endpoint
cluster_endpoint_for_nodes = "${google_container_cluster.primary.endpoint}/32"

cluster_output_master_auth = concat(google_container_cluster.primary.*.master_auth, [])
cluster_output_master_auth = concat(google_container_cluster.primary[*].master_auth, [])
cluster_output_master_version = google_container_cluster.primary.master_version
cluster_output_min_master_version = google_container_cluster.primary.min_master_version
cluster_output_logging_service = google_container_cluster.primary.logging_service
Expand Down
2 changes: 1 addition & 1 deletion modules/beta-autopilot-public-cluster/sa.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
locals {
service_account_list = compact(
concat(
google_service_account.cluster_service_account.*.email,
google_service_account.cluster_service_account[*].email,
["dummy"],
),
)
Expand Down
2 changes: 1 addition & 1 deletion modules/beta-private-cluster-update-variant/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ locals {
cluster_peering_name = (var.enable_private_nodes && length(google_container_cluster.primary.private_cluster_config) > 0) ? google_container_cluster.primary.private_cluster_config[0].peering_name : null
cluster_endpoint_for_nodes = var.master_ipv4_cidr_block

cluster_output_master_auth = concat(google_container_cluster.primary.*.master_auth, [])
cluster_output_master_auth = concat(google_container_cluster.primary[*].master_auth, [])
cluster_output_master_version = google_container_cluster.primary.master_version
cluster_output_min_master_version = google_container_cluster.primary.min_master_version
cluster_output_logging_service = google_container_cluster.primary.logging_service
Expand Down
2 changes: 1 addition & 1 deletion modules/beta-private-cluster-update-variant/sa.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
locals {
service_account_list = compact(
concat(
google_service_account.cluster_service_account.*.email,
google_service_account.cluster_service_account[*].email,
["dummy"],
),
)
Expand Down
2 changes: 1 addition & 1 deletion modules/beta-private-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ locals {
cluster_peering_name = (var.enable_private_nodes && length(google_container_cluster.primary.private_cluster_config) > 0) ? google_container_cluster.primary.private_cluster_config[0].peering_name : null
cluster_endpoint_for_nodes = var.master_ipv4_cidr_block

cluster_output_master_auth = concat(google_container_cluster.primary.*.master_auth, [])
cluster_output_master_auth = concat(google_container_cluster.primary[*].master_auth, [])
cluster_output_master_version = google_container_cluster.primary.master_version
cluster_output_min_master_version = google_container_cluster.primary.min_master_version
cluster_output_logging_service = google_container_cluster.primary.logging_service
Expand Down
2 changes: 1 addition & 1 deletion modules/beta-private-cluster/sa.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
locals {
service_account_list = compact(
concat(
google_service_account.cluster_service_account.*.email,
google_service_account.cluster_service_account[*].email,
["dummy"],
),
)
Expand Down
2 changes: 1 addition & 1 deletion modules/beta-public-cluster-update-variant/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ locals {
cluster_endpoint = google_container_cluster.primary.endpoint
cluster_endpoint_for_nodes = "${google_container_cluster.primary.endpoint}/32"

cluster_output_master_auth = concat(google_container_cluster.primary.*.master_auth, [])
cluster_output_master_auth = concat(google_container_cluster.primary[*].master_auth, [])
cluster_output_master_version = google_container_cluster.primary.master_version
cluster_output_min_master_version = google_container_cluster.primary.min_master_version
cluster_output_logging_service = google_container_cluster.primary.logging_service
Expand Down
2 changes: 1 addition & 1 deletion modules/beta-public-cluster-update-variant/sa.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
locals {
service_account_list = compact(
concat(
google_service_account.cluster_service_account.*.email,
google_service_account.cluster_service_account[*].email,
["dummy"],
),
)
Expand Down
2 changes: 1 addition & 1 deletion modules/beta-public-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ locals {
cluster_endpoint = google_container_cluster.primary.endpoint
cluster_endpoint_for_nodes = "${google_container_cluster.primary.endpoint}/32"

cluster_output_master_auth = concat(google_container_cluster.primary.*.master_auth, [])
cluster_output_master_auth = concat(google_container_cluster.primary[*].master_auth, [])
cluster_output_master_version = google_container_cluster.primary.master_version
cluster_output_min_master_version = google_container_cluster.primary.min_master_version
cluster_output_logging_service = google_container_cluster.primary.logging_service
Expand Down
2 changes: 1 addition & 1 deletion modules/beta-public-cluster/sa.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
locals {
service_account_list = compact(
concat(
google_service_account.cluster_service_account.*.email,
google_service_account.cluster_service_account[*].email,
["dummy"],
),
)
Expand Down
2 changes: 1 addition & 1 deletion modules/private-cluster-update-variant/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ locals {
cluster_peering_name = (var.enable_private_nodes && length(google_container_cluster.primary.private_cluster_config) > 0) ? google_container_cluster.primary.private_cluster_config[0].peering_name : null
cluster_endpoint_for_nodes = var.master_ipv4_cidr_block

cluster_output_master_auth = concat(google_container_cluster.primary.*.master_auth, [])
cluster_output_master_auth = concat(google_container_cluster.primary[*].master_auth, [])
cluster_output_master_version = google_container_cluster.primary.master_version
cluster_output_min_master_version = google_container_cluster.primary.min_master_version
cluster_output_logging_service = google_container_cluster.primary.logging_service
Expand Down
2 changes: 1 addition & 1 deletion modules/private-cluster-update-variant/sa.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
locals {
service_account_list = compact(
concat(
google_service_account.cluster_service_account.*.email,
google_service_account.cluster_service_account[*].email,
["dummy"],
),
)
Expand Down
2 changes: 1 addition & 1 deletion modules/private-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ locals {
cluster_peering_name = (var.enable_private_nodes && length(google_container_cluster.primary.private_cluster_config) > 0) ? google_container_cluster.primary.private_cluster_config[0].peering_name : null
cluster_endpoint_for_nodes = var.master_ipv4_cidr_block

cluster_output_master_auth = concat(google_container_cluster.primary.*.master_auth, [])
cluster_output_master_auth = concat(google_container_cluster.primary[*].master_auth, [])
cluster_output_master_version = google_container_cluster.primary.master_version
cluster_output_min_master_version = google_container_cluster.primary.min_master_version
cluster_output_logging_service = google_container_cluster.primary.logging_service
Expand Down
2 changes: 1 addition & 1 deletion modules/private-cluster/sa.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
locals {
service_account_list = compact(
concat(
google_service_account.cluster_service_account.*.email,
google_service_account.cluster_service_account[*].email,
["dummy"],
),
)
Expand Down
2 changes: 1 addition & 1 deletion sa.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
locals {
service_account_list = compact(
concat(
google_service_account.cluster_service_account.*.email,
google_service_account.cluster_service_account[*].email,
["dummy"],
),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,4 +321,4 @@
"subnetwork": "cft-gke-test-qwc4",
"verticalPodAutoscaling": {},
"zone": "us-central1"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -328,4 +328,4 @@
"workloadPool": "PROJECT_ID.svc.id.goog"
},
"zone": "us-central1"
}
}

0 comments on commit 9f896ca

Please sign in to comment.