Skip to content

Commit

Permalink
ci: Fix docgen resolution of nodeClaimSubsystem (#4379)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis authored Aug 4, 2023
1 parent 305edb4 commit 9363c33
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hack/docs/metrics_gen_docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -265,6 +269,7 @@ func getIdentMapping(identName string) (string, error) {

"nodeSubsystem": "nodes",
"machineSubsystem": "machines",
"nodeClaimSubsystem": "nodeclaims",
"interruptionSubsystem": "interruption",
"nodeTemplateSubsystem": "nodetemplate",
"deprovisioningSubsystem": "deprovisioning",
Expand Down

0 comments on commit 9363c33

Please sign in to comment.