Improve one-sensor-per-pod UX: require "ref" in st2.packs.sensors by cognifloyd · Pull Request #246 · StackStorm/stackstorm-k8s
`one-sensor-per-pod`: Uses `st2.packs.sensors`, defaults come from `st2sensorcontainer`. Require `ref` for every sensor in `st2.packs.sensors`. `all-sensors-in-one-pod`: Only use `st2sensorcontainer` for the only pod. Ignore `st2.packs.sensors` in this mode. No more magic first element in `st2.packs.sensors` to enable this. This makes it safer to configure one-sensor-per-pod mode, because it will error if `ref` is not defined when it should be. This way people cannot accidentally create multiple pods in `all-sensors-in-one-pod` mode.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters