Skip to content

Commit

Permalink
Shorten UpdateNodeLabelsAndRecordEvents function in nmc_reconciler.go
Browse files Browse the repository at this point in the history
Today, the UpdateNodeLabelsAndRecordEvents function has around 100 lines of code. This commit aims to enhance its readability and maintainability by using helper functions, thereby reducing its total length.
Additionally, adding unit tests that covers the new helper functions.
  • Loading branch information
TomerNewman authored and k8s-ci-robot committed Jul 16, 2024
1 parent c44a5e8 commit 72e21e6
Show file tree
Hide file tree
Showing 6 changed files with 845 additions and 144 deletions.
137 changes: 130 additions & 7 deletions internal/controllers/mock_nmc_reconciler.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 72e21e6

Please sign in to comment.