-
Notifications
You must be signed in to change notification settings - Fork 244
feat: capture aks-node-controller errors into Guest Agent Events #7773
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds Guest Agent event logging to the aks-node-controller wrapper script to capture both successful completions and errors for monitoring and telemetry purposes.
Changes:
- Added
createGuestAgentEventfunction to generate Guest Agent events in JSON format - Events are now created for both successful completion and error cases
- Added test coverage for error scenario using ShellSpec
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| parts/linux/cloud-init/artifacts/aks-node-controller-wrapper.sh | Implements Guest Agent event creation with a new createGuestAgentEvent function and calls it for both success and failure cases |
| spec/parts/linux/cloud-init/artifacts/aks_node_controller_wrapper_spec.sh | Adds test case to verify Guest Agent event is created on non-zero exit with correct TaskName, EventLevel, and Message |
parts/linux/cloud-init/artifacts/aks-node-controller-wrapper.sh
Outdated
Show resolved
Hide resolved
spec/parts/linux/cloud-init/artifacts/aks_node_controller_wrapper_spec.sh
Show resolved
Hide resolved
parts/linux/cloud-init/artifacts/aks-node-controller-wrapper.sh
Outdated
Show resolved
Hide resolved
parts/linux/cloud-init/artifacts/aks-node-controller-wrapper.sh
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
What this PR does / why we need it:
capture aks-node-controller errors into
Which issue(s) this PR fixes:
Fixes #