forked from kubesphere-sigs/pipeline-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sleep.yaml
41 lines (41 loc) · 1020 Bytes
/
sleep.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
apiVersion: devops.kubesphere.io/v1alpha3
kind: ClusterStepTemplate
metadata:
name: jsleep
labels:
step.devops.kubesphere.io/category: "general"
annotations:
devops.kubesphere.io/displayNameEN: "Sleep"
devops.kubesphere.io/descriptionEN: "Pause the process for specific time"
step.devops.kubesphere.io/icon: "clock"
spec:
runtime: dsl
parameters:
- name: unit
type: enum
defaultValue: 'SECONDS'
options: '[{"label":"Seconds","value":"SECONDS"},{"label":"Minutes","value":"MINUTES"},{"label":"Hours","value":"HOURS"}]'
display: 'Unit'
- name: time
type: number
display: 'Time'
template: |
{
"arguments": [
{
"key": "time",
"value": {
"isLiteral": true,
"value": {{.param.time}}
}
},
{
"key": "unit",
"value": {
"isLiteral": true,
"value": "{{.param.unit}}"
}
}
],
"name": "jsleep"
}