Skip to content

Conversation

@majiayu000
Copy link

Fixes #628

Changes

  • Handle Forbidden errors when deleting healthrecords with inaccessible resources
  • Add test case for service account permission denial scenario

…ource

When a HealthRecord is being deleted but the service account cannot
read the associated resource (e.g., due to deleted ClusterRole), the
controller would get stuck in an infinite requeue loop.

This fix extends the error handling during deletion to also handle
Forbidden errors (not just NotFound), allowing the finalizer to be
removed and the HealthRecord to be deleted gracefully.

Fixes syntasso#628

Signed-off-by: majiayu000 <1835304752@qq.com>
@CLAassistant
Copy link

CLAassistant commented Jan 1, 2026

CLA assistant check
All committers have signed the CLA.

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.

bug: healthrecord fails to delete when service account cannot read the resource

2 participants