Add schedule field for cronjob to the UI
This commit is contained in:
@@ -15,9 +15,9 @@ type: application
|
||||
# This is the chart version. This version number should be incremented each time you make changes
|
||||
# to the chart and its templates, including the app version.
|
||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||
version: 0.49.0
|
||||
version: 0.50.0
|
||||
|
||||
dependencies:
|
||||
- name: common
|
||||
version: 0.3.0
|
||||
version: 0.4.0
|
||||
repository: file://../common
|
||||
|
||||
Binary file not shown.
@@ -3,7 +3,8 @@
|
||||
"schemaIDs": [
|
||||
"#/properties/image",
|
||||
"#/properties/shell",
|
||||
"#/properties/command"
|
||||
"#/properties/command",
|
||||
"#/properties/schedule"
|
||||
],
|
||||
"uiSchema": {
|
||||
"#/properties/replicas": {
|
||||
|
||||
@@ -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",
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user