updated the annotation for clustername with new naming convention in argo builder
This commit is contained in:
parent
c40b18f1d6
commit
ee94c1aa42
@ -433,8 +433,8 @@ func (b *ArgoBuilder) CompleteBuild(executionsId string) (string, error) {
|
|||||||
// Update the name of the admiralty node to use
|
// Update the name of the admiralty node to use
|
||||||
for _, template := range b.Workflow.Spec.Templates {
|
for _, template := range b.Workflow.Spec.Templates {
|
||||||
if len(template.Metadata.Annotations) > 0 {
|
if len(template.Metadata.Annotations) > 0 {
|
||||||
if _, ok := template.Metadata.Annotations["multicluster.admiralty.io/clustername"]; ok {
|
if peerId, ok := template.Metadata.Annotations["multicluster.admiralty.io/clustername"]; ok {
|
||||||
template.Metadata.Annotations["multicluster.admiralty.io/clustername"] = "target-" + conf.GetConfig().ExecutionID
|
template.Metadata.Annotations["multicluster.admiralty.io/clustername"] = "target-" + peerId + "-" + conf.GetConfig().ExecutionID
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user