spring-cloud-dataflow
spring-cloud-dataflow copied to clipboard
SCDF 2.10.x. and 2.11.x doesn't allow define schedule with Cron Expression CRON_TZ=CET 37 04 * * *
From kubernetes 1.29 it doesn't support CRON_TZ expression.
https://www.yuribacciarini.com/k8s-setup-timezone-on-cronjob/
It seem's that SCDF has old library from fabric8 because I can't see propertise withTimeZone in KubernetesScheduler in library
<dependency>
<groupId>io.fabric8</groupId>
<artifactId>kubernetes-client</artifactId>
<version>${kubernetes-fabric8-client.version}</version>
</dependency>
at version
<kubernetes-fabric8-client.version>5.12.4</kubernetes-fabric8-client.version>
This property I can see in 6.10.0
So after upgrade kubernetes to 1.29 we don't have possibility to create scheduler in our time zone.
Create issue in spring-cloud-deployer#445
According to k8s specification timezone isn't supported:
CronJob limitations Unsupported TimeZone specification Specifying a timezone using CRON_TZ or TZ variables inside .spec.schedule is not officially supported (and never has been).
Starting with Kubernetes 1.29 if you try to set a schedule that includes TZ or CRON_TZ timezone specification, Kubernetes will fail to create the resource with a validation error. Updates to CronJobs already using TZ or CRON_TZ will continue to report a warning to the client.
Closing this issue. If this issue was closed incorrectly please add a comment. Thank you for raising the issue!