mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 03:33:56 +00:00
Merge pull request #117283 from defo89/pv-recycler-change-cmd
change pv recycler scrub cmd to find -delete
This commit is contained in:
commit
cb8d9f6867
@ -3116,7 +3116,7 @@ spec:
|
||||
- /bin/sh
|
||||
args:
|
||||
- -c
|
||||
- test -e /scrub && rm -rf /scrub/..?* /scrub/.[!.]* /scrub/* && test -z $(ls -A /scrub) || exit 1
|
||||
- test -e /scrub && find /scrub -mindepth 1 -delete && test -z $(ls -A /scrub) || exit 1
|
||||
volumeMounts:
|
||||
- name: vol
|
||||
mountPath: /scrub
|
||||
|
@ -1063,7 +1063,7 @@ func NewPersistentVolumeRecyclerPodTemplate() *v1.Pod {
|
||||
Name: "pv-recycler",
|
||||
Image: "registry.k8s.io/debian-base:v2.0.0",
|
||||
Command: []string{"/bin/sh"},
|
||||
Args: []string{"-c", "test -e /scrub && rm -rf /scrub/..?* /scrub/.[!.]* /scrub/* && test -z \"$(ls -A /scrub)\" || exit 1"},
|
||||
Args: []string{"-c", "test -e /scrub && find /scrub -mindepth 1 -delete && test -z \"$(ls -A /scrub)\" || exit 1"},
|
||||
VolumeMounts: []v1.VolumeMount{
|
||||
{
|
||||
Name: "vol",
|
||||
|
Loading…
Reference in New Issue
Block a user