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 poddisruptionbudget update verb #722

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

Conversation

wondertroy
Copy link
Contributor

This PR

Openfeature operator controller manager needs to be able to update pod disruption budgets as replica counts can be updated

  • add update verb to manager role for pod disruption budgets

Related Issues

#717

Notes

After deploying v0.8.1 I noticed these new permissions were not in the role. I think I've missed some required change to get these reconciled in to the role resource.

Follow-up Tasks

  • double check that this get's reconciled to role when updating versions / installing through helm.

How to test

  • Install via helm to a cluster
  • include flagdProxyConfiguration.replicaCount=2 in helm configuration in values
  • add a flagd-proxy FlagSourceConfiguration
  • watch openfeature operator controller manager logs, validate PodDisruptionBudget gets updated to have max 2 pods

Background
---
Openfeature operator controller manager needs to be able to update pod disruption budgets as replica counts can be updated

Changes
---
* add update verb to manager role for pod disruption budgets

Signed-off-by: woodyh <woodyh@blackmagicdesign.com>
@wondertroy wondertroy requested a review from a team as a code owner November 6, 2024 01:24
@wondertroy wondertroy changed the title Add missing poddisruptionbudget update verb fix: Add missing poddisruptionbudget update verb Nov 6, 2024
Copy link

codecov bot commented Nov 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.25%. Comparing base (499661e) to head (9e0fdc6).
Report is 33 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #722      +/-   ##
==========================================
- 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.

…dget permission

Signed-off-by: woodyh <woodyh@blackmagicdesign.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.

3 participants