(object client.Object, reason string)
| 167 | } |
| 168 | |
| 169 | func 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 | |
| 178 | func handleReconcileErrWithStatus[T client.Object, ST reconcile.StatusWithMetadata[STC], STC any]( |
| 179 | ctx context.Context, |
no test coverage detected