Files
unpoller_unpoller/examples
Cody LeeandClaude Opus 5 01ac7ca2b7 refactor(unas): replace disable flag with enable, defaulting to off
`disable = false` is a double negative, and a bool named disable cannot
express opt-in anyway: it zero-values to false, so the flag was inert and
opt-in rested entirely on the device list being empty.

`enable` defaults to false and is now the real gate -- Initialize, Metrics
and DebugInput all return early unless it is set. The two existing guards
remain: an empty device list is still a no-op, and no default URL is ever
synthesized.

Configuring devices while enable is false is always a mistake, so that
combination logs one error instead of silently collecting nothing.

Adds binding tests for the flag across toml, json, yaml and UP_UNAS_ENABLE
(the env name derives from the xml tag, not the json one), plus a test that
all three shipped examples default to off. Both were verified by mutation:
breaking a struct tag or flipping an example fails the suite.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-19 09:34:02 -05:00
..
2021-04-14 01:31:14 -07:00
2025-12-08 13:09:10 -06:00
2021-04-14 01:31:14 -07:00

Examples

This folder contains example configuration files in four supported formats. You can use any format you want for the config file, just give it the appropriate suffix for the format. A JSON file should end with .json, and YAML with .yaml. The default format is always TOML and may have any other suffix.

Kubernetes

There are two files for Kubernetes deployment examples. Feel free to use them as you see fit. Please make sure to the delete all comments before deploying and make sure to fill in with correct values.

Notes

When adding new content to this folder, DO NOT MAKE NEW FOLDERS, it will break make install on macOS (used for homebrew).