-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: prepare for migration to kube
- Loading branch information
Showing
5 changed files
with
36 additions
and
23 deletions.
There are no files selected for viewing
26 changes: 4 additions & 22 deletions
26
infra/tf/modules/darkbot/main.tf → infra/tf/modules/darkbot/docker.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
variable "tag_version" { | ||
type = string | ||
} | ||
|
||
variable "configurator_dbname" { | ||
type = string | ||
} | ||
|
||
variable "consoler_prefix" { | ||
type = string | ||
} | ||
|
||
variable "debug" { | ||
type = bool | ||
default = false | ||
} | ||
|
||
variable "secrets" { | ||
type = map(string) | ||
} | ||
|
||
variable "mode" { | ||
type = string | ||
|
||
validation { | ||
condition = contains(["kubernetes", "docker"], var.mode) | ||
error_message = "Valid mode. should be docker or kubernetes" | ||
} | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,4 +23,5 @@ module "darkbot" { | |
secrets = local.secrets | ||
tag_version = "v1.5.1-arm" | ||
debug = false | ||
mode = "docker" | ||
} |