1
0
mirror of https://github.com/coreos/prometheus-operator.git synced 2026-02-05 15:46:31 +01:00
Files
Tomlin7 f62c9d8d8b pkg/prometheus: move LabelConfigValidator to validation package (#8209)
This move improves code organization and encapsulation by isolating
validation logic from resource selection. It also resolves issues
related to accessing private fields/methods across files.

The 'validate' method was renamed to 'ValidateRelabelConfig' to allow
it to be tested and used from outside the package.

Updated references in:
- pkg/prometheus/resource_selector.go
- pkg/prometheus/promcfg.go
- pkg/prometheus/server/operator.go
- pkg/prometheus/resource_selector_test.go

Fixes: #8209
2025-12-24 14:18:44 +00:00
..