Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions pkg/stub/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down