Skip to content

Commit

Permalink
remove preStop command (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwennrich authored Oct 17, 2022
1 parent 43098ad commit fd1dbc3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
4 changes: 0 additions & 4 deletions config/csi/lb-csi-plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -448,10 +448,6 @@ spec:
- "--v=4"
- "--csi-address=$(ADDRESS)"
- "--kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)"
lifecycle:
preStop:
exec:
command: ["/bin/sh", "-c", "rm -rf /registration/csi.lightbitslabs.com /registration/csi.lightbitslabs.com-reg.sock"]
env:
- name: ADDRESS
value: /csi/csi.sock
Expand Down
7 changes: 0 additions & 7 deletions controllers/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -642,13 +642,6 @@ var (
{Name: "DRIVER_REG_SOCK_PATH", Value: "/var/lib/kubelet/plugins/csi.lightbitslabs.com/csi.sock"},
{Name: "KUBE_NODE_NAME", ValueFrom: &corev1.EnvVarSource{FieldRef: &corev1.ObjectFieldSelector{FieldPath: "spec.nodeName"}}},
},
Lifecycle: &corev1.Lifecycle{PreStop: &corev1.LifecycleHandler{Exec: &corev1.ExecAction{
Command: []string{
"/bin/sh",
"-c",
"rm -rf /registration/csi.lightbitslabs.com /registration/csi.lightbitslabs.com-reg.sock",
},
}}},
VolumeMounts: []corev1.VolumeMount{
{Name: pluginDirVolume.Name, MountPath: "/csi"},
{Name: registrationDirVolume.Name, MountPath: "/registration/"},
Expand Down

0 comments on commit fd1dbc3

Please sign in to comment.