Skip to content

Commit

Permalink
Merge pull request #25 from jensfr/fix-prestop
Browse files Browse the repository at this point in the history
fix command run at preStop event
  • Loading branch information
jensfr committed Nov 6, 2020
2 parents 812cded + 8607ac3 commit a3bf549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/openshift_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func (r *KataConfigOpenShiftReconciler) processDaemonsetForCR(operation DaemonOp
Lifecycle: &corev1.Lifecycle{
PreStop: &corev1.Handler{
Exec: &corev1.ExecAction{
Command: []string{"rm", "-rf", "/opt/kata-install", "/usr/local/kata/"},
Command: []string{"/bin/sh", "-c", "rm -rf /host/opt/kata-install /host/usr/local/kata/"},
},
},
},
Expand Down

0 comments on commit a3bf549

Please sign in to comment.