deploy: add cluster name in the templates

added in helm charts which should help users.

Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
This commit is contained in:
Prasanna Kumar Kalever 2022-04-12 18:51:12 +05:30 committed by mergify[bot]
parent 09a8e5e9e6
commit fb58d73b1b
2 changed files with 8 additions and 0 deletions

View File

@ -152,6 +152,9 @@ spec:
{{- if .Values.provisioner.profiling.enabled }} {{- if .Values.provisioner.profiling.enabled }}
- "--enableprofiling={{ .Values.provisioner.profiling.enabled }}" - "--enableprofiling={{ .Values.provisioner.profiling.enabled }}"
{{- end }} {{- end }}
{{- if .Values.provisioner.clustername }}
- "--clustername={{ .Values.provisioner.clustername }}"
{{- end }}
env: env:
- name: POD_IP - name: POD_IP
valueFrom: valueFrom:
@ -199,6 +202,9 @@ spec:
- "--v={{ .Values.logLevel }}" - "--v={{ .Values.logLevel }}"
- "--drivername=$(DRIVER_NAME)" - "--drivername=$(DRIVER_NAME)"
- "--drivernamespace=$(DRIVER_NAMESPACE)" - "--drivernamespace=$(DRIVER_NAMESPACE)"
{{- if .Values.provisioner.clustername }}
- "--clustername={{ .Values.provisioner.clustername }}"
{{- end }}
env: env:
- name: DRIVER_NAMESPACE - name: DRIVER_NAMESPACE
valueFrom: valueFrom:

View File

@ -144,6 +144,8 @@ provisioner:
deployController: true deployController: true
# Timeout for waiting for creation or deletion of a volume # Timeout for waiting for creation or deletion of a volume
timeout: 60s timeout: 60s
# cluster name to set on the RBD image
# clustername: "k8s-cluster-1"
# Hard limit for maximum number of nested volume clones that are taken before # Hard limit for maximum number of nested volume clones that are taken before
# a flatten occurs # a flatten occurs
hardMaxCloneDepth: 8 hardMaxCloneDepth: 8