Skip to content

Propagate taint errors for Queue Processor events - #1285

Open
enumura1 wants to merge 2 commits into
aws:mainfrom
enumura1:fix/sqs-taint-error-retry
Open

Propagate taint errors for Queue Processor events#1285
enumura1 wants to merge 2 commits into
aws:mainfrom
enumura1:fix/sqs-taint-error-retry

Conversation

@enumura1

Copy link
Copy Markdown

Issue #, if available:

Fixes #1284

Description of changes:

Return errors from Queue Processor pre-drain tasks when adding a taint fails.

Previously, taint errors were logged but treated as successful, allowing
node draining and SQS message deletion to continue.

Add tests for taint failures in ASG lifecycle, Rebalance Recommendation,
and Scheduled change events.

How you tested your changes:

  • Go tests for pkg/monitor/sqsevent and
    pkg/interruptionevent/draincordon
  • Live AWS verification:
    • Created a dedicated VPC, EKS 1.34 cluster, two EC2 nodes, and an SQS queue
    • Sent a termination event to the Queue Processor
    • Reproduced a Kubernetes API taint-add failure
    • Confirmed that the node was not cordoned and the mock Pod remained on it
    • Confirmed that the SQS message was received again after the 30-second
      visibility timeout
    • Deleted all verification resources and confirmed that none remained

Environment (Linux / Windows): Amazon Linux 2023 / Linux amd64
Kubernetes Version: EKS 1.34

@enumura1
enumura1 marked this pull request as ready for review August 15, 2026 08:40
@enumura1
enumura1 requested a review from a team as a code owner August 15, 2026 08:40
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.

Queue Processor deletes an SQS message after a taint error

1 participant