Skip to content

Commit

Permalink
Revert "fix: back out unique names and use unique webhook_sa_name" (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
kweinmeister authored Mar 26, 2024
1 parent 94541db commit 4551c08
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Deployment: 6 mins
| firestore\_location | Firestore location, see https://firebase.google.com/docs/firestore/locations | `string` | `"nam5"` | no |
| project\_id | The Google Cloud project ID to deploy to | `string` | n/a | yes |
| region | The Google Cloud region to deploy to | `string` | `"us-central1"` | no |
| unique\_names | Whether to use unique names for resources | `bool` | `false` | no |
| unique\_names | Whether to use unique names for resources | `bool` | `true` | no |
| webhook\_path | Path to the webhook source directory | `string` | `"webhook"` | no |

## Outputs
Expand Down
2 changes: 1 addition & 1 deletion assets/diagram_updated.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ locals {
bucket_main_name = var.unique_names ? "${var.project_id}-main-${random_id.unique_id.hex}" : "${var.project_id}-main"
bucket_docs_name = var.unique_names ? "${var.project_id}-docs-${random_id.unique_id.hex}" : "${var.project_id}-docs"
webhook_name = var.unique_names ? "webhook-${random_id.unique_id.hex}" : "webhook"
webhook_sa_name = var.unique_names ? "webhook-service-account-kb-${random_id.unique_id.hex}" : "webhook-service-account-kb"
webhook_sa_name = var.unique_names ? "webhook-service-account-${random_id.unique_id.hex}" : "webhook-service-account"
trigger_name = var.unique_names ? "trigger-${random_id.unique_id.hex}" : "trigger"
trigger_sa_name = var.unique_names ? "trigger-service-account-${random_id.unique_id.hex}" : "trigger-service-account"
ocr_processor_name = var.unique_names ? "ocr-processor-${random_id.unique_id.hex}" : "ocr-processor"
Expand Down
2 changes: 1 addition & 1 deletion metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ spec:
- name: unique_names
description: Whether to use unique names for resources
varType: bool
defaultValue: false
defaultValue: true
- name: webhook_path
description: Path to the webhook source directory
varType: string
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ variable "webhook_path" {
variable "unique_names" {
description = "Whether to use unique names for resources"
type = bool
default = false
default = true
}

0 comments on commit 4551c08

Please sign in to comment.