Skip to content

Commit 2f0deff

Browse files
committed
PR suggested changes
Signed-off-by: Iván Álvarez <[email protected]>
1 parent 9ce51b8 commit 2f0deff

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

examples/fleet/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func main() {
9797
if err := client.Get(ctx, req.NamespacedName, pod); err != nil {
9898
return reconcile.Result{}, err
9999
}
100-
log.Info(fmt.Sprintf("Retrieved pod %s:>%s/%s", cl.Name(), pod.Namespace, pod.Name))
100+
log.Info("Reconciling pod", "ns", pod.GetNamespace(), "name", pod.Name, "uuid", pod.UID)
101101

102102
// Print any annotations that start with fleet.
103103
for k, v := range pod.Labels {

pkg/manager/internal.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,7 @@ func (cm *controllerManager) Engage(ctx context.Context, cl cluster.Cluster) err
619619
// be reentrant via noop
620620
cm.engagedClustersLock.RLock()
621621
if _, ok := cm.engagedClusters[cl.Name()]; ok {
622+
cm.engagedClustersLock.RUnlock()
622623
return nil
623624
}
624625
cm.engagedClustersLock.RUnlock()

0 commit comments

Comments
 (0)