Skip to content

Commit

Permalink
Add exit_on_missing_iglu_schema variable
Browse files Browse the repository at this point in the history
  • Loading branch information
oguzhanunlu committed Sep 26, 2024
1 parent 26dee12 commit 02ac506
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ locals {
telemetry_auto_gen_id = join("", module.telemetry.*.auto_generated_id)
telemetry_module_name = local.module_name
telemetry_module_version = local.module_version

exit_on_missing_iglu_schema = var.exit_on_missing_iglu_schema
})

startup_script = templatefile("${path.module}/templates/startup-script.sh.tmpl", {
Expand Down
2 changes: 2 additions & 0 deletions templates/config.json.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

"skipSchemas": ${skip_schemas}

"exitOnMissingIgluSchema": ${exit_on_missing_iglu_schema}

"legacyColumns": ${legacy_columns}

%{ if webhook_collector != "" ~}
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -231,3 +231,9 @@ variable "healthcheck_enabled" {
type = bool
default = true
}

variable "exit_on_missing_iglu_schema" {
description = "Whether the loader should crash and exit if it fails to resolve an iglu schema"
type = bool
default = true
}

0 comments on commit 02ac506

Please sign in to comment.