forked from prometheus-community/helm-charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[kube-prometheus-stack] fixes thanos configs (prometheus-community#3918)
* break: kube-prom-stack thanos-ruler config secrets Signed-off-by: ThameezBo <thameezbo@double.cloud> * fix: linting Signed-off-by: ThameezBo <thameezbo@double.cloud> * fix: update README Signed-off-by: ThameezBo <thameezbo@double.cloud> * fix: linting Signed-off-by: ThameezBo <thameezbo@double.cloud> * fix: comments Signed-off-by: ThameezBo <thameezbo@double.cloud> * Update charts/kube-prometheus-stack/values.yaml Co-authored-by: Gabriel Martinez <19713226+GMartinez-Sisti@users.noreply.github.com> Signed-off-by: thameezb <thameezbo@double.cloud> * fix: cater for prom.promSpec.thanos Signed-off-by: ThameezBo <thameezbo@double.cloud> * fix: linting Signed-off-by: ThameezBo <thameezbo@double.cloud> * fix: cater for all three permutations Signed-off-by: ThameezBo <thameezbo@double.cloud> --------- Signed-off-by: ThameezBo <thameezbo@double.cloud> Signed-off-by: thameezb <thameezbo@double.cloud> Signed-off-by: thameezbo <thameezbo@double.cloud> Co-authored-by: Gabriel Martinez <19713226+GMartinez-Sisti@users.noreply.github.com>
- Loading branch information
Showing
7 changed files
with
198 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
charts/kube-prometheus-stack/templates/prometheus/secret.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{{- if .Values.prometheus.enabled }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ template "kube-prometheus-stack.fullname" . }}-prometheus | ||
namespace: {{ template "kube-prometheus-stack.namespace" . }} | ||
labels: | ||
app: {{ template "kube-prometheus-stack.name" . }}-prometheus | ||
app.kubernetes.io/component: prometheus | ||
{{ include "kube-prometheus-stack.labels" . | indent 4 }} | ||
data: | ||
{{- with .Values.prometheus.prometheusSpec.thanos.objectStorageConfig }} | ||
{{- if and .secret (not .existingSecret) }} | ||
object-storage-configs.yaml: {{ toYaml .secret | b64enc | quote }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters