Skip to content

Commit

Permalink
feat: add enable_referential_rules variable (#1394)
Browse files Browse the repository at this point in the history
  • Loading branch information
apeabody authored Sep 7, 2022
1 parent 5fb077d commit 1fd7184
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions modules/acm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ data "google_client_config" "default" {}
| enable\_fleet\_registration | Whether to create a new membership. | `bool` | `true` | no |
| enable\_log\_denies | Whether to enable logging of all denies and dryrun failures for ACM Policy Controller. | `bool` | `false` | no |
| enable\_policy\_controller | Whether to enable the ACM Policy Controller on the cluster | `bool` | `true` | no |
| enable\_referential\_rules | Enables referential constraints which reference another object in it definition and are therefore eventually consistent. | `bool` | `true` | no |
| hierarchy\_controller | Configurations for Hierarchy Controller. See [Hierarchy Controller docs](https://cloud.google.com/anthos-config-management/docs/how-to/installing-hierarchy-controller) for more details | `map(any)` | `null` | no |
| install\_template\_library | Whether to install the default Policy Controller template library | `bool` | `true` | no |
| location | GCP location used to reach cluster. | `string` | n/a | yes |
Expand Down
2 changes: 1 addition & 1 deletion modules/acm/feature.tf
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ resource "google_gke_hub_feature_membership" "main" {

content {
enabled = true
referential_rules_enabled = true
referential_rules_enabled = var.enable_referential_rules
template_library_installed = var.install_template_library
log_denies_enabled = var.enable_log_denies
}
Expand Down
6 changes: 6 additions & 0 deletions modules/acm/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,9 @@ variable "hierarchy_controller" {
type = map(any)
default = null
}

variable "enable_referential_rules" {
description = "Enables referential constraints which reference another object in it definition and are therefore eventually consistent."
type = bool
default = true
}

0 comments on commit 1fd7184

Please sign in to comment.