kaniko icon indicating copy to clipboard operation
kaniko copied to clipboard

Remote caching does not respect architecture

Open jamil-s opened this issue 1 year ago • 2 comments

Actual behavior With caching enabled, we have seen arm64 builds fetch artifacts for amd64 architecture builds.

Expected behavior Cache is architecture aware.

To Reproduce Steps to reproduce the behavior:

  1. Enable caching using --snapshot-mode=redo --cache=true --customPlatform=linux/amd64 and similarly for --customPlatform=linux/arm64
  2. Notice cache hits for different architecture

Triage Notes for the Maintainers

Description Yes/No
Please check if this a new feature you are proposing
  • - [ ]
Please check if the build works in docker but not in kaniko
  • - [ ]
Please check if this error is seen when you use --cache flag
  • - [ ]
Please check if your dockerfile is a multistage dockerfile
  • - [ ]

jamil-s avatar Jun 13 '23 19:06 jamil-s