Merge pull request #73 from gimlet-io/add-cronjob-schedule-to-ui
Add schedule field for cronjob to the UI
This commit is contained in:
@@ -3,4 +3,4 @@ dependencies:
|
||||
repository: file://../common
|
||||
version: 0.3.0
|
||||
digest: sha256:4f1fb49a840753587de0b15ccd8ae83f655fc8043d0a71a4cbec228365713b0d
|
||||
generated: "2023-06-05T11:59:22.87428553Z"
|
||||
generated: "2023-06-08T16:30:30.656437+02:00"
|
||||
|
||||
Binary file not shown.
@@ -1,6 +1,7 @@
|
||||
[
|
||||
{
|
||||
"schemaIDs": [
|
||||
"#/properties/schedule",
|
||||
"#/properties/image",
|
||||
"#/properties/shell",
|
||||
"#/properties/command"
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
suite: test cron job
|
||||
templates:
|
||||
- cronJob.yaml
|
||||
tests:
|
||||
- it: Should set schedule
|
||||
set:
|
||||
schedule: "*/1 * * * *"
|
||||
asserts:
|
||||
- equal:
|
||||
path: spec.schedule
|
||||
value: "*/1 * * * *"
|
||||
@@ -238,6 +238,13 @@
|
||||
"description": "The command to run in the cronjob",
|
||||
"default": "echo \"I'm alive\""
|
||||
},
|
||||
"schedule": {
|
||||
"$id": "#/properties/schedule",
|
||||
"type": "string",
|
||||
"title": "Schedule",
|
||||
"description": "Schedule your cronjob",
|
||||
"default": "*/1 * * * *"
|
||||
},
|
||||
"vars": {
|
||||
"$id": "#/properties/vars",
|
||||
"type": "object",
|
||||
|
||||
@@ -3,4 +3,4 @@ dependencies:
|
||||
repository: file://../common
|
||||
version: 0.3.0
|
||||
digest: sha256:4f1fb49a840753587de0b15ccd8ae83f655fc8043d0a71a4cbec228365713b0d
|
||||
generated: "2023-06-05T11:59:22.740486193Z"
|
||||
generated: "2023-06-08T16:30:30.052037+02:00"
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user