get artifactRepository config separately

This commit is contained in:
rushtehrani
2020-05-20 12:15:53 -07:00
parent 609f24fcb2
commit 6d0260a623
2 changed files with 8 additions and 2 deletions

View File

@@ -119,6 +119,12 @@ func (c *Client) injectAutomatedFields(namespace string, wf *wfv1.Workflow, opts
}
}
// Get artifact repository config from current namespace
wf.Spec.ArtifactRepositoryRef = &wfv1.ArtifactRepositoryRef{
ConfigMap: "onepanel",
Key: "artifactRepository",
}
// Create dev/shm volume
wf.Spec.Volumes = append(wf.Spec.Volumes, corev1.Volume{
Name: "sys-dshm",