kubezero/charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus/csi-secret.yaml

13 lines
515 B
YAML
Raw Normal View History

2023-04-14 10:44:57 +00:00
{{- if and .Values.prometheus.prometheusSpec.thanos .Values.prometheus.prometheusSpec.thanos.secretProviderClass }}
2021-12-09 18:03:55 +00:00
---
apiVersion: secrets-store.csi.x-k8s.io/v1alpha1
kind: SecretProviderClass
metadata:
name: {{ template "kube-prometheus-stack.fullname" . }}-prometheus
namespace: {{ template "kube-prometheus-stack.namespace" . }}
labels:
app: {{ template "kube-prometheus-stack.name" . }}-prometheus
spec:
{{ toYaml .Values.prometheus.prometheusSpec.thanos.secretProviderClass | indent 2 }}
2023-04-14 10:44:57 +00:00
{{- end }}