Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding the timeZone field to CronJobSpec #6753

Closed
dcheng1248 opened this issue Dec 30, 2024 · 1 comment
Closed

Adding the timeZone field to CronJobSpec #6753

dcheng1248 opened this issue Dec 30, 2024 · 1 comment

Comments

@dcheng1248
Copy link

Is your enhancement related to a problem? Please describe

I'm investigating the possibility to simplify the set up of a non UTC time zone-based CronJob in Quarkus, see issue. Quickly looking at the code base, it seems that the quarkus kubernetes extension depends on the fabric8 kubernetes client for such specs. The fabric8 kubernetes client cron job specs does not include a time zone field as far as I see here, so the change in quarkus may not be possible or would at least be quite complicated.

This change should be possible as kubernetes seems to support time zone cron jobs since v1.27.

Describe the solution you'd like

The CronJobSpec should include a field that allows setting the time zone.

Describe alternatives you've considered

No response

Additional context

No response

@manusa
Copy link
Member

manusa commented Jan 7, 2025

You're using the wrong CronJobSpec version.

The field is available here:

So to be clear, you're referencing or using v1beta1 of the batch API group when you should be using v1 instead.

@manusa manusa closed this as completed Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants