MCPcopy
hub / github.com/argoproj/argo-workflows / getPodName

Method getPodName

workflow/controller/operator.go:4521–4524  ·  view source on GitHub ↗

getPodName gets the appropriate pod name for a workflow based on the POD_NAMES environment variable

(nodeName, templateName string)

Source from the content-addressed store, hash-verified

4519// getPodName gets the appropriate pod name for a workflow based on the
4520// POD_NAMES environment variable
4521func (woc *wfOperationCtx) getPodName(nodeName, templateName string) string {
4522 version := wfutil.GetWorkflowPodNameVersion(woc.wf)
4523 return wfutil.GeneratePodName(woc.wf.Name, nodeName, templateName, woc.wf.NodeID(nodeName), version)
4524}
4525
4526func (woc *wfOperationCtx) getServiceAccountTokenName(ctx context.Context, name string) (string, error) {
4527 if name == "" {

Callers 2

executeTemplateMethod · 0.95
getPodByNodeMethod · 0.95

Calls 1

NodeIDMethod · 0.80

Tested by

no test coverage detected