Skip to content

Conversation

@Devinwong
Copy link
Collaborator

What this PR does / why we need it:
capture aks-node-controller errors into

Which issue(s) this PR fixes:

Fixes #

Copy link
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

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 createGuestAgentEvent function 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

Copilot AI review requested due to automatic review settings February 3, 2026 01:00
Copy link
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

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

Copilot AI review requested due to automatic review settings February 3, 2026 01:19
Copy link
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

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

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.

2 participants