Skip to content

Commit

Permalink
PR suggested changes
Browse files Browse the repository at this point in the history
Signed-off-by: Iván Álvarez <ivanape@inditex.com>
  • Loading branch information
ivanape committed May 27, 2024
1 parent 9ce51b8 commit 2f0deff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/fleet/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func main() {
if err := client.Get(ctx, req.NamespacedName, pod); err != nil {
return reconcile.Result{}, err
}
log.Info(fmt.Sprintf("Retrieved pod %s:>%s/%s", cl.Name(), pod.Namespace, pod.Name))
log.Info("Reconciling pod", "ns", pod.GetNamespace(), "name", pod.Name, "uuid", pod.UID)

// Print any annotations that start with fleet.
for k, v := range pod.Labels {
Expand Down
1 change: 1 addition & 0 deletions pkg/manager/internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,7 @@ func (cm *controllerManager) Engage(ctx context.Context, cl cluster.Cluster) err
// be reentrant via noop
cm.engagedClustersLock.RLock()
if _, ok := cm.engagedClusters[cl.Name()]; ok {
cm.engagedClustersLock.RUnlock()
return nil
}
cm.engagedClustersLock.RUnlock()
Expand Down

0 comments on commit 2f0deff

Please sign in to comment.