Skip to content

Commit

Permalink
feat: Add boot disk kms key variable (#516)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Patriche <daniel@mambu.com>
  • Loading branch information
rebelthor and Daniel Patriche committed May 12, 2020
1 parent d4e7dc6 commit 9195f0f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autogen/main/cluster.tf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,8 @@ resource "google_container_node_pool" "pools" {
sandbox_type = sandbox_config.value
}
}

boot_disk_kms_key = lookup(each.value, "boot_disk_kms_key", "")
{% endif %}

shielded_instance_config {
Expand Down
2 changes: 2 additions & 0 deletions modules/beta-private-cluster-update-variant/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,8 @@ resource "google_container_node_pool" "pools" {
}
}

boot_disk_kms_key = lookup(each.value, "boot_disk_kms_key", "")

shielded_instance_config {
enable_secure_boot = lookup(each.value, "enable_secure_boot", false)
enable_integrity_monitoring = lookup(each.value, "enable_integrity_monitoring", true)
Expand Down
2 changes: 2 additions & 0 deletions modules/beta-private-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,8 @@ resource "google_container_node_pool" "pools" {
}
}

boot_disk_kms_key = lookup(each.value, "boot_disk_kms_key", "")

shielded_instance_config {
enable_secure_boot = lookup(each.value, "enable_secure_boot", false)
enable_integrity_monitoring = lookup(each.value, "enable_integrity_monitoring", true)
Expand Down
2 changes: 2 additions & 0 deletions modules/beta-public-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,8 @@ resource "google_container_node_pool" "pools" {
}
}

boot_disk_kms_key = lookup(each.value, "boot_disk_kms_key", "")

shielded_instance_config {
enable_secure_boot = lookup(each.value, "enable_secure_boot", false)
enable_integrity_monitoring = lookup(each.value, "enable_integrity_monitoring", true)
Expand Down

0 comments on commit 9195f0f

Please sign in to comment.