Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding the timeUnit parameter #349

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion graduated/pending-approval/step.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ metadata:
title: Wait for approval
timeout:
duration: 1
timeUnit: minutes
finalState: denied
spec:
arguments: |
Expand All @@ -45,9 +46,18 @@ spec:
"description": "Define timeout behavior",
"properties": {
"duration": {
"description": "Duration of the timeout in hours",
"description": "Duration of the timeout in hours by default",
"type": "number"
},
"timeUnit": {
"description": "Duration unit. Can be hours or minutes",
"default": "hours",
"enum": [
"hours",
"minutes"
],
"type": "string"
},
"finalState": {
"description": "The final state of the step once the timeout is reached",
"default": "terminated",
Expand Down
Loading