Skip to content

Commit

Permalink
fix(frontend): compatibility with pod_names v1 (#11682)
Browse files Browse the repository at this point in the history
Signed-off-by: droctothorpe <[email protected]>
Co-authored-by: cmdevoto <[email protected]>
  • Loading branch information
droctothorpe and cmdevoto authored Mar 5, 2025
1 parent 89c8bd7 commit afb3b14
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/lib/Utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,10 @@ export function getNodeNameFromNodeId(workflow: Workflow, nodeId: string): strin
if (!workflow || !nodeId) {
return '';
}
if (workflow.apiVersion === 'v1') {

const podNamesAnnotation =
workflow.metadata.annotations?.['workflows.argoproj.io/pod-name-format'];
if (workflow.apiVersion === 'v1' || podNamesAnnotation === 'v1') {
return nodeId;
}

Expand Down

0 comments on commit afb3b14

Please sign in to comment.