Skip to content
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

cli to list all possible node-field values for a workflow #10675

Open
tooptoop4 opened this issue Mar 12, 2023 · 1 comment
Open

cli to list all possible node-field values for a workflow #10675

tooptoop4 opened this issue Mar 12, 2023 · 1 comment
Labels
area/cli The `argo` CLI area/retry-manual Manual workflow "Retry" Action (API/CLI/UI). See retryStrategy for template-level retries type/feature Feature request

Comments

@tooptoop4
Copy link
Contributor

tooptoop4 commented Mar 12, 2023

https://argoproj.github.io/argo-workflows/cli/argo_retry/ accepts --node-field-selector but I'm struggling to find key/values to pass into it.

I tried different keys (ie field names) from https://argoproj.github.io/argo-workflows/node-field-selector/ and then different formats of values including dag.steps.thestep(0) among 10s of other combos but no luck!

would be great if there was a cli command that accepts argument of workflowname and nodefield, then it returns output of all possible values for that nodefield in that workflow

implementation idea
i imagine this will loop through all nodes of a workflow

} else if _, ok := wf.Status.Nodes[wf.ObjectMeta.Name]; !ok {
then for each node print out all the key/value pairs:
nodeFields := fields.Set{
"displayName": node.DisplayName,
"templateName": GetTemplateFromNode(node),
"phase": string(node.Phase),
"name": node.Name,
"id": node.ID,
}

i'm guessing above won't be available when already archived
i think dag is the trickiest to understand full path at the moment

@tooptoop4 tooptoop4 added the type/feature Feature request label Mar 12, 2023
@terrytangyuan
Copy link
Member

terrytangyuan commented Mar 19, 2023

Could you paste what you tried exactly, including the field name and value?

@agilgur5 agilgur5 added area/retry-manual Manual workflow "Retry" Action (API/CLI/UI). See retryStrategy for template-level retries area/cli The `argo` CLI labels Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli The `argo` CLI area/retry-manual Manual workflow "Retry" Action (API/CLI/UI). See retryStrategy for template-level retries type/feature Feature request
Projects
None yet
Development

No branches or pull requests

3 participants