File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
src/Pages/GlobalConfigurations/BuildInfra Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -322,7 +322,7 @@ export const getBuildInfraProfilePayload = (
322
322
return acc
323
323
} , { } )
324
324
325
- // Deleting un-supported locators in case target platform is not default platform
325
+ // Deleting un-supported locators in case locators are not supported by buildX
326
326
Object . entries ( configurations ) . forEach ( ( [ platformName , platformConfigurations ] ) => {
327
327
if ( platformName !== BUILD_INFRA_DEFAULT_PLATFORM_NAME ) {
328
328
configurations [ platformName ] = platformConfigurations . filter (
@@ -331,6 +331,15 @@ export const getBuildInfraProfilePayload = (
331
331
}
332
332
} )
333
333
334
+ // Filtering out platforms if not using K8sDriver
335
+ if ( canConfigureUseK8sDriver && ! profileInput . useK8sDriver ) {
336
+ Object . keys ( configurations ) . forEach ( ( platformName ) => {
337
+ if ( platformName !== BUILD_INFRA_DEFAULT_PLATFORM_NAME ) {
338
+ delete configurations [ platformName ]
339
+ }
340
+ } )
341
+ }
342
+
334
343
const payload : BuildInfraProfileInfoDTO = {
335
344
name : profileInput . name ,
336
345
description : profileInput . description ?. trim ( ) ,
You can’t perform that action at this time.
0 commit comments