open-feature / open-feature-operator

A Kubernetes feature flag operator
https://openfeature.dev
Apache License 2.0
181 stars 35 forks source link

feat: Add hostNetwork flag. #680

Closed cpitstick-latai closed 3 months ago

cpitstick-latai commented 3 months ago

This PR

Add hostNetwork and dnsPolicy settings to enable compatibility with EKS clusters that have a custom CNI. Without these, the MutatingWebhook that adds the flagd sidecar to pods will not function.

Related Issues

Notes

This relies on .github/scripts/strip-kustomize-helm.sh because boolean values have to be true/false without quotes, so to set hostNetwork to true in the helm chart, we have to strip out the quotes that are used to allow kustomize to ignore helm chart directives.

Follow-up Tasks

How to test

Test the operator with a test workload that uses the flagd sidecar on an EKS cluster with a custom CNI (Calico is most common).

toddbaert commented 3 months ago

This seems right to me. The CNCF mandates you sign-off your commit though, so we implement some checks for that.

You can do git commit --amend --signoff and force push.

cpitstick-latai commented 3 months ago

I did a sign off. However, it looks like the actions workflow experienced a transient failure!

cpitstick-latai commented 3 months ago

This should be ready to go now!

toddbaert commented 3 months ago

Tested locally, looks good. I'll give 24h for others to review, but I think this is small enough to merge with 1 approval.