@@ -82,7 +82,7 @@ fully GA-ed it's time to satisfy the original request.
8282
8383### Goals
8484
85- - Add the field ` .spec.timeZone ` which allows specifying a valid TimeZone
85+ - Add the field ` .spec.timeZone ` which allows specifying a valid TimeZone name
8686
8787### Non-Goals
8888
@@ -95,7 +95,7 @@ and make progress.
9595
9696Add the field ` .spec.timeZone ` to the CronJob resource. The cronjob controller
9797will take the field into account when scheduling the next Job run. In case the
98- field is not specified or is empty the controller will maitain the current
98+ field is not specified or is empty the controller will maintain the current
9999behavior which is to rely on the time zone of the kube-controller-manager
100100process.
101101
@@ -125,20 +125,22 @@ CronJobs can be created per user.
125125
126126### CronJob API
127127
128- The ` CronJobSpec ` structure is expanded with new ` TimeZone ` field which allows
128+ The ` .spec ` for a CronJob is expanded with new ` timeZone ` field which allows
129129specifying the name of the time zone to be used. Missing or empty value of the
130130field indicates the current behavior, which relies on the time zone of the
131131kube-controller-manager process.
132132
133+ In the API code, that looks like:
134+
133135``` golang
134136
135137type CronJobSpec struct {
136138
137- // The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
138- Schedule string
139+ // The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
140+ Schedule string
139141
140- // Time zone for the above schedule
141- TimeZone *string
142+ // Time zone for the above schedule
143+ TimeZone *string
142144
143145}
144146```
@@ -489,6 +491,9 @@ Why should this KEP _not_ be implemented?
489491
490492## Alternatives
491493
494+ Another approach was to specify time zone as an offset to UTC, but using the
495+ name instead seems more user friendly.
496+
492497<!--
493498What other approaches did you consider, and why did you rule them out? These do
494499not need to be as detailed as the proposal, but should include enough
0 commit comments