Open erik-carlson opened 2 years ago
Hi @erik-carlson , thank you very much for reporting the issue and sorry for the delayed response.
I was able to reproduce the issue, but also found it may not be consistently reproducible, so it'll need some further digging for us to understand the root cause and come up with a solution.
Meanwhile, have you figured out a workaround for your use case? Based on the API's behavior, I think explicitly specifying the timeZone
may help work around the issue. Please let us know if it's still causing errors.
I think that explicitly setting the time zone would prevent this issue and that's the approach that we're now taking. In the case above, the failing KCC resource had the time zone set to "UTC", managed by the KCC controller. To get it back to upToDate I had to:
At that point I could actually remove that field from the the KCC resource and it stayed upToDate.
Checklist
Bug Description
If a cloud scheduler job is created with config connector without specifying a timezone (so that it uses the default) and then the schedule is updated to " *" through the console (which requires choosing the timezone), config connector fails with "Error 400: Schedule or time zone is invalid." when it tries to update the job to the configuration in the config connector resource.
This doesn't seem to happen for all updated schedules, but I believe is consistently reproducible with " *".
Additional Diagnostic Information
na
Kubernetes Cluster Version
v1.22.10-gke.600
Config Connector Version
1.90.0
Config Connector Mode
namespaced mode (default)
Log Output
Update call failed: error applying desired state: googleapi: Error 400: Schedule or time zone is invalid.
Steps to reproduce the issue
see description
YAML snippets