Skip to content

Commit

Permalink
generate doc and modules
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvio.pedroza committed Aug 17, 2019
1 parent a148b81 commit a9794ef
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
11 changes: 4 additions & 7 deletions modules/beta-private-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,11 @@ resource "google_container_cluster" "primary" {
}
}

workload_identity_config {
dynamic "workload_identity_config" {
for_each = list(var.identity_namespace)

dynamic "workload_identity_config" {
for_each = var.identity_namespace

content {
identity_namespace = workload_identity_config
}
content {
identity_namespace = local.cluster_workload_identity_config.identity_namespace
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions modules/beta-private-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ locals {
cluster_pod_security_policy_enabled = local.cluster_output_pod_security_policy_enabled
cluster_intranode_visibility_enabled = local.cluster_output_intranode_visbility_enabled
cluster_vertical_pod_autoscaling_enabled = local.cluster_output_vertical_pod_autoscaling_enabled
cluster_workload_identity_config = {
identity_namespace = var.identity_namespace
}
# /BETA features
}

Expand Down
4 changes: 2 additions & 2 deletions modules/beta-private-cluster/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,8 @@ variable "enable_vertical_pod_autoscaling" {

variable "identity_namespace" {
description = "Workload Identity namespace"
type = list(string)
default = []
type = string
default = ""
}


11 changes: 4 additions & 7 deletions modules/beta-public-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,11 @@ resource "google_container_cluster" "primary" {
}
}

workload_identity_config {
dynamic "workload_identity_config" {
for_each = list(var.identity_namespace)

dynamic "workload_identity_config" {
for_each = var.identity_namespace

content {
identity_namespace = workload_identity_config
}
content {
identity_namespace = local.cluster_workload_identity_config.identity_namespace
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions modules/beta-public-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ locals {
cluster_pod_security_policy_enabled = local.cluster_output_pod_security_policy_enabled
cluster_intranode_visibility_enabled = local.cluster_output_intranode_visbility_enabled
cluster_vertical_pod_autoscaling_enabled = local.cluster_output_vertical_pod_autoscaling_enabled
cluster_workload_identity_config = {
identity_namespace = var.identity_namespace
}
# /BETA features
}

Expand Down
4 changes: 2 additions & 2 deletions modules/beta-public-cluster/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,8 @@ variable "enable_vertical_pod_autoscaling" {

variable "identity_namespace" {
description = "Workload Identity namespace"
type = list(string)
default = []
type = string
default = ""
}


0 comments on commit a9794ef

Please sign in to comment.