Skip to content

Commit

Permalink
[kube-prometheus-stack] fixes thanos ruler object store configs (#3913)
Browse files Browse the repository at this point in the history
* fix: kube-prom-stack thanos-ruler objectstoreConfigs

Signed-off-by: ThameezBo <thameezbo@double.cloud>

* Update charts/kube-prometheus-stack/templates/thanos-ruler/ruler.yaml

Co-authored-by: Gabriel Martinez <19713226+GMartinez-Sisti@users.noreply.github.com>
Signed-off-by: thameezb <thameezbo@double.cloud>

* Update charts/kube-prometheus-stack/templates/thanos-ruler/secret.yaml

Co-authored-by: Gabriel Martinez <19713226+GMartinez-Sisti@users.noreply.github.com>
Signed-off-by: thameezb <thameezbo@double.cloud>

---------

Signed-off-by: ThameezBo <thameezbo@double.cloud>
Signed-off-by: thameezb <thameezbo@double.cloud>
Co-authored-by: Gabriel Martinez <19713226+GMartinez-Sisti@users.noreply.github.com>
  • Loading branch information
thameezb and GMartinez-Sisti committed Oct 18, 2023
1 parent 30dada6 commit 1a8f84a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/kube-prometheus-stack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ name: kube-prometheus-stack
sources:
- https://github.com/prometheus-community/helm-charts
- https://github.com/prometheus-operator/kube-prometheus
version: 51.9.1
version: 51.9.2
appVersion: v0.68.0
kubeVersion: ">=1.19.0-0"
home: https://github.com/prometheus-operator/kube-prometheus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ spec:
{{- end }}
{{- if .Values.thanosRuler.thanosRulerSpec.objectStorageConfig }}
objectStorageConfig:
{{ toYaml .Values.thanosRuler.thanosRulerSpec.objectStorageConfig | indent 4 }}
key: object-storage-configs.yaml
name: {{ template "kube-prometheus-stack.thanosRuler.name" . }}
{{- end }}
{{- if .Values.thanosRuler.thanosRulerSpec.labels }}
labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ data:
{{- if .Values.thanosRuler.thanosRulerSpec.alertmanagersConfig }}
alertmanager-configs.yaml: {{ toYaml .Values.thanosRuler.thanosRulerSpec.alertmanagersConfig | b64enc | quote }}
{{- end }}
{{- if .Values.thanosRuler.thanosRulerSpec.objectStorageConfig }}
object-storage-configs.yaml: {{ toYaml .Values.thanosRuler.thanosRulerSpec.objectStorageConfig | b64enc | quote }}
{{- end }}
{{- end }}

0 comments on commit 1a8f84a

Please sign in to comment.