Skip to content

Commit 1fd7184

Browse files
authored
feat: add enable_referential_rules variable (#1394)
1 parent 5fb077d commit 1fd7184

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

modules/acm/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ data "google_client_config" "default" {}
7272
| enable\_fleet\_registration | Whether to create a new membership. | `bool` | `true` | no |
7373
| enable\_log\_denies | Whether to enable logging of all denies and dryrun failures for ACM Policy Controller. | `bool` | `false` | no |
7474
| enable\_policy\_controller | Whether to enable the ACM Policy Controller on the cluster | `bool` | `true` | no |
75+
| enable\_referential\_rules | Enables referential constraints which reference another object in it definition and are therefore eventually consistent. | `bool` | `true` | no |
7576
| 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 |
7677
| install\_template\_library | Whether to install the default Policy Controller template library | `bool` | `true` | no |
7778
| location | GCP location used to reach cluster. | `string` | n/a | yes |

modules/acm/feature.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ resource "google_gke_hub_feature_membership" "main" {
5555

5656
content {
5757
enabled = true
58-
referential_rules_enabled = true
58+
referential_rules_enabled = var.enable_referential_rules
5959
template_library_installed = var.install_template_library
6060
log_denies_enabled = var.enable_log_denies
6161
}

modules/acm/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,9 @@ variable "hierarchy_controller" {
127127
type = map(any)
128128
default = null
129129
}
130+
131+
variable "enable_referential_rules" {
132+
description = "Enables referential constraints which reference another object in it definition and are therefore eventually consistent."
133+
type = bool
134+
default = true
135+
}

0 commit comments

Comments
 (0)