From 9363c332dbd03208c5aa4ff667e5cf28f91bb7f7 Mon Sep 17 00:00:00 2001 From: Jonathan Innis Date: Fri, 4 Aug 2023 09:52:33 -0700 Subject: [PATCH] ci: Fix docgen resolution of `nodeClaimSubsystem` (#4379) --- hack/docs/metrics_gen_docs.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hack/docs/metrics_gen_docs.go b/hack/docs/metrics_gen_docs.go index a5d3cbe32797..5d6030fe592d 100644 --- a/hack/docs/metrics_gen_docs.go +++ b/hack/docs/metrics_gen_docs.go @@ -79,6 +79,10 @@ description: > "These metrics are available by default at `karpenter.karpenter.svc.cluster.local:8000/metrics` configurable via the `METRICS_PORT` environment variable documented [here](../settings)\n") previousSubsystem := "" + // Ignore nodeClaimSubsystem metrics until NodeClaims are released + allMetrics = lo.Reject(allMetrics, func(m metricInfo, _ int) bool { + return m.subsystem == "nodeclaims" + }) for _, metric := range allMetrics { // Controller Runtime naming is different in that they don't specify a namespace or subsystem // Getting the metrics requires special parsing logic @@ -265,6 +269,7 @@ func getIdentMapping(identName string) (string, error) { "nodeSubsystem": "nodes", "machineSubsystem": "machines", + "nodeClaimSubsystem": "nodeclaims", "interruptionSubsystem": "interruption", "nodeTemplateSubsystem": "nodetemplate", "deprovisioningSubsystem": "deprovisioning",