feat: Update Flagd container injection to native Kubernetes sidecar#807
feat: Update Flagd container injection to native Kubernetes sidecar#807Y0sh1dk wants to merge 7 commits intoopen-feature:mainfrom
Conversation
Signed-off-by: Yosiah de Koeyer <dev@yosiahdekoeyer.dev>
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request refactors the flagd container injection logic within the OpenFeature operator to leverage native Kubernetes sidecar containers, addressing a known issue. This change aligns the operator with modern Kubernetes practices for managing auxiliary containers, improving the lifecycle management of flagd instances. It's important to note that this update introduces a breaking change for older Kubernetes versions (pre-v1.29) that do not support built-in sidecar containers. Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request updates the flagd container injection to use native Kubernetes sidecar containers, which is a great improvement for clusters that support this feature (v1.29+). The changes correctly modify the injection logic to place the flagd container into initContainers with restartPolicy: Always. The tests have been updated accordingly to validate the new behavior. The implementation is solid. I've left one minor comment regarding import consistency in a test file.
| corev1 "k8s.io/api/core/v1" | ||
| v1 "k8s.io/api/core/v1" |
There was a problem hiding this comment.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #807 +/- ##
===========================================
- Coverage 86.51% 72.34% -14.17%
===========================================
Files 19 30 +11
Lines 1587 1924 +337
===========================================
+ Hits 1373 1392 +19
- Misses 173 484 +311
- Partials 41 48 +7
... and 25 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Signed-off-by: Yosiah de Koeyer <dev@yosiahdekoeyer.dev>
Signed-off-by: Yosiah de Koeyer <dev@yosiahdekoeyer.dev>
Signed-off-by: Yosiah de Koeyer <dev@yosiahdekoeyer.dev>
ebc2e01 to
ff9329a
Compare
This PR
Fixes #806 by updating the flagd container injection to inject as a sidecar
Related Issues
Fixes #806
Notes
How to test
Minimal scenario to test documented in #806