Skip to content

Conversation

@Oro
Copy link
Contributor

@Oro Oro commented Oct 29, 2024

This PR

  • Allow setting mutatingWebhook failurePolicy and objectSelector via helm

This makes it possible to configure new pods to wait until the webhook is available. Otherwise pods will start and not get mutated, i.e. will be missing the flagd sidecar.
The objectSelector is needed so that the webhook itself can still start up as otherwise it would fail while waiting on itself.

Related Issues

Fixes #654

@Oro Oro requested a review from a team October 29, 2024 13:58
@Oro Oro force-pushed the feat/mutatingwebhookconfig branch from 651fd1c to 92a5d3d Compare October 29, 2024 14:00
@codecov
Copy link

codecov bot commented Oct 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

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

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

Copy link
Member

@beeme1mr beeme1mr left a comment

Choose a reason for hiding this comment

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

Looks good, thanks.

@thisthat
Copy link
Member

Thanks @Oro for the PR 🙌
Could you please run ./.github/scripts/generate-helm-docs.sh to re-generate the Helm docs with these new options?

Signed-off-by: Marco Orovecchia <[email protected]>
@Oro Oro force-pushed the feat/mutatingwebhookconfig branch from e635000 to 0d59028 Compare November 4, 2024 08:19
@beeme1mr beeme1mr requested a review from toddbaert November 6, 2024 16:46
@lukas-reining lukas-reining merged commit e3f1e24 into open-feature:main Jan 13, 2025
4 checks passed
@github-actions github-actions bot mentioned this pull request Jan 13, 2025
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.

Sidecar is not injected during Kubernetes Cluster startup

4 participants