@@ -347,15 +347,14 @@ func createJobEx(context *context, job *jobSpec) ([]*batchv1.Job, *arbv1.AppWrap
347
347
MinAvailable : schedSpecMin ,
348
348
},
349
349
AggrResources : arbv1.AppWrapperResourceList {
350
- Items : []arbv1.AppWrapperResource {
350
+ GenericItems : []arbv1.AppWrapperGenericResource {
351
351
{
352
352
ObjectMeta : metav1.ObjectMeta {
353
353
Name : fmt .Sprintf ("%s-%s" , job .name , "resource1" ),
354
354
Namespace : ns ,
355
355
},
356
- Replicas : 1 ,
357
- Type : arbv1 .ResourceTypePod ,
358
- Template : runtime.RawExtension {
356
+ DesiredAvailable : 1 ,
357
+ GenericTemplate : runtime.RawExtension {
359
358
Raw : rb ,
360
359
},
361
360
},
@@ -977,15 +976,14 @@ func createDeploymentAW(context *context, name string) *arbv1.AppWrapper {
977
976
MinAvailable : schedSpecMin ,
978
977
},
979
978
AggrResources : arbv1.AppWrapperResourceList {
980
- Items : []arbv1.AppWrapperResource {
979
+ GenericItems : []arbv1.AppWrapperGenericResource {
981
980
{
982
981
ObjectMeta : metav1.ObjectMeta {
983
982
Name : fmt .Sprintf ("%s-%s" , name , "item1" ),
984
983
Namespace : context .namespace ,
985
984
},
986
- Replicas : 1 ,
987
- Type : arbv1 .ResourceTypeDeployment ,
988
- Template : runtime.RawExtension {
985
+ DesiredAvailable : 1 ,
986
+ GenericTemplate : runtime.RawExtension {
989
987
Raw : rb ,
990
988
},
991
989
},
@@ -1058,15 +1056,14 @@ func createDeploymentAWwith900CPU(context *context, name string) *arbv1.AppWrapp
1058
1056
MinAvailable : schedSpecMin ,
1059
1057
},
1060
1058
AggrResources : arbv1.AppWrapperResourceList {
1061
- Items : []arbv1.AppWrapperResource {
1059
+ GenericItems : []arbv1.AppWrapperGenericResource {
1062
1060
{
1063
1061
ObjectMeta : metav1.ObjectMeta {
1064
1062
Name : fmt .Sprintf ("%s-%s" , name , "item1" ),
1065
1063
Namespace : context .namespace ,
1066
1064
},
1067
- Replicas : 1 ,
1068
- Type : arbv1 .ResourceTypeDeployment ,
1069
- Template : runtime.RawExtension {
1065
+ DesiredAvailable : 1 ,
1066
+ GenericTemplate : runtime.RawExtension {
1070
1067
Raw : rb ,
1071
1068
},
1072
1069
},
@@ -1139,15 +1136,14 @@ func createDeploymentAWwith550CPU(context *context, name string) *arbv1.AppWrapp
1139
1136
MinAvailable : schedSpecMin ,
1140
1137
},
1141
1138
AggrResources : arbv1.AppWrapperResourceList {
1142
- Items : []arbv1.AppWrapperResource {
1139
+ GenericItems : []arbv1.AppWrapperGenericResource {
1143
1140
{
1144
1141
ObjectMeta : metav1.ObjectMeta {
1145
1142
Name : fmt .Sprintf ("%s-%s" , name , "item1" ),
1146
1143
Namespace : context .namespace ,
1147
1144
},
1148
- Replicas : 1 ,
1149
- Type : arbv1 .ResourceTypeDeployment ,
1150
- Template : runtime.RawExtension {
1145
+ DesiredAvailable : 1 ,
1146
+ GenericTemplate : runtime.RawExtension {
1151
1147
Raw : rb ,
1152
1148
},
1153
1149
},
@@ -1220,15 +1216,14 @@ func createDeploymentAWwith125CPU(context *context, name string) *arbv1.AppWrapp
1220
1216
MinAvailable : schedSpecMin ,
1221
1217
},
1222
1218
AggrResources : arbv1.AppWrapperResourceList {
1223
- Items : []arbv1.AppWrapperResource {
1219
+ GenericItems : []arbv1.AppWrapperGenericResource {
1224
1220
{
1225
1221
ObjectMeta : metav1.ObjectMeta {
1226
1222
Name : fmt .Sprintf ("%s-%s" , name , "item1" ),
1227
1223
Namespace : context .namespace ,
1228
1224
},
1229
- Replicas : 1 ,
1230
- Type : arbv1 .ResourceTypeDeployment ,
1231
- Template : runtime.RawExtension {
1225
+ DesiredAvailable : 1 ,
1226
+ GenericTemplate : runtime.RawExtension {
1232
1227
Raw : rb ,
1233
1228
},
1234
1229
},
@@ -1301,15 +1296,14 @@ func createDeploymentAWwith126CPU(context *context, name string) *arbv1.AppWrapp
1301
1296
MinAvailable : schedSpecMin ,
1302
1297
},
1303
1298
AggrResources : arbv1.AppWrapperResourceList {
1304
- Items : []arbv1.AppWrapperResource {
1299
+ GenericItems : []arbv1.AppWrapperGenericResource {
1305
1300
{
1306
1301
ObjectMeta : metav1.ObjectMeta {
1307
1302
Name : fmt .Sprintf ("%s-%s" , name , "item1" ),
1308
1303
Namespace : context .namespace ,
1309
1304
},
1310
- Replicas : 1 ,
1311
- Type : arbv1 .ResourceTypeDeployment ,
1312
- Template : runtime.RawExtension {
1305
+ DesiredAvailable : 1 ,
1306
+ GenericTemplate : runtime.RawExtension {
1313
1307
Raw : rb ,
1314
1308
},
1315
1309
},
@@ -1382,15 +1376,14 @@ func createDeploymentAWwith350CPU(context *context, name string) *arbv1.AppWrapp
1382
1376
MinAvailable : schedSpecMin ,
1383
1377
},
1384
1378
AggrResources : arbv1.AppWrapperResourceList {
1385
- Items : []arbv1.AppWrapperResource {
1379
+ GenericItems : []arbv1.AppWrapperGenericResource {
1386
1380
{
1387
1381
ObjectMeta : metav1.ObjectMeta {
1388
1382
Name : fmt .Sprintf ("%s-%s" , name , "item1" ),
1389
1383
Namespace : context .namespace ,
1390
1384
},
1391
- Replicas : 1 ,
1392
- Type : arbv1 .ResourceTypeDeployment ,
1393
- Template : runtime.RawExtension {
1385
+ DesiredAvailable : 1 ,
1386
+ GenericTemplate : runtime.RawExtension {
1394
1387
Raw : rb ,
1395
1388
},
1396
1389
},
@@ -1463,15 +1456,14 @@ func createDeploymentAWwith351CPU(context *context, name string) *arbv1.AppWrapp
1463
1456
MinAvailable : schedSpecMin ,
1464
1457
},
1465
1458
AggrResources : arbv1.AppWrapperResourceList {
1466
- Items : []arbv1.AppWrapperResource {
1459
+ GenericItems : []arbv1.AppWrapperGenericResource {
1467
1460
{
1468
1461
ObjectMeta : metav1.ObjectMeta {
1469
1462
Name : fmt .Sprintf ("%s-%s" , name , "item1" ),
1470
1463
Namespace : context .namespace ,
1471
1464
},
1472
- Replicas : 1 ,
1473
- Type : arbv1 .ResourceTypeDeployment ,
1474
- Template : runtime.RawExtension {
1465
+ DesiredAvailable : 1 ,
1466
+ GenericTemplate : runtime.RawExtension {
1475
1467
Raw : rb ,
1476
1468
},
1477
1469
},
@@ -1544,15 +1536,14 @@ func createDeploymentAWwith426CPU(context *context, name string) *arbv1.AppWrapp
1544
1536
MinAvailable : schedSpecMin ,
1545
1537
},
1546
1538
AggrResources : arbv1.AppWrapperResourceList {
1547
- Items : []arbv1.AppWrapperResource {
1539
+ GenericItems : []arbv1.AppWrapperGenericResource {
1548
1540
{
1549
1541
ObjectMeta : metav1.ObjectMeta {
1550
1542
Name : fmt .Sprintf ("%s-%s" , name , "item1" ),
1551
1543
Namespace : context .namespace ,
1552
1544
},
1553
- Replicas : 1 ,
1554
- Type : arbv1 .ResourceTypeDeployment ,
1555
- Template : runtime.RawExtension {
1545
+ DesiredAvailable : 1 ,
1546
+ GenericTemplate : runtime.RawExtension {
1556
1547
Raw : rb ,
1557
1548
},
1558
1549
},
@@ -1625,15 +1616,14 @@ func createDeploymentAWwith425CPU(context *context, name string) *arbv1.AppWrapp
1625
1616
MinAvailable : schedSpecMin ,
1626
1617
},
1627
1618
AggrResources : arbv1.AppWrapperResourceList {
1628
- Items : []arbv1.AppWrapperResource {
1619
+ GenericItems : []arbv1.AppWrapperGenericResource {
1629
1620
{
1630
1621
ObjectMeta : metav1.ObjectMeta {
1631
1622
Name : fmt .Sprintf ("%s-%s" , name , "item1" ),
1632
1623
Namespace : context .namespace ,
1633
1624
},
1634
- Replicas : 1 ,
1635
- Type : arbv1 .ResourceTypeDeployment ,
1636
- Template : runtime.RawExtension {
1625
+ DesiredAvailable : 1 ,
1626
+ GenericTemplate : runtime.RawExtension {
1637
1627
Raw : rb ,
1638
1628
},
1639
1629
},
@@ -2690,11 +2680,10 @@ func createNamespaceAW(context *context, name string) *arbv1.AppWrapper {
2690
2680
MinAvailable : schedSpecMin ,
2691
2681
},
2692
2682
AggrResources : arbv1.AppWrapperResourceList {
2693
- Items : []arbv1.AppWrapperResource {
2683
+ GenericItems : []arbv1.AppWrapperGenericResource {
2694
2684
{
2695
- Replicas : 1 ,
2696
- Type : arbv1 .ResourceTypeNamespace ,
2697
- Template : runtime.RawExtension {
2685
+ DesiredAvailable : 1 ,
2686
+ GenericTemplate : runtime.RawExtension {
2698
2687
Raw : rb ,
2699
2688
},
2700
2689
},
@@ -2801,15 +2790,14 @@ func createStatefulSetAW(context *context, name string) *arbv1.AppWrapper {
2801
2790
MinAvailable : schedSpecMin ,
2802
2791
},
2803
2792
AggrResources : arbv1.AppWrapperResourceList {
2804
- Items : []arbv1.AppWrapperResource {
2793
+ GenericItems : []arbv1.AppWrapperGenericResource {
2805
2794
{
2806
2795
ObjectMeta : metav1.ObjectMeta {
2807
2796
Name : fmt .Sprintf ("%s-%s" , name , "item1" ),
2808
2797
Namespace : context .namespace ,
2809
2798
},
2810
- Replicas : 1 ,
2811
- Type : arbv1 .ResourceTypeStatefulSet ,
2812
- Template : runtime.RawExtension {
2799
+ DesiredAvailable : 1 ,
2800
+ GenericTemplate : runtime.RawExtension {
2813
2801
Raw : rb ,
2814
2802
},
2815
2803
},
@@ -2941,15 +2929,14 @@ func createBadPodTemplateAW(context *context, name string) *arbv1.AppWrapper {
2941
2929
MinAvailable : schedSpecMin ,
2942
2930
},
2943
2931
AggrResources : arbv1.AppWrapperResourceList {
2944
- Items : []arbv1.AppWrapperResource {
2932
+ GenericItems : []arbv1.AppWrapperGenericResource {
2945
2933
{
2946
2934
ObjectMeta : metav1.ObjectMeta {
2947
2935
Name : fmt .Sprintf ("%s-%s" , name , "item" ),
2948
2936
Namespace : context .namespace ,
2949
2937
},
2950
- Replicas : 2 ,
2951
- Type : arbv1 .ResourceTypePod ,
2952
- Template : runtime.RawExtension {
2938
+ DesiredAvailable : 2 ,
2939
+ GenericTemplate : runtime.RawExtension {
2953
2940
Raw : rb ,
2954
2941
},
2955
2942
},
@@ -3008,15 +2995,14 @@ func createPodTemplateAW(context *context, name string) *arbv1.AppWrapper {
3008
2995
MinAvailable : schedSpecMin ,
3009
2996
},
3010
2997
AggrResources : arbv1.AppWrapperResourceList {
3011
- Items : []arbv1.AppWrapperResource {
2998
+ GenericItems : []arbv1.AppWrapperGenericResource {
3012
2999
{
3013
3000
ObjectMeta : metav1.ObjectMeta {
3014
3001
Name : fmt .Sprintf ("%s-%s" , name , "item" ),
3015
3002
Namespace : context .namespace ,
3016
3003
},
3017
- Replicas : 2 ,
3018
- Type : arbv1 .ResourceTypePod ,
3019
- Template : runtime.RawExtension {
3004
+ DesiredAvailable : 2 ,
3005
+ GenericTemplate : runtime.RawExtension {
3020
3006
Raw : rb ,
3021
3007
},
3022
3008
},
@@ -3082,15 +3068,14 @@ func createPodCheckFailedStatusAW(context *context, name string) *arbv1.AppWrapp
3082
3068
MinAvailable : schedSpecMin ,
3083
3069
},
3084
3070
AggrResources : arbv1.AppWrapperResourceList {
3085
- Items : []arbv1.AppWrapperResource {
3071
+ GenericItems : []arbv1.AppWrapperGenericResource {
3086
3072
{
3087
3073
ObjectMeta : metav1.ObjectMeta {
3088
3074
Name : fmt .Sprintf ("%s-%s" , name , "item" ),
3089
3075
Namespace : context .namespace ,
3090
3076
},
3091
- Replicas : 1 ,
3092
- Type : arbv1 .ResourceTypePod ,
3093
- Template : runtime.RawExtension {
3077
+ DesiredAvailable : 1 ,
3078
+ GenericTemplate : runtime.RawExtension {
3094
3079
Raw : rb ,
3095
3080
},
3096
3081
},
0 commit comments