spring-cloud-dataflow icon indicating copy to clipboard operation
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 * * *

Open szopal opened this issue 10 months ago • 1 comments

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

image

So after upgrade kubernetes to 1.29 we don't have possibility to create scheduler in our time zone.

szopal avatar Apr 10 '24 14:04 szopal

Create issue in spring-cloud-deployer#445

corneil avatar Apr 11 '24 13:04 corneil

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.

corneil avatar May 08 '24 18:05 corneil

Closing this issue. If this issue was closed incorrectly please add a comment. Thank you for raising the issue!

cppwfs avatar May 29 '24 16:05 cppwfs