Skip to content

Commit 00c2b71

Browse files
wieringenMaarten Baijs
and
Maarten Baijs
authored
fix: Ensure the ASM module's destroy command removes all ASM components (#918)
Co-authored-by: Maarten Baijs <[email protected]>
1 parent ff71123 commit 00c2b71

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

examples/simple_zonal_with_asm/outputs.tf

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ output "client_token" {
2525
}
2626

2727
output "ca_certificate" {
28-
value = module.gke.ca_certificate
28+
sensitive = true
29+
value = module.gke.ca_certificate
2930
}
3031

3132
output "service_account" {

modules/asm/main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,5 +96,5 @@ module "asm_install" {
9696
impersonate_service_account = var.impersonate_service_account
9797

9898
kubectl_create_command = "${path.module}/scripts/install_asm.sh ${var.project_id} ${var.cluster_name} ${var.location} ${var.asm_version} ${var.mode} ${var.managed_control_plane} ${var.skip_validation} ${local.options_string} ${local.custom_overlays_string} ${var.enable_all} ${var.enable_cluster_roles} ${var.enable_cluster_labels} ${var.enable_gcp_components} ${var.enable_registration} ${var.outdir} ${var.ca} ${local.ca_cert} ${local.ca_key} ${local.root_cert} ${local.cert_chain} ${local.service_account_string} ${local.key_file_string} ${local.asm_git_tag_string}"
99-
kubectl_destroy_command = "kubectl delete ns istio-system"
99+
kubectl_destroy_command = "kubectl delete ns asm-system istio-system && kubectl label namespaces --all istio-injection-"
100100
}

0 commit comments

Comments
 (0)