Remove hard-coded UpdateStrategy from templates

Provided an option to specify the UpdateStrategy
in helm  charts.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna 2020-01-02 14:18:30 +05:30 committed by mergify[bot]
parent 74cb18bd28
commit 4d28a981fc
6 changed files with 7 additions and 5 deletions

View File

@ -15,6 +15,8 @@ spec:
app: {{ include "ceph-csi-cephfs.name" . }}
component: {{ .Values.nodeplugin.name }}
release: {{ .Release.Name }}
updateStrategy:
type: {{ .Values.nodeplugin.updateStrategy }}
template:
metadata:
labels:

View File

@ -29,6 +29,8 @@ csiConfig: []
nodeplugin:
name: nodeplugin
# if you are using ceph-fuse client set this value to OnDelete
updateStrategy: RollingUpdate
httpMetrics:
# Metrics only available for cephcis/cephsi => 1.2.0

View File

@ -16,7 +16,7 @@ spec:
component: {{ .Values.nodeplugin.name }}
release: {{ .Release.Name }}
updateStrategy:
type: OnDelete
type: {{ .Values.nodeplugin.updateStrategy }}
template:
metadata:
labels:

View File

@ -29,6 +29,8 @@ csiConfig: []
nodeplugin:
name: nodeplugin
# if you are using rbd-nbd client set this value to OnDelete
updateStrategy: RollingUpdate
httpMetrics:
# Metrics only available for cephcsi/cephcsi => 1.2.0

View File

@ -7,8 +7,6 @@ spec:
selector:
matchLabels:
app: csi-rbdplugin
updateStrategy:
type: OnDelete
template:
metadata:
labels:

View File

@ -7,8 +7,6 @@ spec:
selector:
matchLabels:
app: csi-rbdplugin
updateStrategy:
type: OnDelete
template:
metadata:
labels: