Skip to content

Commit 47d6121

Browse files
committed
Allow enabling GKE backup agent for safer cluster variants
1 parent 05969a0 commit 47d6121

File tree

8 files changed

+26
-3
lines changed

8 files changed

+26
-3
lines changed

autogen/safer-cluster/main.tf.tmpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ module "gke" {
141141

142142
dns_cache = var.dns_cache
143143

144-
config_connector = var.config_connector
144+
config_connector = var.config_connector
145+
gke_backup_agent_config = var.gke_backup_agent_config
145146

146147
default_max_pods_per_node = var.default_max_pods_per_node
147148

autogen/safer-cluster/variables.tf.tmpl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,12 @@ variable "config_connector" {
400400
default = false
401401
}
402402

403+
variable "gke_backup_agent_config" {
404+
type = bool
405+
description = "(Beta) Whether Backup for GKE agent is enabled for this cluster."
406+
default = false
407+
}
408+
403409
variable "disable_default_snat" {
404410
type = bool
405411
description = "Whether to disable the default SNAT to support the private use of public IP addresses"

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ For simplicity, we suggest using `roles/container.admin` and
224224
| firewall\_inbound\_ports | List of TCP ports for admission/webhook controllers | `list(string)` | <pre>[<br> "8443",<br> "9443",<br> "15017"<br>]</pre> | no |
225225
| firewall\_priority | Priority rule for firewall rules | `number` | `1000` | no |
226226
| gce\_pd\_csi\_driver | (Beta) Whether this cluster should enable the Google Compute Engine Persistent Disk Container Storage Interface (CSI) Driver. | `bool` | `true` | no |
227+
| gke\_backup\_agent\_config | (Beta) Whether Backup for GKE agent is enabled for this cluster. | `bool` | `false` | no |
227228
| grant\_registry\_access | Grants created cluster-specific service account storage.objectViewer role. | `bool` | `true` | no |
228229
| horizontal\_pod\_autoscaling | Enable horizontal pod autoscaling addon | `bool` | `true` | no |
229230
| 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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ module "gke" {
137137

138138
dns_cache = var.dns_cache
139139

140-
config_connector = var.config_connector
140+
config_connector = var.config_connector
141+
gke_backup_agent_config = var.gke_backup_agent_config
141142

142143
default_max_pods_per_node = var.default_max_pods_per_node
143144

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,12 @@ variable "config_connector" {
400400
default = false
401401
}
402402

403+
variable "gke_backup_agent_config" {
404+
type = bool
405+
description = "(Beta) Whether Backup for GKE agent is enabled for this cluster."
406+
default = false
407+
}
408+
403409
variable "disable_default_snat" {
404410
type = bool
405411
description = "Whether to disable the default SNAT to support the private use of public IP addresses"

modules/safer-cluster/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ For simplicity, we suggest using `roles/container.admin` and
224224
| firewall\_inbound\_ports | List of TCP ports for admission/webhook controllers | `list(string)` | <pre>[<br> "8443",<br> "9443",<br> "15017"<br>]</pre> | no |
225225
| firewall\_priority | Priority rule for firewall rules | `number` | `1000` | no |
226226
| gce\_pd\_csi\_driver | (Beta) Whether this cluster should enable the Google Compute Engine Persistent Disk Container Storage Interface (CSI) Driver. | `bool` | `true` | no |
227+
| gke\_backup\_agent\_config | (Beta) Whether Backup for GKE agent is enabled for this cluster. | `bool` | `false` | no |
227228
| grant\_registry\_access | Grants created cluster-specific service account storage.objectViewer role. | `bool` | `true` | no |
228229
| horizontal\_pod\_autoscaling | Enable horizontal pod autoscaling addon | `bool` | `true` | no |
229230
| 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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ module "gke" {
137137

138138
dns_cache = var.dns_cache
139139

140-
config_connector = var.config_connector
140+
config_connector = var.config_connector
141+
gke_backup_agent_config = var.gke_backup_agent_config
141142

142143
default_max_pods_per_node = var.default_max_pods_per_node
143144

modules/safer-cluster/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,12 @@ variable "config_connector" {
400400
default = false
401401
}
402402

403+
variable "gke_backup_agent_config" {
404+
type = bool
405+
description = "(Beta) Whether Backup for GKE agent is enabled for this cluster."
406+
default = false
407+
}
408+
403409
variable "disable_default_snat" {
404410
type = bool
405411
description = "Whether to disable the default SNAT to support the private use of public IP addresses"

0 commit comments

Comments
 (0)