Skip to content

Commit

Permalink
pre-delete-hook: support compressed kubectl
Browse files Browse the repository at this point in the history
  • Loading branch information
DorWeiss authored and oded-s1 committed Aug 7, 2024
1 parent 56a6b4d commit f75af9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions charts/s1-agent/templates/hooks/pre-delete-hook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ spec:
command: [ "/bin/bash", "-c" ]
args:
- >
tar xzf /s1-helper/kubectl.tar.gz -C /s1-helper/;
/s1-helper/kubectl get pods --no-headers --field-selector status.phase=Running -o custom-columns=':metadata.name' |
grep {{ include "helper.fullname" . }} |
xargs -I _ bash -c 'for i in {1..3}; do
Expand Down

0 comments on commit f75af9d

Please sign in to comment.