Skip to content

Commit

Permalink
PWMProbes: Add config for heartbeat thread in PWM
Browse files Browse the repository at this point in the history
IBM#38
Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
  • Loading branch information
gabe-l-hart committed Jan 22, 2024
1 parent d1c7596 commit d61b21e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions oper8/config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ python_watch_manager:
watch_dependent_resources: false
subsystem_rollout: false

# If set to a valid location, the heartbeat thread will be enabled to
# periodically dump the current time to the given file
heartbeat_file: null
heartbeat_period: 30s

# watch filter used to reduce the amount of reconciles. The following
# filters are available by default, or you can supply a custom filter via
# the module.Filter notation.
Expand Down
6 changes: 6 additions & 0 deletions oper8/config/config_validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ python_watch_manager:
reconcile_period:
type: str

heartbeat_file:
type: str
optional: true
heartbeat_period:
type: str

process_context:
type: str
watch_dependent_resources:
Expand Down

0 comments on commit d61b21e

Please sign in to comment.