ceph: allow overriding cluster CR name in helm chart

The cluster CR name defaults to the namespace where the CR is created.
This name may need to be overridden if the chart is taking over a
cluster that had been previously created with a different name.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
This commit is contained in:
Travis Nielsen committed 2021-06-17 15:03:31 -06:00
1 parent d5031c969b
commit a36c15547b
2 files changed
+4 -1

No files matched your search

@@ -2,7 +2,7 @@
apiVersion: ceph.rook.io/v1
kind: CephCluster
metadata:
name: {{ .Release.Namespace }}
name: {{ default .Release.Namespace .Values.clusterName }}
spec:
monitoring:
rulesNamespace: {{ default .Release.Namespace .Values.monitoring.rulesNamespaceOverride }}
@@ -5,6 +5,9 @@
# Namespace of the main rook operator
operatorNamespace: rook-ceph
# The metadata.name of the CephCluster CR. The default name is the same as the namespace.
#clusterName: rook-ceph
# Ability to override ceph.conf
configOverride:
#configOverride: |