File tree 1 file changed +5
-3
lines changed 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -190,6 +190,7 @@ func (s *S2IBuilder) Build() error {
190
190
CGroupLimits : s .cgLimits ,
191
191
Injections : injections ,
192
192
ScriptDownloadProxyConfig : scriptDownloadProxyConfig ,
193
+ BlockOnBuild : true ,
193
194
}
194
195
195
196
if s .build .Spec .Strategy .SourceStrategy .ForcePull {
@@ -343,11 +344,12 @@ func (d *downloader) Download(config *s2iapi.Config) (*s2iapi.SourceInfo, error)
343
344
// 2. In case of repeated Keys, the last Value takes precedence right here,
344
345
// instead of deferring what to do with repeated environment variables to the
345
346
// Docker runtime.
346
- func buildEnvVars (build * api.Build ) map [ string ] string {
347
+ func buildEnvVars (build * api.Build ) s2iapi. EnvironmentList {
347
348
bi := buildInfo (build )
348
- envVars := make (map [string ]string , len (bi ))
349
+ envVars := s2iapi.EnvironmentList {}
350
+
349
351
for _ , item := range bi {
350
- envVars [ item .Key ] = item .Value
352
+ envVars = append ( envVars , s2iapi. EnvironmentSpec { Name : item .Key , Value : item .Value })
351
353
}
352
354
return envVars
353
355
}
You can’t perform that action at this time.
0 commit comments