Skip to content

Commit

Permalink
reconciler, cron: allow overriding the reconciler cron expression
Browse files Browse the repository at this point in the history
Provide a config map to override the value of the cron expression.
To force reloading this new value, the user should kill the pods in the
whereabouts daemonset - the new pods will load the updated value.

Signed-off-by: Miguel Duarte Barroso <[email protected]>
  • Loading branch information
maiqueb committed Dec 19, 2023
1 parent 0d7d2be commit 1a44d43
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions doc/crds/daemonset-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@ rules:
- update
- get
---
apiVersion: v1
kind: ConfigMap
metadata:
name: whereabouts-cron-reconciler-config
namespace: kube-system
data:
whereabouts-cron-config: "0-59/2 * * * *"
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
Expand Down Expand Up @@ -116,6 +124,11 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: WHEREABOUTS_RECONCILER_CRON
valueFrom:
configMapKeyRef:
name: "whereabouts-cron-reconciler-config"
key: "whereabouts-cron-config"
resources:
requests:
cpu: "100m"
Expand Down

0 comments on commit 1a44d43

Please sign in to comment.