From 90938de12b4514fb563728b3609bd5e2f342ffc1 Mon Sep 17 00:00:00 2001 From: Vladislav Sukhin Date: Tue, 19 Nov 2024 15:40:39 +0300 Subject: [PATCH] feat: cron job template example Signed-off-by: Vladislav Sukhin --- charts/testkube/values.yaml | 44 ++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/charts/testkube/values.yaml b/charts/testkube/values.yaml index 9bf44d201..5fc3593dc 100644 --- a/charts/testkube/values.yaml +++ b/charts/testkube/values.yaml @@ -960,7 +960,49 @@ testkube-operator: defaultMode: 420 ## Pass a custom cronJobTemplate to the Testkube Operator Deployment - cronJobTemplate: "" + # cronJobTemplate: | + # apiVersion: batch/v1 + # kind: CronJob + # metadata: + # name: "{{ .Name }}" + # namespace: {{ .Namespace }} + # labels: + # testkube: {{ .ResourceURI }} + # {{- if .ArgoCDSync }} + # ownerReferences: + # - apiVersion {{ .Group }}/{{ .Version }} + # kind: {{ .Resource }} + # name: {{ .Id }} + # uid: {{ .UID }} + # {{- end }} + # spec: + # schedule: "{{ .Schedule }}" + # concurrencyPolicy: Forbid + # jobTemplate: + # spec: + # template: + # spec: + # containers: + # - name: curlimage + # {{- if .Registry }} + # image: {{ .Registry }}/curlimages/curl + # {{- else }} + # image: curlimages/curl + # {{- end }} + # imagePullPolicy: IfNotPresent + # command: + # - sh + # - -c + # args: + # - 'curl -X POST -H "Content-Type: application/json" -d ''{{ .Data }}'' "http://{{ .ServiceName }}:{{ .ServicePort}}/v1/{{ .ResourceURI }}/{{ .Id }}/executions"' + # restartPolicy: Never + # tolerations: + # - effect: NoSchedule + # key: pool + # operator: Equal + # value: system + # backoffLimit: 0 + # ttlSecondsAfterFinished: 180 # Webhook parameters webhook: