-
Notifications
You must be signed in to change notification settings - Fork 187
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
Ability to skip HTTP requests on initial "ADDED" events #216
Comments
I second all of the above! 🙂 I'm using the Jenkins Helm chart and noticed that the URL is called multiple times at startup which makes startup slower. In fact, what would be even more awesome would be to bulk-apply changes. Currently, if the configuration is split in multiple files, the k8s-sidecar sends the HTTP call for each file, but it might call the URL with an incomplete (and broken) configuration if all files are not on the volume. This can happen quite easily when using the Jenkins Helm chart but I'm sure it can happen in other cases. My Jenkins instance can end up in a pretty bad shape because it tries to load incomplete configuration. This can also happen at runtime, as we tend to update our configuration files in bulk. What would be awesome would be to watch for changes, and if one is detected, process all the files at once and send a single HTTP call at the end.
Would be open to working on this (I'm a newbie in Python though). |
@quilicicf You could chime in and continue with the PR @pkosiec contributed, the following tasks are still open:
|
Will try to have a look 👍 |
Hey @quilicicf, Sure, feel free to continue my PR. Unfortunately, I didn't have time to update the tests, however the functionality works as it should. |
I've got a rebased version of the branch now, but I'll need guidance on the tests. I don't understand how they work currently, can't find the entrypoint 🤔 |
It's basically a bash script embedded into the github action... 🙈 |
No worries, just not used to GitHub actions yet, was looking for a Jenkinsfile or .travis.yml 🙃 Habits die hard. |
I have had a look and I must say it's a bit overwhelming currently 😅 The tests require a K8s cluster to run so they're relatively cumbersome to run on a dev's machine and I'm having a hard time entangling input from output and what tests what :-( I'm not sure I'm up to the task unfortunately, it feels too hard to contribute to the tests as they are and I don't think it's reasonable to suggest creating new tests from scratch either in a technical environment I'm not very comfortable with 🙁 |
I am sorry to hear that. Let me try to explain what's happening and maybe you change your mind?
Hope that helps...? I know this can't really be tested easily on a dev machine but we can run the workflow on the PR pretty easy as often as necessary. |
This issue has been automatically marked as stale because it has not had any activity in the last 60 days. Thank you for your contributions. |
Hi,
Awesome project! This is exactly what I was looking for.
I use the request functionality to be notifier every time one of the watched ConfigMaps or Secrets is updated. However, during the container start, I'm getting multiple requests to my service about "ADDED" event, which I would like to avoid. It would be great to have it configurable so that my service is notified only when any other event occurs except the initial "Added" one.
I can contribute the feature as I already updated the code on my fork. Stay tuned!
The text was updated successfully, but these errors were encountered: