MCPcopy Index your code
hub / github.com/argoproj/argo-workflows / setNodeDisplayName

Method setNodeDisplayName

workflow/controller/operator.go:4580–4585  ·  view source on GitHub ↗
(ctx context.Context, node *wfv1.NodeStatus, displayName string)

Source from the content-addressed store, hash-verified

4578}
4579
4580func (woc *wfOperationCtx) setNodeDisplayName(ctx context.Context, node *wfv1.NodeStatus, displayName string) {
4581 nodeID := node.ID
4582 newNode := node.DeepCopy()
4583 newNode.DisplayName = displayName
4584 woc.wf.Status.Nodes.Set(ctx, nodeID, *newNode)
4585}
4586
4587func (woc *wfOperationCtx) updateLastSeenVersionAnnotation(value string) {
4588 if woc.wf.GetAnnotations() == nil {

Callers 1

executeTemplateMethod · 0.95

Calls 2

DeepCopyMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected