We add a typo in the addStorageAnnotations method, where the append for new artifact was messed up

This commit is contained in:
pb
2025-08-11 12:01:34 +02:00
parent 7eed5d10e9
commit f22e7f4514
3 changed files with 35 additions and 11 deletions

View File

@@ -201,6 +201,7 @@ func (b *ArgoBuilder) createArgoTemplates(namespace string,
func (b *ArgoBuilder) addStorageAnnotations(id string, template *Template, namespace string, volumes []VolumeMount) []VolumeMount {
related := b.OriginWorkflow.GetByRelatedProcessing(id, b.OriginWorkflow.Graph.IsStorage) // Retrieve all of the storage node linked to the processing for which we create the template
for _, r := range related {
storage := r.Node.(*resources.StorageResource)
for _, linkToStorage := range r.Links {
@@ -220,10 +221,11 @@ func (b *ArgoBuilder) addStorageAnnotations(id string, template *Template, names
b.addS3annotations(&art, template, rw, linkToStorage, storage, namespace)
}
fmt.Println(art.Name)
if rw.Write {
template.Outputs.Artifacts = append(template.Inputs.Artifacts, art)
template.Outputs.Artifacts = append(template.Outputs.Artifacts, art)
} else {
template.Inputs.Artifacts = append(template.Outputs.Artifacts, art)
template.Inputs.Artifacts = append(template.Inputs.Artifacts, art)
}
}
}