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 committed Jul 16, 2024
1 parent b6ee602 commit 97c164b
Show file tree
Hide file tree
Showing 6 changed files with 1,000 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 97c164b

Please sign in to comment.