Skip to content

Commit

Permalink
feat: cron job template example
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Sukhin <[email protected]>
  • Loading branch information
vsukhin authored and ed382 committed Nov 20, 2024
1 parent a6b964d commit 90938de
Showing 1 changed file with 43 additions and 1 deletion.
44 changes: 43 additions & 1 deletion charts/testkube/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 90938de

Please sign in to comment.