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" . }} app: {{ include "ceph-csi-cephfs.name" . }}
component: {{ .Values.nodeplugin.name }} component: {{ .Values.nodeplugin.name }}
release: {{ .Release.Name }} release: {{ .Release.Name }}
updateStrategy:
type: {{ .Values.nodeplugin.updateStrategy }}
template: template:
metadata: metadata:
labels: labels:

View File

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

View File

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

View File

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

View File

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

View File

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