mirror of
https://github.com/bitnami/charts.git
synced 2026-03-16 06:47:30 +08:00
* [bitnami/tomcat] Fix issue on network policy * [bitnami/tomcat] bump tomcat version * [bitnami/tomcat] Update np to use common capabilities function * [bitnami/tomcat] Networkpolicy * [bitnami/cassandra,etcd,influxdb,metallb,mysql,postgresql,postgresql-ha,redis] Align networkpolicy to used common function common.capabilities.networkPolicy.apiVersion * [bitnami/tomcat] Add prometheusRules support * [bitnami/tomcat] fix trailing-spaces * Update bitnami/tomcat/templates/prometheusrule.yaml Co-authored-by: Ibone González Mauraza <gibone@vmware.com> * Update bitnami/tomcat/templates/prometheusrule.yaml Co-authored-by: Ibone González Mauraza <gibone@vmware.com> * Update bitnami/tomcat/Chart.yaml Co-authored-by: Carlos Rodríguez Hernández <carrodher1179@gmail.com> * [bitnami/tomcat] Fix prometheusRules Co-authored-by: Ibone González Mauraza <gibone@vmware.com> Co-authored-by: Carlos Rodríguez Hernández <carrodher1179@gmail.com>
27 lines
1.1 KiB
YAML
27 lines
1.1 KiB
YAML
{{- if and .Values.metrics.jmx.enabled .Values.metrics.prometheusRule.enabled }}
|
|
apiVersion: monitoring.coreos.com/v1
|
|
kind: PrometheusRule
|
|
metadata:
|
|
name: {{ template "common.names.fullname" . }}
|
|
{{- with .Values.metrics.prometheusRule.namespace }}
|
|
namespace: {{ . }}
|
|
{{- end }}
|
|
labels:
|
|
{{- include "common.labels.standard" . | nindent 4 }}
|
|
{{- if .Values.commonLabels }}
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
{{- with .Values.metrics.prometheusRule.additionalLabels }}
|
|
{{- include "common.tplvalues.render" (dict "value" .Values.metrics.prometheusRule.additionalLabels "context" $) | nindent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.commonAnnotations }}
|
|
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
{{- with .Values.metrics.prometheusRule.rules }}
|
|
groups:
|
|
- name: {{ template "common.names.name" $ }}
|
|
rules: {{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | nindent 8 }}
|
|
{{- end }}
|
|
{{- end }}
|