Files
charts/bitnami/kube-prometheus/templates/prometheus/additionalScrapeJobs.yaml
Miguel Ruiz 43a25bba3f [bitnami/kube-prometheus] Standardize kube-prometheus (#10309)
* [bitnami/kube-prometheus] Chart standardised

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>

* [bitnami/kube-prometheus] Chart standardised

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>

* Update README

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>

* Implement missing parameters

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* Apply common.names.namespace

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>

* Fix issue

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>

* Fix issue

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* Update VIB runtime parameters

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>

* Update VIB runtime parameters

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>

* Remove test file

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>

* [bitnami/kube-prometheus] Update components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

Co-authored-by: Bitnami Containers <containers@bitnami.com>
2022-05-27 15:38:22 +02:00

17 lines
907 B
YAML

{{- if (and .Values.prometheus.additionalScrapeConfigs.enabled (eq .Values.prometheus.additionalScrapeConfigs.type "internal") ) }}
apiVersion: v1
kind: Secret
metadata:
name: additional-scrape-jobs-{{ template "kube-prometheus.prometheus.fullname" . }}
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "kube-prometheus.prometheus.labels" . | nindent 4 }}
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
data:
scrape-jobs.yaml: {{ include "common.tplvalues.render" ( dict "value" .Values.prometheus.additionalScrapeConfigs.internal.jobList "context" $ ) | b64enc | quote }}
{{- end }}