// amendBuild make changes on build object.
amendBuild make changes on build object.
// amendBuild make changes on build object .
func amendBuild(identifier string, b *operator.Build) {
	amendSourceSecretName(b, os.Getenv(EnvVarSourceURLSecret))
	if strings.Contains(identifier, "github") {
		amendSourceURL(b, os.Getenv(EnvVarSourceURLGithub))
	} else if strings.Contains(identifier, "gitlab") {
		amendSourceURL(b, os.Getenv(EnvVarSourceURLGitlab))
	}
	amendOutputImageURL(b, os.Getenv(EnvVarImageRepo))
	amendOutputSecretRef(b, os.Getenv(EnvVarImageRepoSecret))
}
func amendBuild ( identifier string , b * operator . Build ) { amendSourceSecretName ( b , os . Getenv ( EnvVarSourceURLSecret ) ) if strings . Contains ( identifier , " " ) { amendSourceURL ( b , os . Getenv ( EnvVarSourceURLGithub ) ) } else if strings . Contains ( identifier , " " ) { amendSourceURL ( b , os . Getenv ( EnvVarSourceURLGitlab ) ) } amendOutputImageURL ( b , os . Getenv ( EnvVarImageRepo ) ) amendOutputSecretRef ( b , os . Getenv ( EnvVarImageRepoSecret ) ) }
amendBuild make changes on build object.
amendBuild make changes on build object .