-
Couldn't load subscription status.
- Fork 4.2k
Fix multi-line logging of AWS Activity struct in cluster-autoscaler #8674
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: master
Are you sure you want to change the base?
Conversation
|
Hi @Copilot. Thanks for your PR. I'm waiting for a github.com member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Co-authored-by: jackfrancis <1494193+jackfrancis@users.noreply.github.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Copilot The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/ok-to-test |
|
/release-note-edit |
|
/label tide/merge-method-squash |
Description
Fixes #8127 (replace with actual issue number)
This PR fixes a logging issue where AWS Auto Scaling Group activity failures were being logged in multi-line format, breaking log parsing tools like Datadog.
Problem
When scaling operations fail, the cluster-autoscaler logs AWS Activity details at line 551 in
auto_scaling_groups.go. The code was logging the entire Activity struct pointer directly:This caused Go's default string formatting to output the struct across multiple lines:
This multi-line format breaks log aggregation services and makes it difficult to search and analyze logs.
Solution
The log statement now extracts and formats the key fields in a single line:
Output is now single-line and parseable:
Changes
aws.StringValue()for safe nil pointer handlingTesting
/area cluster-autoscaler
/kind bug
Original prompt
Fixes #7702
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.