Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
do not block on post-stop failures
Browse files Browse the repository at this point in the history
  • Loading branch information
poblin-orange committed Jun 2, 2023
1 parent 9aa75b8 commit 1615924
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jobs/k3s-agent/templates/bin/post-stop.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
<% if_p('k3s.do-not-killall-on-post-stop') do |value| %>
<% if p('k3s.do-not-killall-on-post-stop') %>
echo "post-stop: SKIP k3s-killall.sh"
exit 0

<% else %>
echo "post-stop: k3s-killall.sh to clean the host"
/var/vcap/jobs/k3s-agent/bin/k3s-killall.sh
exit 0
<% end %>
<% end %>
2 changes: 2 additions & 0 deletions jobs/k3s-server/templates/bin/post-stop.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
<% if_p('k3s.do-not-killall-on-post-stop') do |value| %>
<% if p('k3s.do-not-killall-on-post-stop') %>
echo "post-stop: SKIP k3s-killall.sh"
exit 0
<% else %>
echo "post-stop: k3s-killall.sh to clean the host"
/var/vcap/jobs/k3s-agent/bin/k3s-killall.sh
exit 0
<% end %>
<% end %>

0 comments on commit 1615924

Please sign in to comment.