Skip to content

Commit

Permalink
Merge pull request kubernetes#117283 from defo89/pv-recycler-change-cmd
Browse files Browse the repository at this point in the history
change pv recycler scrub cmd to find -delete
  • Loading branch information
k8s-ci-robot committed May 26, 2023
2 parents 719c9fe + 625c302 commit cb8d9f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cluster/gce/gci/configure-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/volume/plugins.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit cb8d9f6

Please sign in to comment.