Skip to content

Commit 1bdf3e0

Browse files
committed
feat: Support for Security Posture for secret cluster variants
1 parent 998043f commit 1bdf3e0

File tree

6 files changed

+41
-1
lines changed

6 files changed

+41
-1
lines changed

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/acm/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ data "google_client_config" "default" {}
9191
| install\_template\_library | Whether to install the default Policy Controller template library | `bool` | `true` | no |
9292
| location | GCP location used to reach cluster. | `string` | n/a | yes |
9393
| metrics\_gcp\_sa\_name | The name of the Google service account for ACM metrics writing | `string` | `"acm-metrics-writer"` | no |
94-
| policy\_bundles | A list of Policy Controller policy bundles git urls (example: <https://github.com/GoogleCloudPlatform/acm-policy-controller-library.git/bundles/policy-essentials-v2022>) to install on the cluster. | `list(string)` | `[]` | no |
94+
| policy\_bundles | A list of Policy Controller policy bundles git urls (example: https://github.com/GoogleCloudPlatform/acm-policy-controller-library.git/bundles/policy-essentials-v2022) to install on the cluster. | `list(string)` | `[]` | no |
9595
| policy\_dir | Subfolder containing configs in ACM Git repo. If un-set, uses Config Management default. | `string` | `""` | no |
9696
| project\_id | GCP project\_id used to reach cluster. | `string` | n/a | yes |
9797
| secret\_type | git authentication secret type, is passed through to ConfigManagement spec.git.secretType. Overriden to value 'ssh' if `create_ssh_key` is true | `string` | `"ssh"` | no |

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/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/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)