Skip to content

Commit 0bf17d2

Browse files
committed
run make build
1 parent ac6e8d5 commit 0bf17d2

File tree

21 files changed

+218
-155
lines changed

21 files changed

+218
-155
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Then perform the following commands on the root folder:
137137
| add\_shadow\_firewall\_rules | Create GKE shadow firewall (the same as default firewall rules with firewall logs enabled). | `bool` | `false` | no |
138138
| additional\_ip\_range\_pods | List of _names_ of the additional secondary subnet ip ranges to use for pods | `list(string)` | `[]` | no |
139139
| authenticator\_security\_group | The name of the RBAC security group for use with Google security groups in Kubernetes RBAC. Group name must be in format [email protected] | `string` | `null` | no |
140-
| cluster\_autoscaling | Cluster autoscaling configuration. See [more details](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters#clusterautoscaling) | <pre>object({<br> enabled = bool<br> min_cpu_cores = number<br> max_cpu_cores = number<br> min_memory_gb = number<br> max_memory_gb = number<br> gpu_resources = list(object({ resource_type = string, minimum = number, maximum = number }))<br> auto_repair = bool<br> auto_upgrade = bool<br> disk_size = optional(number)<br> disk_type = optional(string)<br> })</pre> | <pre>{<br> "auto_repair": true,<br> "auto_upgrade": true,<br> "disk_size": 100,<br> "disk_type": "pd-standard",<br> "enabled": false,<br> "gpu_resources": [],<br> "max_cpu_cores": 0,<br> "max_memory_gb": 0,<br> "min_cpu_cores": 0,<br> "min_memory_gb": 0<br>}</pre> | no |
140+
| cluster\_autoscaling | Cluster autoscaling configuration. See [more details](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters#clusterautoscaling) | <pre>object({<br> enabled = bool<br> max_cpu_cores = number<br> min_memory_gb = number<br> min_cpu_cores = number<br> max_memory_gb = number<br> gpu_resources = list(object({ resource_type = string, minimum = number, maximum = number }))<br> auto_repair = bool<br> auto_upgrade = bool<br> disk_size = optional(number)<br> disk_type = optional(string)<br> enable_secure_boot = optional(bool)<br> enable_integrity_monitoring = optional(bool)<br> })</pre> | <pre>{<br> "auto_repair": true,<br> "auto_upgrade": true,<br> "disk_size": 100,<br> "disk_type": "pd-standard",<br> "enable_integrity_monitoring": true,<br> "enable_secure_boot": false,<br> "enabled": false,<br> "gpu_resources": [],<br> "max_cpu_cores": 0,<br> "max_memory_gb": 0,<br> "min_cpu_cores": 0,<br> "min_memory_gb": 0<br>}</pre> | no |
141141
| cluster\_dns\_domain | The suffix used for all cluster service records. | `string` | `""` | no |
142142
| cluster\_dns\_provider | Which in-cluster DNS provider should be used. PROVIDER\_UNSPECIFIED (default) or PLATFORM\_DEFAULT or CLOUD\_DNS. | `string` | `"PROVIDER_UNSPECIFIED"` | no |
143143
| cluster\_dns\_scope | The scope of access to cluster DNS records. DNS\_SCOPE\_UNSPECIFIED (default) or CLUSTER\_SCOPE or VPC\_SCOPE. | `string` | `"DNS_SCOPE_UNSPECIFIED"` | no |

cluster.tf

+5
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ resource "google_container_cluster" "primary" {
113113
disk_size = lookup(var.cluster_autoscaling, "disk_size", 100)
114114
disk_type = lookup(var.cluster_autoscaling, "disk_type", "pd-standard")
115115

116+
shielded_instance_config {
117+
enable_secure_boot = lookup(var.cluster_autoscaling, "enable_secure_boot", false)
118+
enable_integrity_monitoring = lookup(var.cluster_autoscaling, "enable_integrity_monitoring", true)
119+
}
120+
116121
}
117122
}
118123
dynamic "resource_limits" {

modules/beta-private-cluster-update-variant/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ Then perform the following commands on the root folder:
171171
| authenticator\_security\_group | The name of the RBAC security group for use with Google security groups in Kubernetes RBAC. Group name must be in format [email protected] | `string` | `null` | no |
172172
| cloudrun | (Beta) Enable CloudRun addon | `bool` | `false` | no |
173173
| cloudrun\_load\_balancer\_type | (Beta) Configure the Cloud Run load balancer type. External by default. Set to `LOAD_BALANCER_TYPE_INTERNAL` to configure as an internal load balancer. | `string` | `""` | no |
174-
| cluster\_autoscaling | Cluster autoscaling configuration. See [more details](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters#clusterautoscaling) | <pre>object({<br> enabled = bool<br> autoscaling_profile = string<br> min_cpu_cores = number<br> max_cpu_cores = number<br> min_memory_gb = number<br> max_memory_gb = number<br> gpu_resources = list(object({ resource_type = string, minimum = number, maximum = number }))<br> auto_repair = bool<br> auto_upgrade = bool<br> disk_size = optional(number)<br> disk_type = optional(string)<br> })</pre> | <pre>{<br> "auto_repair": true,<br> "auto_upgrade": true,<br> "autoscaling_profile": "BALANCED",<br> "disk_size": 100,<br> "disk_type": "pd-standard",<br> "enabled": false,<br> "gpu_resources": [],<br> "max_cpu_cores": 0,<br> "max_memory_gb": 0,<br> "min_cpu_cores": 0,<br> "min_memory_gb": 0<br>}</pre> | no |
174+
| cluster\_autoscaling | Cluster autoscaling configuration. See [more details](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters#clusterautoscaling) | <pre>object({<br> enabled = bool<br> autoscaling_profile = string<br> max_cpu_cores = number<br> min_memory_gb = number<br> min_cpu_cores = number<br> max_memory_gb = number<br> gpu_resources = list(object({ resource_type = string, minimum = number, maximum = number }))<br> auto_repair = bool<br> auto_upgrade = bool<br> disk_size = optional(number)<br> disk_type = optional(string)<br> enable_secure_boot = optional(bool)<br> enable_integrity_monitoring = optional(bool)<br> })</pre> | <pre>{<br> "auto_repair": true,<br> "auto_upgrade": true,<br> "autoscaling_profile": "BALANCED",<br> "disk_size": 100,<br> "disk_type": "pd-standard",<br> "enable_integrity_monitoring": true,<br> "enable_secure_boot": false,<br> "enabled": false,<br> "gpu_resources": [],<br> "max_cpu_cores": 0,<br> "max_memory_gb": 0,<br> "min_cpu_cores": 0,<br> "min_memory_gb": 0<br>}</pre> | no |
175175
| cluster\_dns\_domain | The suffix used for all cluster service records. | `string` | `""` | no |
176176
| cluster\_dns\_provider | Which in-cluster DNS provider should be used. PROVIDER\_UNSPECIFIED (default) or PLATFORM\_DEFAULT or CLOUD\_DNS. | `string` | `"PROVIDER_UNSPECIFIED"` | no |
177177
| cluster\_dns\_scope | The scope of access to cluster DNS records. DNS\_SCOPE\_UNSPECIFIED (default) or CLUSTER\_SCOPE or VPC\_SCOPE. | `string` | `"DNS_SCOPE_UNSPECIFIED"` | no |

modules/beta-private-cluster-update-variant/cluster.tf

+5
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ resource "google_container_cluster" "primary" {
125125
disk_size = lookup(var.cluster_autoscaling, "disk_size", 100)
126126
disk_type = lookup(var.cluster_autoscaling, "disk_type", "pd-standard")
127127

128+
shielded_instance_config {
129+
enable_secure_boot = lookup(var.cluster_autoscaling, "enable_secure_boot", false)
130+
enable_integrity_monitoring = lookup(var.cluster_autoscaling, "enable_integrity_monitoring", true)
131+
}
132+
128133
min_cpu_platform = lookup(var.node_pools[0], "min_cpu_platform", "")
129134
}
130135
}

modules/beta-private-cluster-update-variant/variables.tf

+26-22
Original file line numberDiff line numberDiff line change
@@ -233,30 +233,34 @@ variable "enable_resource_consumption_export" {
233233

234234
variable "cluster_autoscaling" {
235235
type = object({
236-
enabled = bool
237-
autoscaling_profile = string
238-
min_cpu_cores = number
239-
max_cpu_cores = number
240-
min_memory_gb = number
241-
max_memory_gb = number
242-
gpu_resources = list(object({ resource_type = string, minimum = number, maximum = number }))
243-
auto_repair = bool
244-
auto_upgrade = bool
245-
disk_size = optional(number)
246-
disk_type = optional(string)
236+
enabled = bool
237+
autoscaling_profile = string
238+
max_cpu_cores = number
239+
min_memory_gb = number
240+
min_cpu_cores = number
241+
max_memory_gb = number
242+
gpu_resources = list(object({ resource_type = string, minimum = number, maximum = number }))
243+
auto_repair = bool
244+
auto_upgrade = bool
245+
disk_size = optional(number)
246+
disk_type = optional(string)
247+
enable_secure_boot = optional(bool)
248+
enable_integrity_monitoring = optional(bool)
247249
})
248250
default = {
249-
enabled = false
250-
autoscaling_profile = "BALANCED"
251-
max_cpu_cores = 0
252-
min_cpu_cores = 0
253-
max_memory_gb = 0
254-
min_memory_gb = 0
255-
gpu_resources = []
256-
auto_repair = true
257-
auto_upgrade = true
258-
disk_size = 100
259-
disk_type = "pd-standard"
251+
enabled = false
252+
autoscaling_profile = "BALANCED"
253+
max_cpu_cores = 0
254+
min_cpu_cores = 0
255+
max_memory_gb = 0
256+
min_memory_gb = 0
257+
gpu_resources = []
258+
auto_repair = true
259+
auto_upgrade = true
260+
disk_size = 100
261+
disk_type = "pd-standard"
262+
enable_secure_boot = false
263+
enable_integrity_monitoring = true
260264
}
261265
description = "Cluster autoscaling configuration. See [more details](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters#clusterautoscaling)"
262266
}

modules/beta-private-cluster/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ Then perform the following commands on the root folder:
149149
| authenticator\_security\_group | The name of the RBAC security group for use with Google security groups in Kubernetes RBAC. Group name must be in format [email protected] | `string` | `null` | no |
150150
| cloudrun | (Beta) Enable CloudRun addon | `bool` | `false` | no |
151151
| cloudrun\_load\_balancer\_type | (Beta) Configure the Cloud Run load balancer type. External by default. Set to `LOAD_BALANCER_TYPE_INTERNAL` to configure as an internal load balancer. | `string` | `""` | no |
152-
| cluster\_autoscaling | Cluster autoscaling configuration. See [more details](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters#clusterautoscaling) | <pre>object({<br> enabled = bool<br> autoscaling_profile = string<br> min_cpu_cores = number<br> max_cpu_cores = number<br> min_memory_gb = number<br> max_memory_gb = number<br> gpu_resources = list(object({ resource_type = string, minimum = number, maximum = number }))<br> auto_repair = bool<br> auto_upgrade = bool<br> disk_size = optional(number)<br> disk_type = optional(string)<br> })</pre> | <pre>{<br> "auto_repair": true,<br> "auto_upgrade": true,<br> "autoscaling_profile": "BALANCED",<br> "disk_size": 100,<br> "disk_type": "pd-standard",<br> "enabled": false,<br> "gpu_resources": [],<br> "max_cpu_cores": 0,<br> "max_memory_gb": 0,<br> "min_cpu_cores": 0,<br> "min_memory_gb": 0<br>}</pre> | no |
152+
| cluster\_autoscaling | Cluster autoscaling configuration. See [more details](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters#clusterautoscaling) | <pre>object({<br> enabled = bool<br> autoscaling_profile = string<br> max_cpu_cores = number<br> min_memory_gb = number<br> min_cpu_cores = number<br> max_memory_gb = number<br> gpu_resources = list(object({ resource_type = string, minimum = number, maximum = number }))<br> auto_repair = bool<br> auto_upgrade = bool<br> disk_size = optional(number)<br> disk_type = optional(string)<br> enable_secure_boot = optional(bool)<br> enable_integrity_monitoring = optional(bool)<br> })</pre> | <pre>{<br> "auto_repair": true,<br> "auto_upgrade": true,<br> "autoscaling_profile": "BALANCED",<br> "disk_size": 100,<br> "disk_type": "pd-standard",<br> "enable_integrity_monitoring": true,<br> "enable_secure_boot": false,<br> "enabled": false,<br> "gpu_resources": [],<br> "max_cpu_cores": 0,<br> "max_memory_gb": 0,<br> "min_cpu_cores": 0,<br> "min_memory_gb": 0<br>}</pre> | no |
153153
| cluster\_dns\_domain | The suffix used for all cluster service records. | `string` | `""` | no |
154154
| cluster\_dns\_provider | Which in-cluster DNS provider should be used. PROVIDER\_UNSPECIFIED (default) or PLATFORM\_DEFAULT or CLOUD\_DNS. | `string` | `"PROVIDER_UNSPECIFIED"` | no |
155155
| cluster\_dns\_scope | The scope of access to cluster DNS records. DNS\_SCOPE\_UNSPECIFIED (default) or CLUSTER\_SCOPE or VPC\_SCOPE. | `string` | `"DNS_SCOPE_UNSPECIFIED"` | no |

modules/beta-private-cluster/cluster.tf

+5
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ resource "google_container_cluster" "primary" {
125125
disk_size = lookup(var.cluster_autoscaling, "disk_size", 100)
126126
disk_type = lookup(var.cluster_autoscaling, "disk_type", "pd-standard")
127127

128+
shielded_instance_config {
129+
enable_secure_boot = lookup(var.cluster_autoscaling, "enable_secure_boot", false)
130+
enable_integrity_monitoring = lookup(var.cluster_autoscaling, "enable_integrity_monitoring", true)
131+
}
132+
128133
min_cpu_platform = lookup(var.node_pools[0], "min_cpu_platform", "")
129134
}
130135
}

modules/beta-private-cluster/variables.tf

+26-22
Original file line numberDiff line numberDiff line change
@@ -233,30 +233,34 @@ variable "enable_resource_consumption_export" {
233233

234234
variable "cluster_autoscaling" {
235235
type = object({
236-
enabled = bool
237-
autoscaling_profile = string
238-
min_cpu_cores = number
239-
max_cpu_cores = number
240-
min_memory_gb = number
241-
max_memory_gb = number
242-
gpu_resources = list(object({ resource_type = string, minimum = number, maximum = number }))
243-
auto_repair = bool
244-
auto_upgrade = bool
245-
disk_size = optional(number)
246-
disk_type = optional(string)
236+
enabled = bool
237+
autoscaling_profile = string
238+
max_cpu_cores = number
239+
min_memory_gb = number
240+
min_cpu_cores = number
241+
max_memory_gb = number
242+
gpu_resources = list(object({ resource_type = string, minimum = number, maximum = number }))
243+
auto_repair = bool
244+
auto_upgrade = bool
245+
disk_size = optional(number)
246+
disk_type = optional(string)
247+
enable_secure_boot = optional(bool)
248+
enable_integrity_monitoring = optional(bool)
247249
})
248250
default = {
249-
enabled = false
250-
autoscaling_profile = "BALANCED"
251-
max_cpu_cores = 0
252-
min_cpu_cores = 0
253-
max_memory_gb = 0
254-
min_memory_gb = 0
255-
gpu_resources = []
256-
auto_repair = true
257-
auto_upgrade = true
258-
disk_size = 100
259-
disk_type = "pd-standard"
251+
enabled = false
252+
autoscaling_profile = "BALANCED"
253+
max_cpu_cores = 0
254+
min_cpu_cores = 0
255+
max_memory_gb = 0
256+
min_memory_gb = 0
257+
gpu_resources = []
258+
auto_repair = true
259+
auto_upgrade = true
260+
disk_size = 100
261+
disk_type = "pd-standard"
262+
enable_secure_boot = false
263+
enable_integrity_monitoring = true
260264
}
261265
description = "Cluster autoscaling configuration. See [more details](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters#clusterautoscaling)"
262266
}

modules/beta-public-cluster-update-variant/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Then perform the following commands on the root folder:
165165
| authenticator\_security\_group | The name of the RBAC security group for use with Google security groups in Kubernetes RBAC. Group name must be in format [email protected] | `string` | `null` | no |
166166
| cloudrun | (Beta) Enable CloudRun addon | `bool` | `false` | no |
167167
| cloudrun\_load\_balancer\_type | (Beta) Configure the Cloud Run load balancer type. External by default. Set to `LOAD_BALANCER_TYPE_INTERNAL` to configure as an internal load balancer. | `string` | `""` | no |
168-
| cluster\_autoscaling | Cluster autoscaling configuration. See [more details](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters#clusterautoscaling) | <pre>object({<br> enabled = bool<br> autoscaling_profile = string<br> min_cpu_cores = number<br> max_cpu_cores = number<br> min_memory_gb = number<br> max_memory_gb = number<br> gpu_resources = list(object({ resource_type = string, minimum = number, maximum = number }))<br> auto_repair = bool<br> auto_upgrade = bool<br> disk_size = optional(number)<br> disk_type = optional(string)<br> })</pre> | <pre>{<br> "auto_repair": true,<br> "auto_upgrade": true,<br> "autoscaling_profile": "BALANCED",<br> "disk_size": 100,<br> "disk_type": "pd-standard",<br> "enabled": false,<br> "gpu_resources": [],<br> "max_cpu_cores": 0,<br> "max_memory_gb": 0,<br> "min_cpu_cores": 0,<br> "min_memory_gb": 0<br>}</pre> | no |
168+
| cluster\_autoscaling | Cluster autoscaling configuration. See [more details](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters#clusterautoscaling) | <pre>object({<br> enabled = bool<br> autoscaling_profile = string<br> max_cpu_cores = number<br> min_memory_gb = number<br> min_cpu_cores = number<br> max_memory_gb = number<br> gpu_resources = list(object({ resource_type = string, minimum = number, maximum = number }))<br> auto_repair = bool<br> auto_upgrade = bool<br> disk_size = optional(number)<br> disk_type = optional(string)<br> enable_secure_boot = optional(bool)<br> enable_integrity_monitoring = optional(bool)<br> })</pre> | <pre>{<br> "auto_repair": true,<br> "auto_upgrade": true,<br> "autoscaling_profile": "BALANCED",<br> "disk_size": 100,<br> "disk_type": "pd-standard",<br> "enable_integrity_monitoring": true,<br> "enable_secure_boot": false,<br> "enabled": false,<br> "gpu_resources": [],<br> "max_cpu_cores": 0,<br> "max_memory_gb": 0,<br> "min_cpu_cores": 0,<br> "min_memory_gb": 0<br>}</pre> | no |
169169
| cluster\_dns\_domain | The suffix used for all cluster service records. | `string` | `""` | no |
170170
| cluster\_dns\_provider | Which in-cluster DNS provider should be used. PROVIDER\_UNSPECIFIED (default) or PLATFORM\_DEFAULT or CLOUD\_DNS. | `string` | `"PROVIDER_UNSPECIFIED"` | no |
171171
| cluster\_dns\_scope | The scope of access to cluster DNS records. DNS\_SCOPE\_UNSPECIFIED (default) or CLUSTER\_SCOPE or VPC\_SCOPE. | `string` | `"DNS_SCOPE_UNSPECIFIED"` | no |

modules/beta-public-cluster-update-variant/cluster.tf

+5
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ resource "google_container_cluster" "primary" {
125125
disk_size = lookup(var.cluster_autoscaling, "disk_size", 100)
126126
disk_type = lookup(var.cluster_autoscaling, "disk_type", "pd-standard")
127127

128+
shielded_instance_config {
129+
enable_secure_boot = lookup(var.cluster_autoscaling, "enable_secure_boot", false)
130+
enable_integrity_monitoring = lookup(var.cluster_autoscaling, "enable_integrity_monitoring", true)
131+
}
132+
128133
min_cpu_platform = lookup(var.node_pools[0], "min_cpu_platform", "")
129134
}
130135
}

0 commit comments

Comments
 (0)