diff --git a/pkg/stub/config.go b/pkg/stub/config.go index acfdb19fb..50ad6eaaf 100644 --- a/pkg/stub/config.go +++ b/pkg/stub/config.go @@ -180,6 +180,12 @@ func (h *Handler) buildFileMaps(cfg *v1.Config, forceRebuild bool) error { defer h.mapsMutex.Unlock() if len(h.imagestreamFile) == 0 || len(h.templateFile) == 0 || forceRebuild { for _, arch := range cfg.Spec.Architectures { + if util.IsNonX86Arch(cfg) { + // file list error will occur below until we have samples for s390x/ppc64le + // callers to code appropriately no-op out as needed when no file system content + // exists for a given template/imagestream + continue + } dir := h.GetBaseDir(arch, cfg) files, err := h.Filefinder.List(dir) if err != nil {