add TODO to migrate when new metrics mature and old metrics are deprecated

This commit is contained in:
Benjamin Elder
2025-10-02 15:03:29 -07:00
parent 7c529f25f4
commit 52dec274b3

View File

@@ -85,6 +85,9 @@ type apiServerMetricInvariant struct {
// All fields must be specified
var apiServerMetricInvariants = []apiServerMetricInvariant{
{
// TODO: Migrate to apiserver_validation_declarative_validation_parity_discrepancies_total
// when it reaches beta / when this metric is deprecated.
// For now we uare using the previous beta metric.
Metric: "apiserver_validation_declarative_validation_mismatch_total",
SIG: "api-machinery",
Owners: []string{"aaron-prindle", "jpbetz", "thockin"},
@@ -99,6 +102,9 @@ var apiServerMetricInvariants = []apiServerMetricInvariant{
},
},
{
// TODO: Migrate to apiserver_validation_declarative_validation_panics_total
// when it reaches beta / when this metric is deprecated.
// For now we uare using the previous beta metric.
Metric: "apiserver_validation_declarative_validation_panic_total",
SIG: "api-machinery",
Owners: []string{"aaron-prindle", "jpbetz", "thockin"},