Skip to content

Commit d4e7dc6

Browse files
rebelthorDaniel Patriche
and
Daniel Patriche
authored
feat: Expose gce_pd_csi_driver for Safer Cluster modules #503 (#514)
* Expose gce_pd_csi_driver for Safer Cluster modules #503 * Use autogen folder to generate modules #503 Co-authored-by: Daniel Patriche <[email protected]>
1 parent 705f876 commit d4e7dc6

File tree

8 files changed

+26
-0
lines changed

8 files changed

+26
-0
lines changed

autogen/safer-cluster/main.tf.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,4 +154,6 @@ module "gke" {
154154
enable_shielded_nodes = var.enable_shielded_nodes
155155

156156
skip_provisioners = var.skip_provisioners
157+
158+
gce_pd_csi_driver = var.gce_pd_csi_driver
157159
}

autogen/safer-cluster/variables.tf.tmpl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,3 +336,9 @@ variable "pod_security_policy_config" {
336336
"enabled" = true
337337
}]
338338
}
339+
340+
variable "gce_pd_csi_driver" {
341+
type = bool
342+
description = "(Beta) Whether this cluster should enable the Google Compute Engine Persistent Disk Container Storage Interface (CSI) Driver."
343+
default = true
344+
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ For simplicity, we suggest using `roles/container.admin` and
214214
| enable\_resource\_consumption\_export | Whether to enable resource consumption metering on this cluster. When enabled, a table will be created in the resource export BigQuery dataset to store resource consumption data. The resulting table can be joined with the resource usage table or with BigQuery billing export. | bool | `"true"` | no |
215215
| enable\_shielded\_nodes | Enable Shielded Nodes features on all nodes in this cluster. | bool | `"true"` | no |
216216
| enable\_vertical\_pod\_autoscaling | Vertical Pod Autoscaling automatically adjusts the resources of pods controlled by it | bool | `"false"` | no |
217+
| gce\_pd\_csi\_driver | (Beta) Whether this cluster should enable the Google Compute Engine Persistent Disk Container Storage Interface (CSI) Driver. | bool | `"true"` | no |
217218
| grant\_registry\_access | Grants created cluster-specific service account storage.objectViewer role. | bool | `"true"` | no |
218219
| horizontal\_pod\_autoscaling | Enable horizontal pod autoscaling addon | bool | `"true"` | no |
219220
| http\_load\_balancing | Enable httpload balancer addon. The addon allows whoever can create Ingress objects to expose an application to a public IP. Network policies or Gatekeeper policies should be used to verify that only authorized applications are exposed. | bool | `"true"` | no |

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,6 @@ module "gke" {
150150
enable_shielded_nodes = var.enable_shielded_nodes
151151

152152
skip_provisioners = var.skip_provisioners
153+
154+
gce_pd_csi_driver = var.gce_pd_csi_driver
153155
}

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,3 +336,9 @@ variable "pod_security_policy_config" {
336336
"enabled" = true
337337
}]
338338
}
339+
340+
variable "gce_pd_csi_driver" {
341+
type = bool
342+
description = "(Beta) Whether this cluster should enable the Google Compute Engine Persistent Disk Container Storage Interface (CSI) Driver."
343+
default = true
344+
}

modules/safer-cluster/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ For simplicity, we suggest using `roles/container.admin` and
214214
| enable\_resource\_consumption\_export | Whether to enable resource consumption metering on this cluster. When enabled, a table will be created in the resource export BigQuery dataset to store resource consumption data. The resulting table can be joined with the resource usage table or with BigQuery billing export. | bool | `"true"` | no |
215215
| enable\_shielded\_nodes | Enable Shielded Nodes features on all nodes in this cluster. | bool | `"true"` | no |
216216
| enable\_vertical\_pod\_autoscaling | Vertical Pod Autoscaling automatically adjusts the resources of pods controlled by it | bool | `"false"` | no |
217+
| gce\_pd\_csi\_driver | (Beta) Whether this cluster should enable the Google Compute Engine Persistent Disk Container Storage Interface (CSI) Driver. | bool | `"true"` | no |
217218
| grant\_registry\_access | Grants created cluster-specific service account storage.objectViewer role. | bool | `"true"` | no |
218219
| horizontal\_pod\_autoscaling | Enable horizontal pod autoscaling addon | bool | `"true"` | no |
219220
| http\_load\_balancing | Enable httpload balancer addon. The addon allows whoever can create Ingress objects to expose an application to a public IP. Network policies or Gatekeeper policies should be used to verify that only authorized applications are exposed. | bool | `"true"` | no |

modules/safer-cluster/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,6 @@ module "gke" {
150150
enable_shielded_nodes = var.enable_shielded_nodes
151151

152152
skip_provisioners = var.skip_provisioners
153+
154+
gce_pd_csi_driver = var.gce_pd_csi_driver
153155
}

modules/safer-cluster/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,3 +336,9 @@ variable "pod_security_policy_config" {
336336
"enabled" = true
337337
}]
338338
}
339+
340+
variable "gce_pd_csi_driver" {
341+
type = bool
342+
description = "(Beta) Whether this cluster should enable the Google Compute Engine Persistent Disk Container Storage Interface (CSI) Driver."
343+
default = true
344+
}

0 commit comments

Comments
 (0)