Skip to content

Fix policy attachment when ancestors slice is full #3698

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sarthyparty
Copy link
Contributor

@sarthyparty sarthyparty commented Aug 6, 2025

Proposed changes

Problem: Multiple bugs when ancestor slice was full:

  • BackendTLSPolicy became invalid
  • NGF Policies would not partially attach policies to services when multiple ancestor refs were created from a single service but attach to the whole service
  • No condition was added to ancestor
  • No logs on controller

Solution: Added conditions to ancestor and logs to controller. I fixed BackendTLSPolicy to add attachments until ancestors became full and fixed NGF policies as well

Testing: Currently unit tests. In the process of fully manual testing

Please focus on (optional): If you any specific areas where you would like reviewers to focus their attention or provide
specific feedback, add them here.

Closes #1987

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that all unit tests pass after adding my changes
  • I have updated necessary documentation
  • I have rebased my branch onto main
  • I will ensure my PR is targeting the main branch and pulling from my branch from my own fork

Release notes

If this PR introduces a change that affects users and needs to be mentioned in the release notes,
please add a brief note that summarizes the change.


@github-actions github-actions bot added the bug Something isn't working label Aug 6, 2025
@sarthyparty sarthyparty force-pushed the bug/handle-policy-ancestor branch from b5891a0 to 3041aa9 Compare August 7, 2025 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 🆕 New
Development

Successfully merging this pull request may close these issues.

Handle policy attachment when ancestor status slice is full
1 participant