From 4149e776f81082396c06b29deff6743641374933 Mon Sep 17 00:00:00 2001 From: Josh Wolf Date: Wed, 24 Apr 2024 20:31:27 -0400 Subject: [PATCH] update the loki tests to use the 3.0 helm chart schema (#2568) Signed-off-by: Josh Wolf --- images/loki/tests/main.tf | 55 ++++++++++++++++++++++++++++++++++----- 1 file changed, 48 insertions(+), 7 deletions(-) diff --git a/images/loki/tests/main.tf b/images/loki/tests/main.tf index 8eafeebee5..5f34b6cbe8 100644 --- a/images/loki/tests/main.tf +++ b/images/loki/tests/main.tf @@ -26,6 +26,7 @@ module "helm" { repo = "https://grafana.github.io/helm-charts" values = { + deploymentMode = "SingleBinary" loki = { commonConfig = { replication_factor = 1 @@ -38,10 +39,19 @@ module "helm" { storage = { type = "filesystem" } - } - backend = { - persistence = { - size = "1Gi" + schemaConfig = { + configs = [ + { + from = "2024-01-01" + store = "tsdb" + index = { + prefix = "loki_index_" + period = "24h" + } + object_store = "filesystem" + schema = "v13" + } + ] } } singleBinary = { @@ -53,10 +63,41 @@ module "helm" { repository = data.oci_string.ref.repo tag = data.oci_string.ref.pseudo_tag } + backend = { + replicas = 0 + } + read = { + replicas = 0 + } write = { - persistence = { - size = "1Gi" - } + replicas = 0 + } + ingester = { + replicas = 0 + } + querier = { + replicas = 0 + } + queryFrontend = { + replicas = 0 + } + queryScheduler = { + replicas = 0 + } + distributor = { + replicas = 0 + } + compactor = { + replicas = 0 + } + indexGateway = { + replicas = 0 + } + bloomCompactor = { + replicas = 0 + } + bloomGateway = { + replicas = 0 } } }