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: Add missing poddisruption budget permissions in manager cluster role #718

Merged

Conversation

wondertroy
Copy link
Contributor

This PR

Add missing poddisruption budget permissions in manager cluster role

Open feature operator now attempts to list, create, and watch pod disruption budget resources for flagd proxy since it can now configure HA replica for flagd proxy

Related Issues

Fixes #717
Related to #712

Notes

  • update existing ClusterRole configuration to include poddisruptionbudget resource permissions for api group: policy

How to test

  • manually apply changes to ClusterRole resource, change FlagSource and watch for permission errors. Retry with extra verbs until no reconcile errors were encountered.

@wondertroy wondertroy requested a review from a team as a code owner October 30, 2024 02:02
@wondertroy wondertroy changed the title Add missing poddisruption budget permissions in manager cluster role fix: Add missing poddisruption budget permissions in manager cluster role Oct 30, 2024
@wondertroy wondertroy force-pushed the fix/missing-rbac-poddisruptionbudget branch from 0b6d262 to 2cd4cc3 Compare October 30, 2024 02:04
Background
---
Open feature operator now attempts to list, create, and watch pod disruption budget resources for flagd proxy since it can now configure HA replica for flagd proxy

Changes
---
* update existing ClusterRole configuration to include poddisruptionbudget resource permissions for api group: policy

Testing
---
* manually apply changes to ClusterRole resource, change FlagSource and watch for permission errors. Retry with extra verbs until no reconcile errors were encountered.

Signed-off-by: woodyh <[email protected]>
@wondertroy wondertroy force-pushed the fix/missing-rbac-poddisruptionbudget branch from 2cd4cc3 to aa3e444 Compare October 30, 2024 02:08
Copy link
Contributor

@xvzf xvzf left a comment

Choose a reason for hiding this comment

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

lgtm 👍 Thanks! And sorry for not spotting this

Copy link

codecov bot commented Oct 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.25%. Comparing base (499661e) to head (7092b2f).
Report is 30 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #718      +/-   ##
==========================================
- Coverage   86.51%   86.25%   -0.26%     
==========================================
  Files          19       19              
  Lines        1587     1681      +94     
==========================================
+ Hits         1373     1450      +77     
- Misses        173      184      +11     
- Partials       41       47       +6     

see 3 files with indirect coverage changes

Flag Coverage Δ
unit-tests 86.25% <ø> (-0.26%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@beeme1mr beeme1mr merged commit 69efcf0 into open-feature:main Oct 30, 2024
15 of 17 checks passed
@github-actions github-actions bot mentioned this pull request Oct 30, 2024
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.

Missing ClusterRole permissions for poddisruptionbudgets
3 participants