helm-charts
helm-charts copied to clipboard
Custom cronjobs template
Hi
Is there a known way to overwrite global cronjob template?
I saw only use case with "create-test" api call https://docs.testkube.io/articles/creating-tests/#changing-the-default-cronjob-template-used-for-scheduled-test-execution but it is required in every api call and IU does not support it (afaik).
Greetings
hey @jaceksocha I beleive @ypoplavs should add it to values.yml
Thank you for fast reaction. When do you plan to release chart ?
Greetings
@ypoplavs ?
@jaceksocha let me discuss this with the team.
@ypoplavs of course. I will be grateful for message if you future knew something in this case.
Greetings
Hello @jaceksocha! The change was released. Please upgrade to the latest helm chart version.
Thank you @ypoplavs , we are testing new chart 1.16.51
.
We found some potentially strange behaviour, chart launched with values containing:
...
cronJobTemplate: |
apiVersion: batch/v1
kind: CronJob
metadata:
name: "{{ .Name }}"
...
results with template (after base64 decoding env from operator pod) shifted by one space
apiVersion: batch/v1 <----- shift one space
kind: CronJob
metadata:
name: "{{ .Name }}"
but when cronJobTemplate contained in values.yaml begins with yaml comment
...
cronJobTemplate: |
# comment ...
apiVersion: batch/v1
kind: CronJob
metadata:
name: "{{ .Name }}"
...
everything seems to works fine. Looks like yaml parsing problem somewhere in the middle.
Greetings
Thanks for raising @jaceksocha! I will check that
@ypoplavs ?
?