remove unused methods

This commit is contained in:
rushtehrani
2020-05-18 21:43:02 -07:00
parent 8ddab20769
commit 3f5108121b
2 changed files with 0 additions and 44 deletions

View File

@@ -85,23 +85,6 @@ func UnmarshalWorkflows(wfBytes []byte, strict bool) (wfs []wfv1.Workflow, err e
return
}
func addEnvToTemplate(template *wfv1.Template, key string, value string) {
//Flag to prevent over-writing user's envs
overwriteUserEnv := true
for _, templateEnv := range template.Container.Env {
if templateEnv.Name == key {
overwriteUserEnv = false
break
}
}
if overwriteUserEnv {
template.Container.Env = append(template.Container.Env, corev1.EnvVar{
Name: key,
Value: value,
})
}
}
func appendArtifactRepositoryConfigIfMissing(artifact *wfv1.Artifact, namespaceConfig *NamespaceConfig) bool {
if artifact.S3 != nil && artifact.S3.Key != "" && artifact.S3.Bucket == "" {
s3Config := namespaceConfig.ArtifactRepository.S3