Skip to content

Commit 95513ae

Browse files
raminenilingxiankong
authored andcommitted
[cinder-csi-plugin] Remove preStop hook
1 parent 7c07db1 commit 95513ae

File tree

3 files changed

+6
-14
lines changed

3 files changed

+6
-14
lines changed

charts/cinder-csi-plugin/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v1
22
appVersion: latest
33
description: Cinder CSI Chart for OpenStack
44
name: openstack-cinder-csi
5-
version: 1.4.7
5+
version: 1.4.8
66
home: https://github.com/kubernetes/cloud-provider-openstack
77
icon: https://github.com/kubernetes/kubernetes/blob/master/logo/logo.png
88
maintainers:

charts/cinder-csi-plugin/templates/nodeplugin-daemonset.yaml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,11 @@ spec:
2222
args:
2323
- "--csi-address=$(ADDRESS)"
2424
- "--kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)"
25-
lifecycle:
26-
preStop:
27-
exec:
28-
command: ["/bin/sh", "-c", "rm -rf /registration/cinder.csi.openstack.org /registration/cinder.csi.openstack.org-reg.sock"]
2925
env:
3026
- name: ADDRESS
3127
value: /csi/csi.sock
3228
- name: DRIVER_REG_SOCK_PATH
33-
value: {{ .Values.csi.nodePlugin.kubeletDir }}/plugins/cinder.csi.openstack.org/csi.sock
29+
value: {{ .Values.csi.plugin.nodePlugin.kubeletDir }}/plugins/cinder.csi.openstack.org/csi.sock
3430
- name: KUBE_NODE_NAME
3531
valueFrom:
3632
fieldRef:
@@ -84,7 +80,7 @@ spec:
8480
- name: socket-dir
8581
mountPath: /csi
8682
- name: kubelet-dir
87-
mountPath: {{ .Values.csi.nodePlugin.kubeletDir }}
83+
mountPath: {{ .Values.csi.plugin.nodePlugin.kubeletDir }}
8884
mountPropagation: "Bidirectional"
8985
- name: pods-probe-dir
9086
mountPath: /dev
@@ -94,15 +90,15 @@ spec:
9490
volumes:
9591
- name: socket-dir
9692
hostPath:
97-
path: {{ .Values.csi.nodePlugin.kubeletDir }}/plugins/cinder.csi.openstack.org
93+
path: {{ .Values.csi.plugin.nodePlugin.kubeletDir }}/plugins/cinder.csi.openstack.org
9894
type: DirectoryOrCreate
9995
- name: registration-dir
10096
hostPath:
101-
path: {{ .Values.csi.nodePlugin.kubeletDir }}/plugins_registry/
97+
path: {{ .Values.csi.plugin.nodePlugin.kubeletDir }}/plugins_registry/
10298
type: Directory
10399
- name: kubelet-dir
104100
hostPath:
105-
path: {{ .Values.csi.nodePlugin.kubeletDir }}
101+
path: {{ .Values.csi.plugin.nodePlugin.kubeletDir }}
106102
type: Directory
107103
# - name: pods-cloud-data
108104
# hostPath:

manifests/cinder-csi-plugin/cinder-csi-nodeplugin.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ spec:
2525
args:
2626
- "--csi-address=$(ADDRESS)"
2727
- "--kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)"
28-
lifecycle:
29-
preStop:
30-
exec:
31-
command: ["/bin/sh", "-c", "rm -rf /registration/cinder.csi.openstack.org /registration/cinder.csi.openstack.org-reg.sock"]
3228
env:
3329
- name: ADDRESS
3430
value: /csi/csi.sock

0 commit comments

Comments
 (0)