Skip to content

feat: add support for --help and version commands in aks-node-controller#8313

Merged
Devinwong merged 2 commits intomainfrom
devinwon/ANC_version
Apr 15, 2026
Merged

feat: add support for --help and version commands in aks-node-controller#8313
Devinwong merged 2 commits intomainfrom
devinwon/ANC_version

Conversation

@Devinwong
Copy link
Copy Markdown
Collaborator

What this PR does / why we need it:
add support for --help and version commands in aks-node-controller

Which issue(s) this PR fixes:

Fixes #

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds user-facing --help/help and --version/version handling to aks-node-controller so informational invocations exit cleanly without emitting normal startup logging.

Changes:

  • Add early argument handling in App.Run for --help/help and --version/version.
  • Remove the previous in-command version handling from run.
  • Add tests to assert --help and help return success exit codes.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
aks-node-controller/app.go Adds a centralized handleInfoCommand pre-dispatch handler for help/version output and exit codes.
aks-node-controller/app_test.go Adds basic tests verifying --help and help exit with code 0.

Comment thread aks-node-controller/app.go Outdated
Comment thread aks-node-controller/app_test.go
@Devinwong
Copy link
Copy Markdown
Collaborator Author

Test_ACL_Scriptless and Test_ACL_AzureCNI_ChronyRestarts_Scriptless also failed in other PR and are unrelated to this PR changes.

@Devinwong Devinwong merged commit b43569a into main Apr 15, 2026
30 of 34 checks passed
@Devinwong Devinwong deleted the devinwon/ANC_version branch April 15, 2026 04:41
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.

3 participants