Skip to content

Commit f17a1cd

Browse files
committed
image: exclude s390x from using default prebuilt
exclude s390x until a prebuilt image is available for shipping. Signed-off-by: Snir Sheriber <[email protected]>
1 parent a8c3fcd commit f17a1cd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

controllers/image_generator.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import (
2121
"fmt"
2222
"os"
2323
"path/filepath"
24+
"runtime"
2425
"strconv"
2526
"strings"
2627
"sync"
@@ -835,8 +836,8 @@ func (r *ImageGenerator) updateImageConfigMap() error {
835836
igLogger.Info("Setting FIPS mode")
836837
}
837838

838-
// set to default image
839-
if cm.Data["PODVM_IMAGE_URI"] == "" && os.Getenv("RELATED_IMAGE_PODVM_OCI") != "" {
839+
// set to default image which is currently not built for s390x
840+
if cm.Data["PODVM_IMAGE_URI"] == "" && os.Getenv("RELATED_IMAGE_PODVM_OCI") != "" && runtime.GOARCH != "s390x" {
840841
cm.Data["PODVM_IMAGE_URI"] = "oci::" + os.Getenv("RELATED_IMAGE_PODVM_OCI")
841842
igLogger.Info("Setting PODVM_IMAGE_URI to default value", "PODVM_IMAGE_URI", cm.Data["PODVM_IMAGE_URI"])
842843
}

0 commit comments

Comments
 (0)