11//
22// DISCLAIMER
33//
4- // Copyright 2016-2022 ArangoDB GmbH, Cologne, Germany
4+ // Copyright 2016-2023 ArangoDB GmbH, Cologne, Germany
55//
66// Licensed under the Apache License, Version 2.0 (the "License");
77// you may not use this file except in compliance with the License.
@@ -227,13 +227,8 @@ func (a actionRuntimeContainerImageUpdate) Start(ctx context.Context) (bool, err
227227 return true , nil
228228 }
229229
230- spec := member .Spec .Template .PodSpec
231- status := member .Status .Template .PodSpec
232-
233230 for id := range pod .Spec .Containers {
234- if pod .Spec .Containers [id ].Name != spec .Spec .Containers [id ].Name ||
235- pod .Spec .Containers [id ].Name != status .Spec .Containers [id ].Name ||
236- pod .Spec .Containers [id ].Name != name {
231+ if pod .Spec .Containers [id ].Name != name {
237232 continue
238233 }
239234
@@ -249,10 +244,14 @@ func (a actionRuntimeContainerImageUpdate) Start(ctx context.Context) (bool, err
249244 return false , nil
250245 }
251246
247+ a .log .Info ("Image is UpToDate" )
248+
252249 return true , nil
253250 }
254251
255- return true , nil
252+ a .log .Str ("container" , name ).Str ("pod" , pod .GetName ()).Warn ("Container not found" )
253+
254+ return false , errors .Newf ("Container %s not found in Pod %s" , name , pod .GetName ())
256255}
257256
258257func (a actionRuntimeContainerImageUpdate ) CheckProgress (ctx context.Context ) (bool , bool , error ) {
0 commit comments