-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Martynas Pumputis <m@lambda.lt>
- Loading branch information
Showing
1 changed file
with
32 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9956043
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to add a
wait
and atrap
for the script to behave properly:9956043
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@azzid What did the
wait
andtrap
solve?9956043
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I guess you intended the commands to be run interactively - in which case they provide little of value.
I however copied the commands into a file and ran as a shell script - which first failed due to
kubectl logs
running before the pod was up:Adding the wait fixed that, but doing
ctrl+c
to exit logs then terminated the bash script rather than kubectl - which caused the delete to never run. Moving it to a trap sorts that.9956043
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@azzid Cool! Mind sending a PR?
9956043
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure! 🙂