Skip to content

Commit

Permalink
fix: update policy-essentials hash 59f4695 using ref (#1659)
Browse files Browse the repository at this point in the history
  • Loading branch information
apeabody committed Jun 2, 2023
1 parent e522073 commit 2fe1715
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/simple_zonal_with_acm/acm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module "acm" {

secret_type = "ssh"

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

create_metrics_gcp_sa = true
}
7 changes: 3 additions & 4 deletions modules/acm/policy_bundles.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ module "policy_bundles" {
source = "terraform-google-modules/gcloud/google//modules/kubectl-wrapper"
version = "~> 3.1"

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

module_depends_on = [time_sleep.wait_acm]
}

0 comments on commit 2fe1715

Please sign in to comment.