Skip to content

Commit 2fe1715

Browse files
authored
fix: update policy-essentials hash 59f4695 using ref (#1659)
1 parent e522073 commit 2fe1715

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Diff for: examples/simple_zonal_with_acm/acm.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ module "acm" {
2828

2929
secret_type = "ssh"
3030

31-
policy_bundles = ["https://github.com/GoogleCloudPlatform/acm-policy-controller-library/bundles/policy-essentials-v2022#e4094aacb91a35b0219f6f4cf6a31580e85b3c28"]
31+
policy_bundles = ["https://github.com/GoogleCloudPlatform/acm-policy-controller-library/bundles/policy-essentials-v2022?ref=59f4695394285078f7c2029ec7d0f9ed1d6d700a"]
3232

3333
create_metrics_gcp_sa = true
3434
}

Diff for: modules/acm/policy_bundles.tf

+3-4
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,12 @@ module "policy_bundles" {
1818
source = "terraform-google-modules/gcloud/google//modules/kubectl-wrapper"
1919
version = "~> 3.1"
2020

21-
# Use index as name to avoid long url or special filesystem chars
22-
for_each = { for i, v in var.policy_bundles : i => v }
21+
for_each = toset(var.policy_bundles)
2322
project_id = var.project_id
2423
cluster_name = var.cluster_name
2524
cluster_location = var.location
26-
kubectl_create_command = "kubectl apply -k ${each.value}"
27-
kubectl_destroy_command = "kubectl delete -k ${each.value}"
25+
kubectl_create_command = "kubectl apply -k ${each.key}"
26+
kubectl_destroy_command = "kubectl delete -k ${each.key}"
2827

2928
module_depends_on = [time_sleep.wait_acm]
3029
}

0 commit comments

Comments
 (0)