forked from argoproj/argo-workflows
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(server): Label workflows with creator. Closes argoproj#2437
- Loading branch information
Showing
28 changed files
with
763 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,20 @@ | ||
# Workflow Creator | ||
|
||
Today, is not possible for Argo Workflows to determine who created a workflow. | ||
![alpha](assets/alpha.svg) | ||
|
||
The recommended approach is to add a label to your workflow, e.g. | ||
> v2.9 and after | ||
``` | ||
argo submit -l creator=alex | ||
``` | ||
If you create your workflow via the CLI or UI, an attempt will be made to label it with the user who created it | ||
|
||
```yaml | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Workflow | ||
metadata: | ||
name: my-wf | ||
labels: | ||
workflows.argoproj.io/creator: admin | ||
``` | ||
|
||
!!! NOTE | ||
Labels only contain `[-_.0-9a-zA-Z]`, so any other characters will be turned into `-`. | ||
|
Oops, something went wrong.