We add a typo in the addStorageAnnotations method, where the append for new artifact was messed up
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user