https://github.com/linuxsuren/argo-workflow-atomic-plugin
An atomic plugin of Argo workflows
https://github.com/linuxsuren/argo-workflow-atomic-plugin
argo-workflows atomic
Last synced: 6 months ago
JSON representation
An atomic plugin of Argo workflows
- Host: GitHub
- URL: https://github.com/linuxsuren/argo-workflow-atomic-plugin
- Owner: LinuxSuRen
- Created: 2023-01-13T01:16:13.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-10-24T01:28:28.000Z (12 months ago)
- Last Synced: 2025-04-30T20:07:47.330Z (6 months ago)
- Topics: argo-workflows, atomic
- Language: Go
- Homepage:
- Size: 92.8 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://goreportcard.com/report/linuxsuren/argo-workflow-atomic-plugin)
[](https://godoc.org/github.com/linuxsuren/argo-workflow-atomic-plugin)
[](https://github.com/linuxsuren/argo-workflow-atomic-plugin/graphs/contributors)
[](https://github.com/linuxsuren/argo-workflow-atomic-plugin/releases/latest)
This plugin could reduce unnecessary Argo workflows. For example, there are mutiple commits against a pull request in a short time.
In most cases, only the last time of the workflow running is necessary. This plugin will stop all the workflows which have the same
parameters and come from same WorkflowTemplate.## Install
First, enable the plugin feature of Argo workflows:
```shell
kubectl patch deployment \
workflow-controller \
--namespace argo \
--type='json' \
-p='[{"op": "add", "path": "/spec/template/spec/containers/0/env/0", "value": {
"name": "ARGO_EXECUTOR_PLUGINS",
"value": "true",
}}]'
```then, install this plugin as a ConfigMap:
```shell
cat <