Skip to content

Commit

Permalink
Fix retry-container-to-completion example
Browse files Browse the repository at this point in the history
  • Loading branch information
jessesuen committed Feb 21, 2018
1 parent 07422f2 commit 9f60558
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/retry-container-to-completion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ spec:
retryStrategy: {}
container:
image: python
command: ["python"]
# fail with a 66% probability
args: ["import random; import sys; exit_code = random.choice([0, 1, 1]); sys.exit(exit_code)"]
command: ["python", "-c"]
# fail with a 80% probability
args: ["import random; import sys; exit_code = random.choice(range(0, 5)); sys.exit(exit_code)"]

0 comments on commit 9f60558

Please sign in to comment.