Skip to content

Commit

Permalink
insecure flag when using debug image
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Sanft <[email protected]>
  • Loading branch information
msanft committed Nov 10, 2023
1 parent 771a137 commit a83078d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions terraform/aws-constellation/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ module "aws" {
module "constellation" {
source = "../constellation-cluster"
csp = "aws"
debug = var.debug
name = var.name
image = var.image
microservice_version = var.microservice_version
Expand Down
1 change: 1 addition & 0 deletions terraform/azure-constellation/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ module "azure" {
module "constellation" {
source = "../constellation-cluster"
csp = "azure"
debug = var.debug
name = var.name
image = var.image
microservice_version = var.microservice_version
Expand Down
2 changes: 1 addition & 1 deletion terraform/constellation-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ resource "null_resource" "config" {
./yq eval '.microserviceVersion = "${var.microservice_version}"' -i constellation-conf.yaml
fi
${local.yq_node_groups}
./constellation config fetch-measurements
./constellation config fetch-measurements ${var.debug == true ? "--insecure" : ""}
EOT
}

Expand Down
6 changes: 6 additions & 0 deletions terraform/constellation-cluster/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,9 @@ variable "microservice_version" {
type = string
description = "Microservice version."
}

variable "debug" {
type = bool
default = false
description = "DON'T USE IN PRODUCTION: Enable debug mode and allow the use of debug images."
}
1 change: 1 addition & 0 deletions terraform/gcp-constellation/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ resource "null_resource" "sa_account_file" {
module "constellation" {
source = "../constellation-cluster"
csp = "gcp"
debug = var.debug
name = var.name
image = var.image
microservice_version = var.microservice_version
Expand Down

0 comments on commit a83078d

Please sign in to comment.