-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Configuration Watcher - Add The Ability To Notify Apps Based On Labels #1816
Comments
Are you referring to this functionality? |
@ryanjbaxter that's right |
I think that would be a worthwhile enhancement we can look into. Right now we use the If you are interested in submitting a PR with this functionality that would be amazing. Otherwise I might be able to take a look at it once we begin work on our next major release. |
I spent some time yesterday looking at this one. Those instances are the ones that contain the service metadata, including labels. But, those can be disabled via imho, we should introduce a new method in our custom k8s native discovery client (an nowhere else: not in fabric8, not in discovery server), that would return the "pure" services with metadata they have. But I've only spent about 2h yesterday on this subject. |
Thanks for the initial feedback. Couple of thoughts. 1.) I assume if you disable labels via 2.) If you use
I am not sure why this is needed but I have looked at it less than you have, so maybe when I look at it or see the code I would understand better. Either way, I am not sure I see a reason here not to do this based on what you have said. |
I took a fresh pass over the code today in the morning and... (surprise) I agree with you now :). I'd like to work on this, and hope to do it fairly soon. |
Is your feature request related to a problem? Please describe.
Currently, the configuration uses a list of service names to specify which services needs to be notified when a configmap change. This approach requires manual updates whenever services are added, removed, or renamed, leading to potential maintenance overhead and errors.
Describe the solution you'd like
Modify the configuration to use label selectors instead of a list of service names. This can be done by specifying the desired labels in a selector field. For example:
Using label selectors instead of explicitly listing service names can make it more flexible and scalable. This approach allow to dynamically select services based on their labels, which can be particularly useful in environments where services are frequently added, removed, or changed.
The text was updated successfully, but these errors were encountered: