Skip to content

Commit 9beb57b

Browse files
committed
feat: Support for Security Posture for safer cluster variants
1 parent 998043f commit 9beb57b

File tree

8 files changed

+49
-0
lines changed

8 files changed

+49
-0
lines changed

autogen/safer-cluster/main.tf.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,4 +195,7 @@ module "gke" {
195195
notification_config_topic = var.notification_config_topic
196196

197197
timeouts = var.timeouts
198+
199+
workload_vulnerability_mode = var.workload_vulnerability_mode
200+
workload_config_audit_mode = var.workload_config_audit_mode
198201
}

autogen/safer-cluster/variables.tf.tmpl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,3 +484,15 @@ variable "timeouts" {
484484
error_message = "Only create, update, delete timeouts can be specified."
485485
}
486486
}
487+
488+
variable "workload_vulnerability_mode" {
489+
description = "(beta) Vulnerability mode."
490+
type = string
491+
default = ""
492+
}
493+
494+
variable "workload_config_audit_mode" {
495+
description = "(beta) Worload config audit mode."
496+
type = string
497+
default = "DISABLED"
498+
}

modules/safer-cluster-update-variant/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,8 @@ For simplicity, we suggest using `roles/container.admin` and
270270
| timeouts | Timeout for cluster operations. | `map(string)` | `{}` | no |
271271
| upstream\_nameservers | If specified, the values replace the nameservers taken by default from the node’s /etc/resolv.conf | `list(string)` | `[]` | no |
272272
| windows\_node\_pools | List of maps containing node pools | `list(map(string))` | `[]` | no |
273+
| workload\_config\_audit\_mode | (beta) Worload config audit mode. | `string` | `"DISABLED"` | no |
274+
| workload\_vulnerability\_mode | (beta) Vulnerability mode. | `string` | `""` | no |
273275
| zones | The zones to host the cluster in | `list(string)` | `[]` | no |
274276

275277
## Outputs

modules/safer-cluster-update-variant/main.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,4 +191,7 @@ module "gke" {
191191
notification_config_topic = var.notification_config_topic
192192

193193
timeouts = var.timeouts
194+
195+
workload_vulnerability_mode = var.workload_vulnerability_mode
196+
workload_config_audit_mode = var.workload_config_audit_mode
194197
}

modules/safer-cluster-update-variant/variables.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,3 +484,15 @@ variable "timeouts" {
484484
error_message = "Only create, update, delete timeouts can be specified."
485485
}
486486
}
487+
488+
variable "workload_vulnerability_mode" {
489+
description = "(beta) Vulnerability mode."
490+
type = string
491+
default = ""
492+
}
493+
494+
variable "workload_config_audit_mode" {
495+
description = "(beta) Worload config audit mode."
496+
type = string
497+
default = "DISABLED"
498+
}

modules/safer-cluster/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,8 @@ For simplicity, we suggest using `roles/container.admin` and
270270
| timeouts | Timeout for cluster operations. | `map(string)` | `{}` | no |
271271
| upstream\_nameservers | If specified, the values replace the nameservers taken by default from the node’s /etc/resolv.conf | `list(string)` | `[]` | no |
272272
| windows\_node\_pools | List of maps containing node pools | `list(map(string))` | `[]` | no |
273+
| workload\_config\_audit\_mode | (beta) Worload config audit mode. | `string` | `"DISABLED"` | no |
274+
| workload\_vulnerability\_mode | (beta) Vulnerability mode. | `string` | `""` | no |
273275
| zones | The zones to host the cluster in | `list(string)` | `[]` | no |
274276

275277
## Outputs

modules/safer-cluster/main.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,4 +191,7 @@ module "gke" {
191191
notification_config_topic = var.notification_config_topic
192192

193193
timeouts = var.timeouts
194+
195+
workload_vulnerability_mode = var.workload_vulnerability_mode
196+
workload_config_audit_mode = var.workload_config_audit_mode
194197
}

modules/safer-cluster/variables.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,3 +484,15 @@ variable "timeouts" {
484484
error_message = "Only create, update, delete timeouts can be specified."
485485
}
486486
}
487+
488+
variable "workload_vulnerability_mode" {
489+
description = "(beta) Vulnerability mode."
490+
type = string
491+
default = ""
492+
}
493+
494+
variable "workload_config_audit_mode" {
495+
description = "(beta) Worload config audit mode."
496+
type = string
497+
default = "DISABLED"
498+
}

0 commit comments

Comments
 (0)