{{- define "metrics-values" }} {{- with .Values.metrics.additionalRuleLabels }} additionalRuleLabels: {{- toYaml . | nindent 2 }} {{- end }} {{- with .Values.metrics.istio }} istio: {{- toYaml . | nindent 2 }} {{- end }} {{- with index .Values "metrics" "kube-prometheus-stack" }} kube-prometheus-stack: {{- toYaml . | nindent 2 }} {{- end }} {{- with index .Values "metrics" "prometheus-adapter" }} prometheus-adapter: {{- toYaml . | nindent 2 }} {{- end }} {{- with index .Values "metrics" "prometheus-pushgateway" }} prometheus-pushgateway: {{- toYaml . | nindent 2 }} {{- end }} {{- end }} {{- define "metrics-argo" }} ignoreDifferences: - group: admissionregistration.k8s.io kind: ValidatingWebhookConfiguration jsonPointers: - /webhooks/0/failurePolicy - group: admissionregistration.k8s.io kind: MutatingWebhookConfiguration jsonPointers: - /webhooks/0/failurePolicy {{- end }} {{ include "kubezero-app.app" . }}