-
Notifications
You must be signed in to change notification settings - Fork 132
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
Alerts/Github - is it possible to separate add additional metadata? #589
Comments
The The commit status API accepts the parameters |
I'll be happy with any solution that doesn't involve renaming my kustomizations per cluster.
to no avail, my understanding is that certain fields as context cannot be overridden https://github.com/fluxcd/notification-controller/pull/529/files#diff-9c161f071659a6d134b4cfdd27ad66fc88d93b5dfb102d7bb5a768b9e9e483eaR81 as you mentioned they are used by flux already. |
Looks like this PR described the same use case #340 |
@makkes maybe we should include it in the |
Would be fine from my perspective. |
@makkes : Please assign this issue to me. I can work on it. |
is there any workaround to achieve this? |
I see that ut uses uid of the provider in commit status like this: kustomization/tf-controller/25c8a95e |
No. |
@makkes |
|
@makkes the summary field is human-readable text, not an identifier. For this issue, it would be preferable to to change the context value of the github status to make it predictable for each cluster so that other CI steps can wait on the status to be set. |
So my goal is to run a github action step to check if fluxcd reconciliation for a kustomization towards a specificcluster was successful. There are three different kustomizations in three different clusters which may post
reconcilation successful
status to my commit on github. The kustomizations have the same exact name It does not seem like modifying theeventMetadata
orsummary
fields in the Alert resource adds any extra metadata to the github status.I guess a workaround is to name the kustomizations
tstsp1-github-info-${cluster}
rather than justtstsp1-github-info
, but I am wondering if there are other methods to inject this metadata into the Github status? Thedescription
orcontext
fields would be sufficient to modify in my use case.Say I have a repo with the following structure
orgX/wl-tstsp1:
Each folder is connected to the namespace called
tstsp1
in three different cluster (dev/test/prod)From each of the clusters there is a alert updating the github status
I end up with a status looking somewhat like the below:
The text was updated successfully, but these errors were encountered: