We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 065a9c0 commit c4ce17eCopy full SHA for c4ce17e
controllers/controller_shared.go
@@ -484,14 +484,12 @@ func mergeReconcileErrors(sources ...map[string]string) map[string]string {
484
return merged
485
}
486
487
-func UpdateStatus(
488
- ctx context.Context,
489
- cl client.Client,
490
- cr interface {
491
- client.Object
492
- CommonStatus() *v1beta1.GrafanaCommonStatus
493
- },
494
-) {
+type statusResource interface {
+ client.Object
+ CommonStatus() *v1beta1.GrafanaCommonStatus
+}
+
+func UpdateStatus(ctx context.Context, cl client.Client, cr statusResource) {
495
log := logf.FromContext(ctx)
496
497
cr.CommonStatus().LastResync = metav1.Time{Time: time.Now()}
0 commit comments