Skip to content

Commit

Permalink
Make phase and templateRef available for unsuspend and retry selectors (
Browse files Browse the repository at this point in the history
  • Loading branch information
markterm committed Apr 20, 2020
1 parent a6fa3f7 commit 391c0f7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions workflow/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,11 @@ func selectorMatchesNode(selector fields.Selector, node wfv1.NodeStatus) bool {
nodeFields := fields.Set{
"displayName": node.DisplayName,
"templateName": node.TemplateName,
"phase": string(node.Phase),
}
if node.TemplateRef != nil {
nodeFields["templateRef.name"] = node.TemplateRef.Name
nodeFields["templateRef.template"] = node.TemplateRef.Template
}
if node.Inputs != nil {
for _, inParam := range node.Inputs.Parameters {
Expand Down

0 comments on commit 391c0f7

Please sign in to comment.