-
Notifications
You must be signed in to change notification settings - Fork 163
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
Add event metadata field to HelmRelease spec #682
Conversation
This has overlap with #514, and is in general quite the change to accept without more discussion among maintainers. I suggest you join one of our project meetings to further discuss your proposal. |
Nice, thanks for pointing that out! I didn't know about the meetings, I joined the list and subscribed to the calendar here!! Thanks 🙏 🙏 🙏 |
Signed-off-by: Matheus Pimenta <[email protected]>
Closing this in favour of fluxcd/notification-controller#519 |
Can we re-open this one? Yes, there is an overlap with #514, but this one here tackles a different issue. My use-case: To be able to match the created |
@matheuscscp Any chance you joined a meeting and brought this up already? |
@matheuscscp And more on-topic, would it be enough to just include the manifest's |
I can do it this week 👌 |
Hey @moritzschmitz-oviva, while this feature is not available in the |
Hm, just had another look and it would suffice if I change my setup a bit. My folder structure right now:
I could change to:
What I am trying to say: I could add an |
@moritzschmitz-oviva One question: how would you identify the GitHub deployment? |
The API returns an ID when creating a deployment: https://docs.github.com/en/rest/deployments/deployments?apiVersion=2022-11-28#create-a-deployment. We have a GitHub app which creates a deployment via above API and then modifies files inside the FluxCD repository. When we create the files, we already have the ID and can set it as a metadata field. Now when the notification-controller reports the successful installation of the HelmRelease we call the GitHub app again and pass the metadata. It then knows which deployment to 'proceed'. Does that make sense? |
Hey @moritzschmitz-oviva I just wanted to let you know that we are going to support sending object annotation keys prefixed with a to-be-defined API Group, e.g. something like |
@matheuscscp This is seriously great news! Thanks for picking this up! 🚀 |
@moritzschmitz-oviva Feel free to comment: https://github.com/fluxcd/flux2/pull/4809/files |
Fixes #680