Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
add precommit and remove gatus from default (#3)
Browse files Browse the repository at this point in the history
* add precommit and remove gatus from default

* Delete file already added in main: .pre-commit-config.yaml

---------

Co-authored-by: Charles Bushong <bushong1@gmail.com>
  • Loading branch information
AustinAbro321 and bushong1 authored Oct 30, 2023
1 parent 61119e5 commit f653044
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 25 deletions.
7 changes: 3 additions & 4 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ locals {
lifecycle_expiration_days = null
}
default_buckets = {
gatus = local.default_parameters
loki = local.default_parameters
thanos = local.default_parameters
velero = local.default_parameters
loki = local.default_parameters
thanos = local.default_parameters
velero = local.default_parameters
}
all_buckets = merge(local.default_buckets, var.bucket_specs)
}
Expand Down
17 changes: 2 additions & 15 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
output "gatus_s3_buckets" {
value = module.bucket["gatus"].s3_buckets
output "buckets" {
value = module.bucket
}

output "loki_s3_buckets" {
value = module.bucket["loki"].s3_buckets
}

output "thanos_s3_buckets" {
value = module.bucket["thanos"].s3_buckets
}

output "velero_s3_buckets" {
value = module.bucket["velero"].s3_buckets
}

12 changes: 6 additions & 6 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
variable "bucket_specs" {
type = map(object({
bucket_name_override = optional(string, "")
force_destroy = optional(bool, false)
tags = optional(map(any), {})
s3_bucket_kms_key_id = optional(string, null)
sse_algorithm = optional(string, "aws:kms")
bucket_name_override = optional(string, "")
force_destroy = optional(bool, false)
tags = optional(map(any), {})
s3_bucket_kms_key_id = optional(string, null)
sse_algorithm = optional(string, "aws:kms")
lifecycle_expiration_days = optional(number, null)
}))
default = {}
Expand All @@ -15,6 +15,6 @@ variable "cluster_name" {
}

variable "tags" {
type = map(any)
type = map(any)
default = {}
}

0 comments on commit f653044

Please sign in to comment.