Skip to content

Commit

Permalink
fix: kubectl pvc describe command changed and uses 'Used By' instead …
Browse files Browse the repository at this point in the history
…of 'Mounted By' now
  • Loading branch information
perk-sumo committed Mar 4, 2022
1 parent 233906d commit 6c0f4ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/pvc-cleaner
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function check_if_pvc_unmounted() {
local pvc_name="${1}"

kubectl -n "${NAMESPACE}" describe pvc "${pvc_name}" \
| grep "^Mounted By:" \
| grep "^Used By:" \
| grep -q "<none>"

return $?
Expand Down

0 comments on commit 6c0f4ad

Please sign in to comment.