File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import (
21
21
"fmt"
22
22
"os"
23
23
"path/filepath"
24
+ "runtime"
24
25
"strconv"
25
26
"strings"
26
27
"sync"
@@ -835,8 +836,8 @@ func (r *ImageGenerator) updateImageConfigMap() error {
835
836
igLogger .Info ("Setting FIPS mode" )
836
837
}
837
838
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" {
840
841
cm .Data ["PODVM_IMAGE_URI" ] = "oci::" + os .Getenv ("RELATED_IMAGE_PODVM_OCI" )
841
842
igLogger .Info ("Setting PODVM_IMAGE_URI to default value" , "PODVM_IMAGE_URI" , cm .Data ["PODVM_IMAGE_URI" ])
842
843
}
You can’t perform that action at this time.
0 commit comments