Skip to content

Commit 6e22407

Browse files
committed
add logging and comments
Signed-off-by: Eric Pickard <piceri@github.com>
1 parent 3bfff1a commit 6e22407

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

internal/controller/controller.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ type Controller struct {
8989
// informerSyncTimeout is the maximum time allowed for all informers to sync
9090
// and prevents sync from hanging indefinitely.
9191
informerSyncTimeout time.Duration
92-
syncing atomic.Bool
92+
// syncing tracks if the kubernetes informers have finished syncing
93+
syncing atomic.Bool
9394
}
9495

9596
// New creates a new deployment tracker controller.

internal/controller/reporting.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,9 @@ func (c *Controller) makeSyncRecords(ctx context.Context, syncClusterPods []any)
216216
}
217217
}
218218

219+
slog.Info("Created sync records",
220+
"count", len(syncRecords),
221+
)
219222
return syncRecords
220223
}
221224

0 commit comments

Comments
 (0)