-
Notifications
You must be signed in to change notification settings - Fork 3
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
Feature Flags are loaded randomly in the ConfigMap #75
Comments
Hi @simonmalletrc , currently the Kubernetes provider pulls the latest feature flag settings from the app config store every refresh interval and regenerate the ConfigMap (even if the content hasn't changed). We already have PR aimed at optimizing this refresh process, so that the ConfigMap will only be updated when the selected keyValues/featureFlags really change. This enhancement will be included in the next version, please stay tuned. |
Thank you ! |
It's been fixed in the latest v2.1.0. |
I confirm it works as intended in version 2.1.0 |
@RichardChen820 What is workingWhen a refresh occurs, the configMap is not updated if feature manager values have not changed. Which means the container is not restarted for no reason. Great! What is not workingBased on the documentation here: When I restart the controller using the command it refreshes the configmap and the order of the keys in the feature manager changes which triggers a rolling update although nothing has changed. Expected behaviourThe keys inside the feature_management object should be in alphabetical order to avoid changing position and triggering a rolling update. It is working as expected for values inside the configuration explorer. Only the Feature Manager is affected. |
values.yaml for reference
|
@simonmalletrc Thanks for reporting this, this is indeed an issue, we need to ensure the configMap is refreshed only when there are actual content changes. The current problem lies in the serialization process, as converting objects into string value does not produce consistent results, we will work on fixing it. For now, you might could avoid frequently restarting the controller unless absolutely necessary. |
@linglingye001 The potential fix may require covering these two points:
|
Hello,
We have just finished configuring AppConfiguration Kubernetes Provider in our infrastructure and everything seems to be working except for the feature flags.
When I use the spec.featureFlag.refresh in conjuction with stakater/reloader, every refresh it does a rolling update.
Rolling updates are done only when changes are detected.
After investigation we found out that the order in which feature flags are loaded in the ConfigMap are completely random instead of being in alphabetical order which triggers a rolling update every refresh.
Expected Result
Rolling update only when actual changes
Actual Result
Rolling update with same Feature Flag values (because of feature flags being loaded randomly in the ConfigMap)
The text was updated successfully, but these errors were encountered: