Skip to content

Commit

Permalink
Merge pull request #73 from gimlet-io/add-cronjob-schedule-to-ui
Browse files Browse the repository at this point in the history
Add schedule field for cronjob to the UI
  • Loading branch information
YoucefGuichi authored Jun 9, 2023
2 parents d37592f + ad1d211 commit 00bc7eb
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/cron-job/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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 modified charts/cron-job/charts/common-0.3.0.tgz
Binary file not shown.
1 change: 1 addition & 0 deletions charts/cron-job/helm-ui.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[
{
"schemaIDs": [
"#/properties/schedule",
"#/properties/image",
"#/properties/shell",
"#/properties/command"
Expand Down
11 changes: 11 additions & 0 deletions charts/cron-job/tests/cronjob_schedule_test.yaml
Original file line number Diff line number Diff line change
@@ -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 * * * *"
7 changes: 7 additions & 0 deletions charts/cron-job/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion charts/onechart/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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 modified charts/onechart/charts/common-0.3.0.tgz
Binary file not shown.

0 comments on commit 00bc7eb

Please sign in to comment.