Skip to content

Commit dd20965

Browse files
committed
Reconcile requests should include logical name
1 parent f7b047d commit dd20965

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkg/reconcile/reconcile.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,14 @@ type Request struct {
5555
types.NamespacedName
5656
}
5757

58+
// String returns the general purpose string representation.
59+
func (r Request) String() string {
60+
if r.Cluster == "" {
61+
return r.NamespacedName.String()
62+
}
63+
return "logical://" + string(r.Cluster) + string(types.Separator) + r.NamespacedName.String()
64+
}
65+
5866
/*
5967
Reconciler implements a Kubernetes API for a specific Resource by Creating, Updating or Deleting Kubernetes
6068
objects, or by making changes to systems external to the cluster (e.g. cloudproviders, github, etc).

0 commit comments

Comments
 (0)