-
Notifications
You must be signed in to change notification settings - Fork 40
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
OpenFeature is disabled? #579
Comments
@agardnerIT I'm not too familiar with Argo Rollout, but I'm a but suspicious that the use of the I see in the Rollout docs that you can reference a workload (deployment) with |
I guess the difference between the index creation here and the idex used when backfilling the permissions here might be the problem. The index creation is happening with |
Ok, I found to problem and it was me introducing it, before the refactoring, the indexer creation was creating an index to It makes sense as this annotation is injected to the pod and not to the deployment. Therefore the indexed field is the annotation in the pod and not the annotation in the pod template, which is part of the deployment. I already have a fix and will submit a PR soon Sorry about the problems |
Fix available here #582 The bug was introduced here d234410#diff-2873f79a86c0d8b3335cd7731b0ecf7dd4301eb19a82ef7a1cba7589b5252261L188 |
Reopening this pending resolution of this comment. |
According to Adam's manifests, I think the enablement of OF should be ok. Also if the OF would not bet enabled, we wouldn't receive the problems with backfilling permissions -> we won't be able to reach this part of code at all. Maybe Argo was creating a Pod in a completely different namespace at that time (completely unrelated to this Deployment)? Here it would make sense that the podMutator kicks in, checks if this Pod is annotated, finds out it's not, writes out the message and lets the pod to be bind to a node without any mutation? I think here we need to have more info about what was happening in the system generally... Just thinking out loud what the possibilities might be, do not have any proof for this theory. @agardnerIT can you maybe provide us with some more insight? Thank you! |
Hi I'm also facing the same error I start playing with the killercoda scenario for the openfeature operator for a POC, but after following the instructions I noticed that the changes made to the CRDs had not effects in the demo app, so I further investigate why and I found that:
![]() Note: I previously did the changes mentioned here to migrate the CRs for versions of the OpenFeature Operator above 0.5.0 because the example files are outdated I also tried installing everything in my k8s cluster following the instructions provided in your docs After not seeing the flagd sidecar being injected, I checked the logs of the pod running the operator and again I found the same error 2023-12-23T20:20:26Z ERROR setup podMutator backfill permissions error {"error": "Index with name field:metadata.annotations.openfeature.dev/allowkubernetessync does not exist"} and also I have in the logs: 2023-12-23T20:20:39Z DEBUG controller-runtime.webhook.webhooks received request {"webhook": "/mutate-v1-pod", "UID": "d18b1152-6286-43df-bc5c-e2659363a1c5", "kind": "/v1, Kind=Pod", "resource": {"group":"","version":"v1","resource":"pods"}}
2023-12-23T20:20:39Z DEBUG controller-runtime.webhook.webhooks wrote response {"webhook": "/mutate-v1-pod", "code": 200, "reason": "OpenFeature is disabled", "UID": "d18b1152-6286-43df-bc5c-e2659363a1c5", "allowed": true} so the issue is not related to Argo, also is worth to mention that I tried using the versions 0.5.1 and 0.5.0 of the OF operator but all they have the same bug, you can confirm this by installing those versions in the killercoda scenario I mentioned above |
@edxz7 @agardnerIT I've released 0.5.3, which should (at the very least partially) resolve this issue. Please confirm when you have time. |
Hello @toddbaert I did a quick test in the killercoda scenario for the openfeature operator with the version you just released (0.5.3) and the error message: 2023-12-30T06:32:09Z DEBUG controller-runtime.webhook.webhooks wrote response {"webhook": "/mutate-v1-pod", "code": 200, "reason": "OpenFeature is disabled", "UID": "fe49eaf0-2906-4f44-aac1-e2bb1203c873", "allowed": true} and still the OFO doesn't inject the sidecar I don't know if this is the expected behavior (having openfeature disabled by default) and if it's the case, How can I enable it manually? Btw, I also try to test it in my k8s cluster (which is running in eks) but the installation of the new version ends with an error, this are the logs of the installation: clusterrolebinding.rbac.authorization.k8s.io/open-feature-operator-flagd-kubernetes-sync configured
clusterrolebinding.rbac.authorization.k8s.io/open-feature-operator-manager-rolebinding unchanged
clusterrolebinding.rbac.authorization.k8s.io/open-feature-operator-proxy-rolebinding unchanged
configmap/open-feature-operator-manager-config unchanged
service/open-feature-operator-controller-manager-metrics-service unchanged
service/open-feature-operator-webhook-service unchanged
deployment.apps/open-feature-operator-controller-manager unchanged
certificate.cert-manager.io/open-feature-operator-serving-cert unchanged
issuer.cert-manager.io/open-feature-operator-selfsigned-issuer unchanged
mutatingwebhookconfiguration.admissionregistration.k8s.io/open-feature-operator-mutating-webhook-configuration configured
error: no matching resources found I don't know why that error happens, but the pods runs without issues and they throw the same logs as in the killercoda scenario, that is, the error message |
I was just looking at the killercoda demo and there may be other issues, but the main one is that demo hasn't been updated since our change to @edxz7 sorry about that! I believe outside of killercoda, things are be OK. I just ran through https://openfeature.dev/docs/tutorials/ofo/ and it works well. If you can run |
Hi gents, I think I've now updated the killercoda OpenFeature Operator demo for these fixes. Please try: https://killercoda.com/agardnerit/scenario/testing-ground and LMK here. If all is well, I'll open a PR. One thing I noticed is a typo in the docs tutorial. When the the welcome message flag is changed, the second text is: Change Summary:
|
Thanks @agardnerIT, I've updated the tutorial to include the correct banner text. The tutorial works great but I there were a few minor issues I noticed.
Thanks! |
Sorry it's taken so long. But I think the above changes have been fixed. You should see If you give me the thumbs up, I'll get the PR done. |
@beeme1mr just chasing this up. Can we merge the tutorial into the main repo? |
Yes, please open a PR when you have a moment. |
@agardnerIT please update the Killercoda tutorials when you have a moment. I'm going to close this ticket because the underlying issue has been addressed. |
In the same investigation as #575 and open-feature/flagd#1063
Also noticed:
OFO v0.5.2 deployed w/ Argo (Helm) + flagd proxy.
Application and Flag Config
kubectl version
The text was updated successfully, but these errors were encountered: