Skip to content

Commit c4ce17e

Browse files
committed
Make UpdateStatus' dependency named
1 parent 065a9c0 commit c4ce17e

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

controllers/controller_shared.go

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -484,14 +484,12 @@ func mergeReconcileErrors(sources ...map[string]string) map[string]string {
484484
return merged
485485
}
486486

487-
func UpdateStatus(
488-
ctx context.Context,
489-
cl client.Client,
490-
cr interface {
491-
client.Object
492-
CommonStatus() *v1beta1.GrafanaCommonStatus
493-
},
494-
) {
487+
type statusResource interface {
488+
client.Object
489+
CommonStatus() *v1beta1.GrafanaCommonStatus
490+
}
491+
492+
func UpdateStatus(ctx context.Context, cl client.Client, cr statusResource) {
495493
log := logf.FromContext(ctx)
496494

497495
cr.CommonStatus().LastResync = metav1.Time{Time: time.Now()}

0 commit comments

Comments
 (0)