Skip to content

Commit

Permalink
Move variabels to also include autopilot clusters
Browse files Browse the repository at this point in the history
Signed-off-by: Edvin Norling <edvin.norling@kognic.com>
  • Loading branch information
NissesSenap committed May 12, 2023
1 parent 618f05b commit 94d8d56
Show file tree
Hide file tree
Showing 9 changed files with 81 additions and 60 deletions.
23 changes: 11 additions & 12 deletions autogen/main/variables.tf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,17 @@ variable "enable_confidential_nodes" {
description = "An optional flag to enable confidential node config."
default = false
}
variable "workload_vulnerability_mode" {
description = "(beta) Vulnerability mode."
type = string
default = ""
}

variable "workload_config_audit_mode" {
description = "(beta) Worload config audit mode."
type = string
default = "DISABLED"
}
{% endif %}

variable "disable_default_snat" {
Expand Down Expand Up @@ -766,17 +777,5 @@ variable "enable_identity_service" {
description = "Enable the Identity Service component, which allows customers to use external identity providers with the K8S API."
default = false
}

variable "workload_vulnerability_mode" {
description = "(beta) Vulnerability mode."
type = string
default = ""
}

variable "workload_config_audit_mode" {
description = "(beta) Worload config audit mode."
type = string
default = "DISABLED"
}
{% endif %}
{% endif %}
2 changes: 2 additions & 0 deletions modules/beta-autopilot-private-cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ Then perform the following commands on the root folder:
| subnetwork | The subnetwork to host the cluster in (required) | `string` | n/a | yes |
| timeouts | Timeout for cluster operations. | `map(string)` | `{}` | no |
| upstream\_nameservers | If specified, the values replace the nameservers taken by default from the node’s /etc/resolv.conf | `list(string)` | `[]` | no |
| workload\_config\_audit\_mode | (beta) Worload config audit mode. | `string` | `"DISABLED"` | no |
| workload\_vulnerability\_mode | (beta) Vulnerability mode. | `string` | `""` | no |
| zones | The zones to host the cluster in (optional if regional cluster / required if zonal) | `list(string)` | `[]` | no |

## Outputs
Expand Down
11 changes: 11 additions & 0 deletions modules/beta-autopilot-private-cluster/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,17 @@ variable "enable_confidential_nodes" {
description = "An optional flag to enable confidential node config."
default = false
}
variable "workload_vulnerability_mode" {
description = "(beta) Vulnerability mode."
type = string
default = ""
}

variable "workload_config_audit_mode" {
description = "(beta) Worload config audit mode."
type = string
default = "DISABLED"
}

variable "disable_default_snat" {
type = bool
Expand Down
2 changes: 2 additions & 0 deletions modules/beta-autopilot-public-cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ Then perform the following commands on the root folder:
| subnetwork | The subnetwork to host the cluster in (required) | `string` | n/a | yes |
| timeouts | Timeout for cluster operations. | `map(string)` | `{}` | no |
| upstream\_nameservers | If specified, the values replace the nameservers taken by default from the node’s /etc/resolv.conf | `list(string)` | `[]` | no |
| workload\_config\_audit\_mode | (beta) Worload config audit mode. | `string` | `"DISABLED"` | no |
| workload\_vulnerability\_mode | (beta) Vulnerability mode. | `string` | `""` | no |
| zones | The zones to host the cluster in (optional if regional cluster / required if zonal) | `list(string)` | `[]` | no |

## Outputs
Expand Down
11 changes: 11 additions & 0 deletions modules/beta-autopilot-public-cluster/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,17 @@ variable "enable_confidential_nodes" {
description = "An optional flag to enable confidential node config."
default = false
}
variable "workload_vulnerability_mode" {
description = "(beta) Vulnerability mode."
type = string
default = ""
}

variable "workload_config_audit_mode" {
description = "(beta) Worload config audit mode."
type = string
default = "DISABLED"
}

variable "disable_default_snat" {
type = bool
Expand Down
23 changes: 11 additions & 12 deletions modules/beta-private-cluster-update-variant/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,17 @@ variable "enable_confidential_nodes" {
description = "An optional flag to enable confidential node config."
default = false
}
variable "workload_vulnerability_mode" {
description = "(beta) Vulnerability mode."
type = string
default = ""
}

variable "workload_config_audit_mode" {
description = "(beta) Worload config audit mode."
type = string
default = "DISABLED"
}

variable "disable_default_snat" {
type = bool
Expand Down Expand Up @@ -725,15 +736,3 @@ variable "enable_identity_service" {
description = "Enable the Identity Service component, which allows customers to use external identity providers with the K8S API."
default = false
}

variable "workload_vulnerability_mode" {
description = "(beta) Vulnerability mode."
type = string
default = ""
}

variable "workload_config_audit_mode" {
description = "(beta) Worload config audit mode."
type = string
default = "DISABLED"
}
23 changes: 11 additions & 12 deletions modules/beta-private-cluster/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,17 @@ variable "enable_confidential_nodes" {
description = "An optional flag to enable confidential node config."
default = false
}
variable "workload_vulnerability_mode" {
description = "(beta) Vulnerability mode."
type = string
default = ""
}

variable "workload_config_audit_mode" {
description = "(beta) Worload config audit mode."
type = string
default = "DISABLED"
}

variable "disable_default_snat" {
type = bool
Expand Down Expand Up @@ -725,15 +736,3 @@ variable "enable_identity_service" {
description = "Enable the Identity Service component, which allows customers to use external identity providers with the K8S API."
default = false
}

variable "workload_vulnerability_mode" {
description = "(beta) Vulnerability mode."
type = string
default = ""
}

variable "workload_config_audit_mode" {
description = "(beta) Worload config audit mode."
type = string
default = "DISABLED"
}
23 changes: 11 additions & 12 deletions modules/beta-public-cluster-update-variant/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,17 @@ variable "enable_confidential_nodes" {
description = "An optional flag to enable confidential node config."
default = false
}
variable "workload_vulnerability_mode" {
description = "(beta) Vulnerability mode."
type = string
default = ""
}

variable "workload_config_audit_mode" {
description = "(beta) Worload config audit mode."
type = string
default = "DISABLED"
}

variable "disable_default_snat" {
type = bool
Expand Down Expand Up @@ -695,15 +706,3 @@ variable "enable_identity_service" {
description = "Enable the Identity Service component, which allows customers to use external identity providers with the K8S API."
default = false
}

variable "workload_vulnerability_mode" {
description = "(beta) Vulnerability mode."
type = string
default = ""
}

variable "workload_config_audit_mode" {
description = "(beta) Worload config audit mode."
type = string
default = "DISABLED"
}
23 changes: 11 additions & 12 deletions modules/beta-public-cluster/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,17 @@ variable "enable_confidential_nodes" {
description = "An optional flag to enable confidential node config."
default = false
}
variable "workload_vulnerability_mode" {
description = "(beta) Vulnerability mode."
type = string
default = ""
}

variable "workload_config_audit_mode" {
description = "(beta) Worload config audit mode."
type = string
default = "DISABLED"
}

variable "disable_default_snat" {
type = bool
Expand Down Expand Up @@ -695,15 +706,3 @@ variable "enable_identity_service" {
description = "Enable the Identity Service component, which allows customers to use external identity providers with the K8S API."
default = false
}

variable "workload_vulnerability_mode" {
description = "(beta) Vulnerability mode."
type = string
default = ""
}

variable "workload_config_audit_mode" {
description = "(beta) Worload config audit mode."
type = string
default = "DISABLED"
}

0 comments on commit 94d8d56

Please sign in to comment.