Skip to content

Commit

Permalink
chore: expose enable_fleet_feature in ACM example (#1648)
Browse files Browse the repository at this point in the history
  • Loading branch information
apeabody authored Jun 1, 2023
1 parent de8fe2a commit 9e3d16a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/simple_zonal_with_acm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ After applying the Terraform configuration, you can run the following commands t
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| cluster\_name\_suffix | A suffix to append to the default cluster name | `string` | `""` | no |
| enable\_fleet\_feature | Whether to enable the ACM feature on the fleet. | `bool` | `true` | no |
| project\_id | The project ID to host the cluster in | `string` | n/a | yes |
| region | The region to host the cluster in | `string` | `"us-central1"` | no |
| zone | The zone to host the cluster in | `string` | `"us-central1-a"` | no |
Expand Down
2 changes: 2 additions & 0 deletions examples/simple_zonal_with_acm/acm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ module "acm" {
sync_branch = "1.0.0"
policy_dir = "foo-corp"

enable_fleet_feature = var.enable_fleet_feature

secret_type = "ssh"

policy_bundles = ["https://github.com/GoogleCloudPlatform/acm-policy-controller-library/bundles/policy-essentials-v2022#e4094aacb91a35b0219f6f4cf6a31580e85b3c28"]
Expand Down
6 changes: 6 additions & 0 deletions examples/simple_zonal_with_acm/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,9 @@ variable "zone" {
description = "The zone to host the cluster in"
default = "us-central1-a"
}

variable "enable_fleet_feature" {
description = "Whether to enable the ACM feature on the fleet."
type = bool
default = true
}

0 comments on commit 9e3d16a

Please sign in to comment.