Skip to content

Commit

Permalink
fix: 🐛 remove existing pvc (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaskaransarkaria authored Dec 17, 2024
1 parent a847163 commit 85282a5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
3 changes: 0 additions & 3 deletions templates/thanos-values.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,6 @@ compactor:
retentionResolution5m: 180d
retentionResolution1h: 365d
persistence:
%{ if compactor_existing_pvc_claim_id != "disabled" ~}
existingClaim: "${compactor_existing_pvc_claim_id}"
%{ endif ~}
size: 16000Gi
serviceAccount:
create: false
Expand Down
9 changes: 4 additions & 5 deletions thanos.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@ resource "helm_release" "thanos" {
version = "15.0.0"
timeout = 900
values = [templatefile("${path.module}/templates/thanos-values.yaml.tpl", {
prometheus_sa_name = local.prometheus_sa_name
enabled_compact = var.enable_thanos_compact
monitoring_aws_role = module.iam_assumable_role_monitoring.this_iam_role_name
clusterName = terraform.workspace
compactor_existing_pvc_claim_id = var.compactor_existing_pvc_claim_id
prometheus_sa_name = local.prometheus_sa_name
enabled_compact = var.enable_thanos_compact
monitoring_aws_role = module.iam_assumable_role_monitoring.this_iam_role_name
clusterName = terraform.workspace
})]

depends_on = [
Expand Down
5 changes: 0 additions & 5 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,3 @@ variable "aws_subnet_exporter_image_tag" {
default = ""
type = string
}

variable "compactor_existing_pvc_claim_id" {
description = "this is an existing pvc that thanos compactor should connect with"
default = "disabled"
}

0 comments on commit 85282a5

Please sign in to comment.