-
Notifications
You must be signed in to change notification settings - Fork 182
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
write OCIRepository origin revision to event metadata #1295
Comments
Since the |
They are meant for |
Ah okay, either way I think my request still stands? I took a look at the code, what do you think about passing |
I could also try to add the logic to lookup annotations on the OCI source directly to the notification controller, using the event's InvolvedObject to check if the associated source is OCI and if it has a revision annotation to parse. I'm betting that's the better option is to put the correct revision information in the event rather than having an event consumer do extra work to look up additional information. |
I have been experimenting with flux 2.4.0, and was surprised to find out that git commit status updates are not supported when using OCIRepository manifest sources, despite the examples in the docs https://fluxcd.io/flux/cmd/flux_push_artifact/#synopsis (permalink) suggesting to annotate the artifact with the source revision, for example, the first example shows using
--revision
:What's the point of annotating these artifacts if the source revision is not used by the notification controller?
What I'd like to see is when reconciling a kustomization from an OCIRepository source, calls to
KustomizationReconciler.event(...)
that have the source available (some calls won't have a source, such as when access is denied) include theorg.opencontainers.image.revision
annotation that's included in the source manifest's annotations. One obvious example of where I'd like to see this is on the event successfully reconciled event:kustomize-controller/internal/controller/kustomization_controller.go
Lines 198 to 201 in 29080cb
The text was updated successfully, but these errors were encountered: