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
# 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.
+2 -1
View File
@@ -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 * * * *"
+7
View File
@@ -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.