[bitnami/kube-prometheus] objectStorageConfig.secretName (#16673)

* [bitnami/kube-prometheus] objectStorageConfig.secretName

Signed-off-by: Fran Mulero <fmulero@vmware.com>

* Version bump and README update

Signed-off-by: Fran Mulero <fmulero@vmware.com>

---------

Signed-off-by: Fran Mulero <fmulero@vmware.com>
This commit is contained in:
Fran Mulero
2023-05-25 09:30:24 +02:00
committed by GitHub
parent 2410fc6383
commit 1ef58e09ac
4 changed files with 10 additions and 6 deletions

View File

@@ -32,4 +32,4 @@ maintainers:
name: kube-prometheus
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/kube-prometheus
version: 8.10.3
version: 8.10.4

View File

@@ -363,7 +363,8 @@ The command removes all the Kubernetes components associated with the chart and
| `prometheus.thanos.containerSecurityContext.capabilities.drop` | Linux Kernel capabilities which should be dropped | `[]` |
| `prometheus.thanos.prometheusUrl` | Override default prometheus url `http://localhost:9090` | `""` |
| `prometheus.thanos.extraArgs` | Additional arguments passed to the thanos sidecar container | `[]` |
| `prometheus.thanos.objectStorageConfig` | Support mounting a Secret for the objectStorageConfig of the sideCar container. | `{}` |
| `prometheus.thanos.objectStorageConfig.secretName` | Support mounting a Secret for the objectStorageConfig of the sideCar container. | `""` |
| `prometheus.thanos.objectStorageConfig.secretKey` | Secret key with the configuration file. | `thanos.yaml` |
| `prometheus.thanos.extraVolumeMounts` | Additional volumeMounts from `prometheus.volumes` for thanos sidecar container | `[]` |
| `prometheus.thanos.resources.limits` | The resources limits for the Thanos sidecar container | `{}` |
| `prometheus.thanos.resources.requests` | The resources requests for the Thanos sidecar container | `{}` |

View File

@@ -255,13 +255,13 @@ spec:
- --grpc-address=0.0.0.0:10901
- --http-address=0.0.0.0:10902
- --tsdb.path=/prometheus/
{{- if .Values.prometheus.thanos.objectStorageConfig }}
{{- if .Values.prometheus.thanos.objectStorageConfig.secretName }}
- --objstore.config=$(OBJSTORE_CONFIG)
{{- end }}
{{- if .Values.prometheus.thanos.extraArgs }}
{{ toYaml .Values.prometheus.thanos.extraArgs | indent 8 | trim }}
{{- end }}
{{- if .Values.prometheus.thanos.objectStorageConfig }}
{{- if .Values.prometheus.thanos.objectStorageConfig.secretName }}
env:
- name: OBJSTORE_CONFIG
valueFrom:

View File

@@ -1208,13 +1208,16 @@ prometheus:
## - --tsdb.path=/data/
##
extraArgs: []
## @param prometheus.thanos.objectStorageConfig Support mounting a Secret for the objectStorageConfig of the sideCar container.
## @param prometheus.thanos.objectStorageConfig.secretName Support mounting a Secret for the objectStorageConfig of the sideCar container.
## @param prometheus.thanos.objectStorageConfig.secretKey Secret key with the configuration file.
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/thanos.md
## objectStorageConfig:
## secretName: thanos-objstore-config
## secretKey: thanos.yaml
##
objectStorageConfig: {}
objectStorageConfig:
secretName: ""
secretKey: thanos.yaml
## ref: https://github.com/thanos-io/thanos/blob/main/docs/components/sidecar.md
## @param prometheus.thanos.extraVolumeMounts Additional volumeMounts from `prometheus.volumes` for thanos sidecar container
## extraVolumeMounts: