Skip to content

Commit

Permalink
Shorten UpdateNodeLabelsAndRecordEvents function in nmc_reconciler.go (
Browse files Browse the repository at this point in the history
…#1158)

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 Jul 17, 2024
1 parent b6ee602 commit dd1183b
Show file tree
Hide file tree
Showing 6 changed files with 999 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 dd1183b

Please sign in to comment.