File tree 10 files changed +76
-0
lines changed
10 files changed +76
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ metadata:
10
10
annotations : {{- include "global.tplvalues.render" ( dict "value" .Values.global.annotations "context" $ ) | nindent 4 }}
11
11
{{- end }}
12
12
data :
13
+ {{- if .Values.next.enabled }}
14
+ enable-cron-jobs : " {{ .Values.next.cronJobs.enabled }}"
15
+ {{- end }}
13
16
executors.json : |-
14
17
{{ include "testkube-api.executors" . | indent 4 }}
15
18
job-container-template.yml : |-
Original file line number Diff line number Diff line change @@ -250,6 +250,8 @@ spec:
250
250
value : " {{ .Values.next.gitops.namePatterns.kubernetes }}"
251
251
- name : DISABLE_DEFAULT_AGENT
252
252
value : " {{ not .Values.next.legacyAgent.enabled }}"
253
+ - name : ENABLE_CRON_JOBS
254
+ value : " {{ .Values.next.cronJobs.enabled }}"
253
255
{{- end }}
254
256
image : {{ include "testkube-api.image" . }}
255
257
imagePullPolicy : {{ .Values.image.pullPolicy }}
Original file line number Diff line number Diff line change @@ -194,6 +194,13 @@ next:
194
194
# # Should it enable controller API
195
195
enabled : true
196
196
197
+
198
+ # # Configure cron jobs in this installation.
199
+ # - tkcagnt_*** - Super Agent
200
+ cronJobs :
201
+ # # Should it manage cron jobs
202
+ enabled : false
203
+
197
204
# # Testkube API Deployment parameters
198
205
# # Running Testkube in Agent mode
199
206
cloud :
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ A Helm chart for the testkube-operator (installs needed CRDs only for now)
17
17
| affinity | object | ` {} ` | |
18
18
| apiFullname | string | ` "testkube-api-server" ` | |
19
19
| apiPort | int | ` 8088 ` | |
20
+ | agentCronJobs | bool | ` true ` | |
20
21
| useArgoCDSync| bool | ` false ` | |
21
22
| extraEnvVars | list | ` [] ` | |
22
23
| fullnameOverride | string | ` "" ` | |
Original file line number Diff line number Diff line change 82
82
- name : APISERVER_PURGE_EXECUTIONS
83
83
value : " true"
84
84
{{- end }}
85
+ {{- if .Values.agentCronJobs }}
86
+ - name : APISERVER_CONFIG
87
+ value : {{ .Values.apiFullname }}
88
+ {{- end }}
85
89
ports :
86
90
- containerPort : {{ .Values.webhookServerPort }}
87
91
name : webhook-server
Original file line number Diff line number Diff line change @@ -541,4 +541,28 @@ rules:
541
541
- update
542
542
{{- end }}
543
543
544
+ ---
545
+
546
+ apiVersion : {{ include "global.capabilities.rbac.apiVersion" . }}
547
+ kind : ClusterRole
548
+ metadata :
549
+ name : {{ .Release.Name }}-namespaces-role
550
+ labels :
551
+ {{- if .Values.global.labels }}
552
+ {{- include "global.tplvalues.render" ( dict "value" .Values.global.labels "context" $ ) | nindent 4 }}
553
+ {{- end }}
554
+ {{- if .Values.global.annotations }}
555
+ annotations : {{- include "global.tplvalues.render" ( dict "value" .Values.global.annotations "context" $ ) | nindent 4 }}
556
+ {{- end }}
557
+ namespace : {{ include "testkube-operator.namespace" . }}
558
+ rules :
559
+ - apiGroups :
560
+ - " "
561
+ resources :
562
+ - namespaces
563
+ verbs :
564
+ - get
565
+ - list
566
+ - watch
567
+
544
568
{{- end -}}
Original file line number Diff line number Diff line change @@ -143,4 +143,28 @@ subjects:
143
143
name : {{ include "testkube-operator.webhook.serviceAccountName" . }}
144
144
namespace : {{ include "testkube-operator.namespace" . }}
145
145
{{- end }}
146
+
147
+ ---
148
+
149
+ apiVersion : {{ include "global.capabilities.rbac.apiVersion" . }}
150
+ kind : ClusterRoleBinding
151
+ metadata :
152
+ name : {{ .Release.Name }}-namespaces-rolebinding
153
+ labels :
154
+ {{- if .Values.global.labels }}
155
+ {{- include "global.tplvalues.render" ( dict "value" .Values.global.labels "context" $ ) | nindent 4 }}
156
+ {{- end }}
157
+ {{- if .Values.global.annotations }}
158
+ annotations : {{- include "global.tplvalues.render" ( dict "value" .Values.global.annotations "context" $ ) | nindent 4 }}
159
+ {{- end }}
160
+ namespace : {{ include "testkube-operator.namespace" . }}
161
+ roleRef :
162
+ apiGroup : rbac.authorization.k8s.io
163
+ kind : ClusterRole
164
+ name : {{ .Release.Name }}-namespaces-role
165
+ subjects :
166
+ - kind : ServiceAccount
167
+ name : {{ include "testkube-operator.serviceAccountName" . }}
168
+ namespace : {{ include "testkube-operator.namespace" . }}
169
+
146
170
{{- end -}}
Original file line number Diff line number Diff line change @@ -104,6 +104,8 @@ healthcheckPort: 8081
104
104
useArgoCDSync : false
105
105
# purge executions on CRD deletion
106
106
purgeExecutions : false
107
+ # agent cron jobs for scheduling test, suites, workflows
108
+ agentCronJobs : false
107
109
108
110
# # Service Account parameters
109
111
serviceAccount :
Original file line number Diff line number Diff line change @@ -436,6 +436,7 @@ kubectl label --overwrite crds scripts.tests.testkube.io app.kubernetes.io/manag
436
436
| testkube-operator.apiFullname | string | `"testkube-api-server"` | Testkube API full name |
437
437
| testkube-operator.apiPort | int | `8088` | Testkube API port |
438
438
| testkube-operator.cronJobTemplate | string | `""` | |
439
+ | testkube-operator.agentCronJobs | bool | `true` | Agent cron jobs for scheduling test, suites, workflows |
439
440
| testkube-operator.enabled | bool | `true` | |
440
441
| testkube-operator.extraEnvVars | list | `[]` | Extra environment variables to be set on deployment |
441
442
| testkube-operator.fullnameOverride | string | `"testkube-operator"` | Testkube Operator fullname override |
Original file line number Diff line number Diff line change @@ -567,6 +567,12 @@ testkube-api:
567
567
# # Should it be enabled
568
568
enabled : true
569
569
570
+ # # Configure cron jobs in this installation.
571
+ # - tkcagnt_*** - Super Agent
572
+ cronJobs :
573
+ # # Should it manage cron jobs
574
+ enabled : false
575
+
570
576
# ref: https://cloud.google.com/kubernetes-engine/docs/how-to/prepare-arm-workloads-for-deployment#node-affinity-multi-arch-arm
571
577
# -- Tolerations to schedule a workload to nodes with any architecture type. Required for deployment to GKE cluster.
572
578
tolerations : []
@@ -1042,6 +1048,8 @@ testkube-operator:
1042
1048
useArgoCDSync : false
1043
1049
# -- Purge executions on CRD deletion
1044
1050
purgeExecutions : false
1051
+ # -- Agent cron jobs for scheduling test, suites, workflows
1052
+ agentCronJobs : false
1045
1053
1046
1054
# Service Account parameters
1047
1055
serviceAccount :
You can’t perform that action at this time.
0 commit comments