Context
From PR #20 discussion (#20 (comment)):
Currently POST /folders/init copies the chart's full default values.yaml into new deployments — all 13 alert rules with namespace: default, empty owner, and default thresholds. A user who deploys without editing ships 13 alerts they may not want.
Desired behavior
New deployments should start empty. Since Helm falls back to subchart defaults when values.yaml is empty, the init logic needs to explicitly write each alert key as [] to override the subchart defaults.
Scope
- Update
POST /folders/init to write empty alert arrays instead of copying chart defaults
- Update related test assertions
Context
From PR #20 discussion (#20 (comment)):
Currently
POST /folders/initcopies the chart's full defaultvalues.yamlinto new deployments — all 13 alert rules withnamespace: default, emptyowner, and default thresholds. A user who deploys without editing ships 13 alerts they may not want.Desired behavior
New deployments should start empty. Since Helm falls back to subchart defaults when values.yaml is empty, the init logic needs to explicitly write each alert key as
[]to override the subchart defaults.Scope
POST /folders/initto write empty alert arrays instead of copying chart defaults