mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-18 08:54:40 +02:00
* Add an integration test to reproduce #2892 * Fix go compilation * Fix docker run cmd * Fixing entrypoint * Test warmer with cache in a volume. * Add missing comma * Fix imports * Fix dir * Add logs * fix * Use test framework to log * Fix warmer failing if image already in cache. * Fix format.
This commit is contained in:
Vendored
+4
-3
@@ -97,10 +97,11 @@ func warmToFile(cacheDir, img string, opts *config.WarmerOptions) error {
|
||||
|
||||
digest, err := cw.Warm(img, opts)
|
||||
if err != nil {
|
||||
if !IsAlreadyCached(err) {
|
||||
logrus.Warnf("Error while trying to warm image: %v %v", img, err)
|
||||
if IsAlreadyCached(err) {
|
||||
logrus.Infof("Image already in cache: %v", img)
|
||||
return nil
|
||||
}
|
||||
|
||||
logrus.Warnf("Error while trying to warm image: %v %v", img, err)
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user