MCPcopy Create free account
hub / github.com/VictoriaMetrics/operator / incControllerError

Function incControllerError

internal/controller/operator/controllers.go:169–176  ·  view source on GitHub ↗
(object client.Object, reason string)

Source from the content-addressed store, hash-verified

167}
168
169func incControllerError(object client.Object, reason string) {
170 controller := controllerNameFromObject(object)
171 namespace, name := object.GetNamespace(), object.GetName()
172 controllerErrorsTotal.WithLabelValues(controller, namespace, name, reason).Inc()
173 if legacyCounter, ok := legacyCounters[reason]; ok {
174 legacyCounter.WithLabelValues(controller, fmt.Sprintf("%s/%s", namespace, name)).Inc()
175 }
176}
177
178func handleReconcileErrWithStatus[T client.Object, ST reconcile.StatusWithMetadata[STC], STC any](
179 ctx context.Context,

Callers 1

handleReconcileErrFunction · 0.85

Calls 2

controllerNameFromObjectFunction · 0.85
GetNamespaceMethod · 0.65

Tested by

no test coverage detected