<p>I've more that 10 CronJobs configured in Kubernetes and all working properly as expected.</p>
<p>Now I am planning add 20 more CronJobs. All jobs getting data from external resources, processing it and generating some kind of reports.</p>
<p>I want to configure schedule expression of CronJobs into ConfigMap. for example something like,</p>
<pre><code>kind: ConfigMap
apiVersion: v1
metadata:
  name: scheduler-config
  namespace: test
data:
  job1.schedule.expression: */1 * * * *
  job2.schedule.expression: */5 * * * *
  job3.schedule.expression: */30 * * * *
  job4.schedule.expression: 0 1 * * *
  job5.schedule.expression: 0 0 * * THU
</code></pre>
<p>I want to make it more flexible if possible, for example if I update the ConfigMap with new expression then CronJob should be updated with new schedule expression and next time it should run as per new expression value in ConfigMap.</p>

<p>As I already mentioned in comments</p>
<p>As far as I know <a href="https://kubernetes.io/docs/concepts/configuration/configmap/" rel="nofollow noreferrer">ConfigMap</a> is used to set environment variables inside container or is mounted as volume. I don't think you can use configmap to set schedule in cronjob.</p>
<hr />
<p>As an alternative you could use <a href="https://github.com/bambash/helm-cronjobs" rel="nofollow noreferrer">helm cronjobs</a> for that and specify the schedules in <a href="https://github.com/bambash/helm-cronjobs/blob/master/values.yaml" rel="nofollow noreferrer">values.yaml</a>.</p>
<p>Take a look at below cronjobs created with above helm cronjobs.</p>
<pre><code>kubectl get cronjob
NAME                     SCHEDULE      SUSPEND   ACTIVE    LAST SCHEDULE   AGE
cold-fly-hello-env-var   * * * * *     False     0         23s             1m
cold-fly-hello-ubuntu    */5 * * * *   False     0         23s             1m
cold-fly-hello-world     * * * * *     False     0         23s             1m
</code></pre>
<p>And their schedule vlaues <a href="https://github.com/bambash/helm-cronjobs/blob/master/values.yaml#L10" rel="nofollow noreferrer">there</a>, <a href="https://github.com/bambash/helm-cronjobs/blob/master/values.yaml#L51" rel="nofollow noreferrer">there</a> and <a href="https://github.com/bambash/helm-cronjobs/blob/master/values.yaml#L21" rel="nofollow noreferrer">there</a>.</p>
