From ee94c1aa42c83901c334d4151cbff2b03d03fc62 Mon Sep 17 00:00:00 2001 From: pb Date: Tue, 6 May 2025 17:26:47 +0200 Subject: [PATCH] updated the annotation for clustername with new naming convention in argo builder --- workflow_builder/argo_builder.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workflow_builder/argo_builder.go b/workflow_builder/argo_builder.go index b536160..3893d76 100644 --- a/workflow_builder/argo_builder.go +++ b/workflow_builder/argo_builder.go @@ -433,8 +433,8 @@ func (b *ArgoBuilder) CompleteBuild(executionsId string) (string, error) { // Update the name of the admiralty node to use for _, template := range b.Workflow.Spec.Templates { if len(template.Metadata.Annotations) > 0 { - if _, ok := template.Metadata.Annotations["multicluster.admiralty.io/clustername"]; ok { - template.Metadata.Annotations["multicluster.admiralty.io/clustername"] = "target-" + conf.GetConfig().ExecutionID + if peerId, ok := template.Metadata.Annotations["multicluster.admiralty.io/clustername"]; ok { + template.Metadata.Annotations["multicluster.admiralty.io/clustername"] = "target-" + peerId + "-" + conf.GetConfig().ExecutionID } } }