helm: only copy relevant monitoring settings
The cephcluster CR monitoring schema should be honored. The helm
chart was creating extra values that didn't match the schema by
copying the values such as createPrometheusRules that are only
used for template evaluation. Now only the monitoring values
from the schema will be added to the template.
Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 36f59bd527)
This commit is contained in:
1 parent
223de94313
commit
c6179f0196
2 files changed
+11
-1
No files matched your search
@@ -5,6 +5,13 @@ metadata:
|
||||
name: {{ default .Release.Namespace .Values.clusterName }}
|
||||
spec:
|
||||
monitoring:
|
||||
{{ toYaml .Values.monitoring | indent 4 }}
|
||||
enabled: {{ .Values.monitoring.enabled | default false }}
|
||||
{{- if .Values.monitoring.externalMgrEndpoints }}
|
||||
externalMgrEndpoints:
|
||||
{{ toYaml .Values.monitoring.externalMgrEndpoints | indent 6 }}
|
||||
{{- end }}
|
||||
{{- if .Values.monitoring.externalMgrPrometheusPort }}
|
||||
externalMgrPrometheusPort: {{ toYaml .Values.monitoring.externalMgrPrometheusPort }}
|
||||
{{- end }}
|
||||
|
||||
{{ toYaml .Values.cephClusterSpec | indent 2 }}
|
||||
@@ -44,6 +44,9 @@ monitoring:
|
||||
# If you have multiple rook-ceph clusters in the same k8s cluster, choose the same namespace (ideally, namespace with prometheus
|
||||
# deployed) to set rulesNamespace for all the clusters. Otherwise, you will get duplicate alerts with multiple alert definitions.
|
||||
rulesNamespaceOverride:
|
||||
# Monitoring settings for external clusters:
|
||||
# externalMgrEndpoints: <list of endpoints>
|
||||
# externalMgrPrometheusPort: <port>
|
||||
|
||||
# If true, create & use PSP resources. Set this to the same value as the rook-ceph chart.
|
||||
pspEnable: true
|
||||
|
||||
Reference in new issue
Block a user