@@ -351,7 +351,7 @@ platform:
351351pullSecret: "{\"auths\":{\"example.com\":{\"auth\":\"authorization value\"}}}"
352352` ,
353353 expectedFound : false ,
354- expectedError : "invalid install-config configuration: [ControlPlane.Architecture: Unsupported value: \" s390x \" : supported values: \" amd64\" , \" arm64\" , \" ppc64le\" , Compute[0].Architecture: Unsupported value: \" s390x\" : supported values: \" amd64\" , \" arm64\" , \" ppc64le\" ]" ,
354+ expectedError : "invalid install-config configuration: [ControlPlane.Architecture: supported values: \" amd64\" , \" arm64\" , \" ppc64le\" , \" s390x \" , Compute[0].Architecture: Unsupported value: \" s390x\" : supported values: \" amd64\" , \" arm64\" , \" ppc64le\" ]" ,
355355 },
356356 {
357357 name : "invalid platform.baremetal for architecture ppc64le" ,
@@ -392,6 +392,45 @@ pullSecret: "{\"auths\":{\"example.com\":{\"auth\":\"authorization value\"}}}"
392392 expectedFound : false ,
393393 expectedError : "invalid install-config configuration: Platform: Invalid value: \" baremetal\" : CPU architecture \" ppc64le\" only supports platform \" none\" ." ,
394394 },
395+ {
396+ name : "invalid platform.baremetal for architecture s390x" ,
397+ data : `
398+ apiVersion: v1
399+ metadata:
400+ name: test-cluster
401+ baseDomain: test-domain
402+ networking:
403+ networkType: OVNKubernetes
404+ machineNetwork:
405+ - cidr: 192.168.122.0/23
406+ compute:
407+ - architecture: s390x
408+ hyperthreading: Enabled
409+ name: worker
410+ platform: {}
411+ replicas: 0
412+ controlPlane:
413+ architecture: s390x
414+ hyperthreading: Enabled
415+ name: master
416+ platform: {}
417+ replicas: 3
418+ platform:
419+ baremetal:
420+ apiVIP: 192.168.122.10
421+ ingressVIP: 192.168.122.11
422+ hosts:
423+ - name: host1
424+ bootMACAddress: 52:54:01:aa:aa:a1
425+ - name: host2
426+ bootMACAddress: 52:54:01:bb:bb:b1
427+ - name: host3
428+ bootMACAddress: 52:54:01:cc:cc:c1
429+ pullSecret: "{\"auths\":{\"example.com\":{\"auth\":\"authorization value\"}}}"
430+ ` ,
431+ expectedFound : false ,
432+ expectedError : "invalid install-config configuration: Platform: CPU architecture \" s390x\" only supports platform \" baremetal\" ." ,
433+ },
395434 {
396435 name : "unsupported platformName for external platform" ,
397436 data : `
0 commit comments