Skip to content

Commit

Permalink
refactor: standardize variables like in other modules
Browse files Browse the repository at this point in the history
  • Loading branch information
lentidas committed Jun 28, 2023
1 parent 9574559 commit 30a9f81
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
9 changes: 5 additions & 4 deletions kind/extra-variables.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
variable "metrics_storage" {
description = "MinIO S3 bucket configuration values for the bucket where the archived metrics will be stored."
type = object({
bucket_name = string
endpoint = string
access_key = string
secret_access_key = string
bucket_name = string
endpoint = string
access_key = string
secret_key = string
insecure = optional(bool, true)
})
}
4 changes: 2 additions & 2 deletions kind/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ locals {
bucket = "${var.metrics_storage.bucket_name}"
endpoint = "${var.metrics_storage.endpoint}"
access_key = "${var.metrics_storage.access_key}"
secret_key = "${var.metrics_storage.secret_access_key}"
insecure = true
secret_key = "${var.metrics_storage.secret_key}"
insecure = var.metrics_storage.insecure
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions sks/extra-variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ variable "cluster_id" {
variable "metrics_storage" {
description = "Exoscale SOS bucket configuration values for the bucket where the archived metrics will be stored."
type = object({
bucket_name = string
bucket_region = string
access_key = string
secret_access_key = string
bucket_name = string
region = string
access_key = string
secret_key = string
})
}
4 changes: 2 additions & 2 deletions sks/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ locals {
type = "S3"
config = {
bucket = "${var.metrics_storage.bucket_name}"
endpoint = "sos-${var.metrics_storage.bucket_region}.exo.io"
endpoint = "sos-${var.metrics_storage.region}.exo.io"
access_key = "${var.metrics_storage.access_key}"
secret_key = "${var.metrics_storage.secret_access_key}"
secret_key = "${var.metrics_storage.secret_key}"
}
}
}
Expand Down

0 comments on commit 30a9f81

Please sign in to comment.