cozystack/cmd
ZverGuy 7f7f4b218d refactor(controller): resolve Prometheus URL from namespace labels
Replace static --prometheus-url flag with dynamic resolution from
namespace.cozystack.io/monitoring label. Each tenant namespace knows
which tenant hosts its monitoring stack, so the controller constructs
the vmselect URL automatically. This correctly handles multi-tenant
setups where different tenants may use different monitoring instances.

- Remove PrometheusURL field from WorkloadMonitorReconciler struct
- Remove --prometheus-url flag and prometheusUrl chart value
- Add resolvePrometheusURL() that reads namespace label
- queryPrometheusMetric() now accepts prometheusBaseURL as parameter
- Add tests for resolvePrometheusURL with and without label

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: ZverGuy <maximbel2003@gmail.com>
2026-04-17 10:58:47 +03:00
..
backup-controller [backups] 2026-02-04 15:50:23 +03:00
backupstrategy-controller feat(backup): no manual actions required to perform restorejob for 2026-03-31 12:01:04 +04:00
cozypkg feat(cozypkg): add cross-platform build targets with version injection 2026-01-15 17:18:01 +01:00
cozystack-api [cozystack-api] Implement TenantNamespace, TenantModules, TenantSecret and TenantSecretsTable resources 2025-09-24 18:27:54 +02:00
cozystack-controller refactor(controller): resolve Prometheus URL from namespace labels 2026-04-17 10:58:47 +03:00
cozystack-operator fix(operator): skip PackageSource on empty URL, add comprehensive tests 2026-02-19 18:31:49 +03:00
flux-plunger feat(platform): add flux-plunger controller 2026-01-19 13:20:08 +01:00
kubeovn-plunger [kubeovn] Implement the KubeOVN plunger 2025-09-11 02:11:58 +03:00
lineage-controller-webhook [lineage] Separate webhook from cozy controller 2025-10-14 10:50:28 +03:00