Skip to content

Refactor VGR controller reconciliation logic#1

Open
kumarsgoyal wants to merge 2 commits into
BenamarMk:mainfrom
kumarsgoyal:refactor_code
Open

Refactor VGR controller reconciliation logic#1
kumarsgoyal wants to merge 2 commits into
BenamarMk:mainfrom
kumarsgoyal:refactor_code

Conversation

@kumarsgoyal
Copy link
Copy Markdown

  • Restructure reconcilePrimary, reconcileSecondary, and reconcileDelete flows
  • Improve readability and logging consistency

- Restructure reconcilePrimary, reconcileSecondary, and reconcileDelete flows
- Improve readability and logging consistency

Signed-off-by: Sahil Kumar <kumar.sgoyal@gmail.com>
Pass logger instance to SetupWithManager() to properly initialize the
reconciler's log field, enabling structured logging output.

Changes:
 - Add logger parameter to SetupWithManager()
 - Create hierarchical logger in main.go
 - Store logger in reconciler struct
                                                                                                                                                                        Fixes reconciliation logs not appearing after controller refactoring.

Signed-off-by: Sahil Kumar <kumar.sgoyal@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant