Skip to content

fix(rbgsa-controller): use Warning event type for failure events#262

Merged
Syspretor merged 1 commit intosgl-project:mainfrom
sebest:fix/rbgsa-event-severity
Apr 10, 2026
Merged

fix(rbgsa-controller): use Warning event type for failure events#262
Syspretor merged 1 commit intosgl-project:mainfrom
sebest:fix/rbgsa-event-severity

Conversation

@sebest
Copy link
Copy Markdown
Contributor

@sebest sebest commented Apr 9, 2026

Summary

  • Change FailedGetRBGRole and FailedScale events from EventTypeNormal to EventTypeWarning — failure events should use Warning per K8s conventions
  • Fix logger.Error calls that used printf-style %s format verbs instead of structured key-value pairs, which produced malformed log entries with literal %s in the message

Test plan

  • go test ./internal/controller/workloads/ passes
  • go vet ./internal/controller/workloads/ clean

FailedGetRBGRole and FailedScale events were emitted as EventTypeNormal,
making them invisible to standard alerting that filters on Warning events.
Also fix logger.Error calls that used printf-style %s format verbs instead
of structured key-value pairs, which produced malformed log entries.
@gemini-code-assist
Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

Copy link
Copy Markdown
Collaborator

@Syspretor Syspretor left a comment

Choose a reason for hiding this comment

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

/lgtm

@Syspretor Syspretor merged commit ca35ee8 into sgl-project:main Apr 10, 2026
9 checks passed
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