-
Notifications
You must be signed in to change notification settings - Fork 145
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 rest api / webhook implementation to trigger warehouse/freight refresh #2532
Comments
Until something is available, here's a workaround folks can use in the meantime in your pipelines:
Get the token via a service account assigned the clusterrole to delete a warehouse:
|
I'm going to close this because we already have #647 and #1449 tracking this from both a git repo and container repo perspective. Note that a universal solution is rather difficult, but we intend to do this eventually. In the meantime, there is a simpler, less heavy-handed workaround than the one you're using currently. Instead of deleting a Warehouse, forcing Argo CD to re-create it and thereby forcing a reconciliation, consider adding the annotation So, as an even simpler workaround, you could actually use the CLI to do this:
|
Sounds good. Thanks for the refresh annotation. I'll update my technique. |
For reference: Script to trigger refresh:
RBAC / ServiceAccount related:
|
Checklist
Proposed Feature
Implement a REST API / webhook which takes the freight repo/name (exactly as defined in the warehouse as a subscription) & causes a refresh of all warehouses in all projects polling that freight (or at least all warehouses with an 'annotation' indicating they want to be included, but wouldn't all warehouses in all projects want to be included?).
If this feature already exists, then maybe we could add a note to the getting started documentation.
Motivation
I love the idea of dedicating pipelines to building an image or image & helm chart ... and nothing else, with promotion all handled via another application, kargo.
However, my developers are not going to want to wait for kargo to poll an image or helm repository, they need the next step to be kicked off immediately.
Until kargo can handle webhooks from repos indicating there is new freight available, this could be a workaround everyone uses.
Workaround
Until a preferred solution comes along, I'm implementing something quick in my environment to delete warehouse resources. The warehouses are then reapplied automatically via argocd and immediately refresh freight.
Suggested Implementation
The text was updated successfully, but these errors were encountered: