Add schedule field for cronjob to the UI

This commit is contained in:
Youcef Guichi
2023-06-08 15:44:04 +02:00
parent d37592faeb
commit 8fe2bc6933
6 changed files with 22 additions and 3 deletions
+2 -2
View File
@@ -15,9 +15,9 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes # 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. # to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/) # Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.49.0 version: 0.50.0
dependencies: dependencies:
- name: common - name: common
version: 0.3.0 version: 0.4.0
repository: file://../common repository: file://../common
Binary file not shown.
+2 -1
View File
@@ -3,7 +3,8 @@
"schemaIDs": [ "schemaIDs": [
"#/properties/image", "#/properties/image",
"#/properties/shell", "#/properties/shell",
"#/properties/command" "#/properties/command",
"#/properties/schedule"
], ],
"uiSchema": { "uiSchema": {
"#/properties/replicas": { "#/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 * * * *"
+7
View File
@@ -238,6 +238,13 @@
"description": "The command to run in the cronjob", "description": "The command to run in the cronjob",
"default": "echo \"I'm alive\"" "default": "echo \"I'm alive\""
}, },
"schedule": {
"$id": "#/properties/schedule",
"type": "string",
"title": "Schedule",
"description": "Schedule your cronjob",
"default": "*/1 * * * *"
},
"vars": { "vars": {
"$id": "#/properties/vars", "$id": "#/properties/vars",
"type": "object", "type": "object",
Binary file not shown.