Skip to content
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

fix: pepr operator derived netpol name collisions #480

Merged
merged 2 commits into from
Jun 13, 2024

Conversation

anthonywendt
Copy link
Contributor

Description

Fixes network policy naming bug that caused name collisions for operator derived network policies. This causes network policies being created for VirtualServices using the same selector and gateway but different ports to be dropped. Multiple legitimate policies would override each other and only the last would survive.

There are still gaps in the fundamentals of naming and validation that I came across on different iterations on solutions for this. I will be creating a follow on issue for a deeper dive into that though. This is a small improvement that fixes a specific issue.
...

Related Issue

Fixes #466

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Other (security config, docs update, etc)

Checklist before merging

Copy link
Contributor

@mjnagel mjnagel left a comment

Choose a reason for hiding this comment

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

LGTM, as discussed we can do a follow on issue/PR to handle any remaining clashes/better validation at admission time.

@mjnagel mjnagel merged commit de60e25 into main Jun 13, 2024
7 checks passed
@mjnagel mjnagel deleted the pepr-operator-derived-netpol-fix branch June 13, 2024 14:13
mjnagel pushed a commit that referenced this pull request Jun 13, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.22.2](v0.22.1...v0.22.2)
(2024-06-13)


### Bug Fixes

* check if exemption exists before cleanup
([#468](#468))
([735288b](735288b))
* pepr operator derived netpol name collisions
([#480](#480))
([de60e25](de60e25))
* typo in comment
([#462](#462))
([582b1f4](582b1f4))


### Miscellaneous

* **deps:** update checkout to v4.1.7
([#478](#478))
([e91a0a3](e91a0a3))
* **deps:** update githubactions to v4.1.3
([#471](#471))
([2a9f44d](2a9f44d))
* **deps:** update uds to v0.11.1
([#472](#472))
([12fd798](12fd798))
* **deps:** update uds to v0.11.2
([#479](#479))
([f967f9a](f967f9a))
* **deps:** update velero to v1.30.2
([#476](#476))
([89bbda9](89bbda9))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

Operator fails to generate all network policies for all virtual services if they use the same pod selector.
2 participants