Skip to content

Commit

Permalink
fix: disable cron jobs flag
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Sukhin <[email protected]>
  • Loading branch information
vsukhin committed Feb 24, 2025
1 parent fdaa24f commit 37f2ff1
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/testkube-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ A Helm chart for the testkube-operator (installs needed CRDs only for now)
| affinity | object | `{}` | |
| apiFullname | string | `"testkube-api-server"` | |
| apiPort | int | `8088` | |
| disableCronJobs | bool | `false` | |
| useArgoCDSync| bool | `false` | |
| extraEnvVars | list | `[]` | |
| fullnameOverride | string | `""` | |
Expand Down
4 changes: 4 additions & 0 deletions charts/testkube-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ spec:
- name: APISERVER_PURGE_EXECUTIONS
value: "true"
{{- end }}
{{- if .Values.disableCronJobs }}
- name: APISERVER_CONFIG
value: {{ include "testkube-api.fullname" . }}
{{- end }}
ports:
- containerPort: {{ .Values.webhookServerPort }}
name: webhook-server
Expand Down
2 changes: 2 additions & 0 deletions charts/testkube-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ healthcheckPort: 8081
useArgoCDSync: false
# purge executions on CRD deletion
purgeExecutions: false
# disable cron jobs for scheduling test workflows
disableCronJobs: false

## Service Account parameters
serviceAccount:
Expand Down
1 change: 1 addition & 0 deletions charts/testkube/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@ kubectl label --overwrite crds scripts.tests.testkube.io app.kubernetes.io/manag
| testkube-operator.apiFullname | string | `"testkube-api-server"` | Testkube API full name |
| testkube-operator.apiPort | int | `8088` | Testkube API port |
| testkube-operator.cronJobTemplate | string | `""` | |
| testkube-operator.disableCronJobs | bool | `false` | Disable cron jobss for test workflows |
| testkube-operator.enabled | bool | `true` | |
| testkube-operator.extraEnvVars | list | `[]` | Extra environment variables to be set on deployment |
| testkube-operator.fullnameOverride | string | `"testkube-operator"` | Testkube Operator fullname override |
Expand Down
2 changes: 2 additions & 0 deletions charts/testkube/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -993,6 +993,8 @@ testkube-operator:
useArgoCDSync: false
# -- Purge executions on CRD deletion
purgeExecutions: false
# disable cron jobs for scheduling test workflows
disableCronJobs: false

# Service Account parameters
serviceAccount:
Expand Down

0 comments on commit 37f2ff1

Please sign in to comment.