Skip to content

Commit 756131d

Browse files
committed
chore(wip): validate test fails as expected with broken irsa config
1 parent 101f595 commit 756131d

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

src/loki/values/values.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -61,23 +61,23 @@ loki:
6161
index:
6262
prefix: loki_index_
6363
period: 24h
64-
- from: "{{- $secret := lookup \"v1\" \"Secret\" \"loki\" \"loki\" -}}
65-
{{- $pastDate := now | dateModify \"-48h\" | date \"2006-01-02\" -}}
66-
{{- $futureDate := now | dateModify \"+48h\" | date \"2006-01-02\" -}}
64+
- from: '{{- $secret := lookup "v1" "Secret" "loki" "loki" -}}
65+
{{- $pastDate := now | dateModify "-48h" | date "2006-01-02" -}}
66+
{{- $futureDate := now | dateModify "+48h" | date "2006-01-02" -}}
6767
{{- $result := $pastDate -}}
6868
{{- if $secret -}}
69-
{{- $result = $futureDate -}}
70-
{{- if (index $secret.data \"config.yaml\") -}}
71-
{{- $configYAML := (index $secret.data \"config.yaml\" | b64dec | fromYaml) -}}
72-
{{- range $configYAML.schema_config.configs -}}
73-
{{- if and (eq .store \"tsdb\") (eq .schema \"v13\") -}}
74-
{{- $result = .from -}}
75-
{{- break -}}
76-
{{- end -}}
77-
{{- end -}}
78-
{{- end -}}
69+
{{- $result = $futureDate -}}
70+
{{- if (index $secret.data "config.yaml") -}}
71+
{{- $configYAML := (index $secret.data "config.yaml" | b64dec | fromYaml) -}}
72+
{{- range $configYAML.schema_config.configs -}}
73+
{{- if and (eq .store "tsdb") (eq .schema "v13") -}}
74+
{{- $result = .from -}}
75+
{{- break -}}
7976
{{- end -}}
80-
{{- $result -}}"
77+
{{- end -}}
78+
{{- end -}}
79+
{{- end -}}
80+
{{- $result -}}'
8181
store: tsdb
8282
object_store: "{{ .Values.loki.storage.type }}"
8383
schema: v13
@@ -224,7 +224,7 @@ write:
224224
# Use shared loki SA instead of creating a write-specific one
225225
# https://github.com/grafana-community/helm-charts/issues/390
226226
serviceAccount:
227-
create: false
227+
create: true # temporarily set to true to test broken irsa config and validate CI test fails when it should.
228228

229229
backend:
230230
# Remove default anti-affinity to support single node

0 commit comments

Comments
 (0)