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 <[email protected]> * fix: linting Signed-off-by: ThameezBo <[email protected]> * fix: update README Signed-off-by: ThameezBo <[email protected]> * fix: linting Signed-off-by: ThameezBo <[email protected]> * fix: comments Signed-off-by: ThameezBo <[email protected]> * Update charts/kube-prometheus-stack/values.yaml Co-authored-by: Gabriel Martinez <[email protected]> Signed-off-by: thameezb <[email protected]> * fix: cater for prom.promSpec.thanos Signed-off-by: ThameezBo <[email protected]> * fix: linting Signed-off-by: ThameezBo <[email protected]> * fix: cater for all three permutations Signed-off-by: ThameezBo <[email protected]> --------- Signed-off-by: ThameezBo <[email protected]> Signed-off-by: thameezb <[email protected]> Signed-off-by: thameezbo <[email protected]> Co-authored-by: Gabriel Martinez <[email protected]> Signed-off-by: Sacha <[email protected]>
- Loading branch information
1 parent
9b34ee5
commit d620383
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