kcr_camel_apache_org 3.20260616.194955

Kubernetes Custom Resource Bindings
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
// WARNING: generated by kopium - manual changes will be overwritten
// kopium command: kopium --docs --derive=Default --derive=PartialEq --smart-derive-elision --filename crd-catalog/apache/camel-k/camel.apache.org/v1/integrationprofiles.yaml
// kopium version: 0.23.0

#[allow(unused_imports)]
mod prelude {
    pub use kube::CustomResource;
    pub use serde::{Serialize, Deserialize};
    pub use std::collections::BTreeMap;
    pub use k8s_openapi::apimachinery::pkg::util::intstr::IntOrString;
    pub use k8s_openapi::apimachinery::pkg::apis::meta::v1::Condition;
}

use self::prelude::*;

/// IntegrationProfileSpec applies user defined settings to the IntegrationProfile.
#[derive(CustomResource, Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
#[kube(group = "camel.apache.org", version = "v1", kind = "IntegrationProfile", plural = "integrationprofiles")]
#[kube(namespaced)]
#[kube(status = "IntegrationProfileStatus")]
#[kube(schema = "disabled")]
#[kube(derive="Default")]
#[kube(derive="PartialEq")]
pub struct IntegrationProfileSpec {
    /// specify how to build the Integration/IntegrationKits
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub build: Option<IntegrationProfileBuild>,
    /// a list of dependencies needed by the application
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub dependencies: Option<Vec<String>>,
    /// configuration to be executed to all Kamelets controlled by this IntegrationProfile
    /// 
    /// Deprecated: to be removed in future versions.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub kamelet: Option<IntegrationProfileKamelet>,
    /// list of traits to be executed for all the Integration/IntegrationKits built from this IntegrationProfile
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub traits: Option<IntegrationProfileTraits>,
}

/// specify how to build the Integration/IntegrationKits
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileBuild {
    /// a base image that can be used as base layer for all images.
    /// It can be useful if you want to provide some custom base image with further utility software
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "baseImage")]
    pub base_image: Option<String>,
    /// Maven configuration used to build the Camel/Camel-Quarkus applications
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub maven: Option<IntegrationProfileBuildMaven>,
    /// the image registry used to push/pull Integration images
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub registry: Option<IntegrationProfileBuildRegistry>,
    /// the runtime used. Likely Camel Quarkus (we used to have main runtime which has been discontinued since version 1.5)
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "runtimeProvider")]
    pub runtime_provider: Option<String>,
    /// the Camel K Runtime dependency version
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "runtimeVersion")]
    pub runtime_version: Option<String>,
    /// how much time to wait before time out the pipeline process
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub timeout: Option<String>,
}

/// Maven configuration used to build the Camel/Camel-Quarkus applications
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileBuildMaven {
    /// The Secrets name and key, containing the CA certificate(s) used to connect
    /// to remote Maven repositories.
    /// It can contain X.509 certificates, and PKCS#7 formatted certificate chains.
    /// A JKS formatted keystore is automatically created to store the CA certificate(s),
    /// and configured to be used as a trusted certificate(s) by the Maven commands.
    /// Note that the root CA certificates are also imported into the created keystore.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "caSecrets")]
    pub ca_secrets: Option<Vec<IntegrationProfileBuildMavenCaSecrets>>,
    /// The CLI options that are appended to the list of arguments for Maven commands,
    /// e.g., `-V,--no-transfer-progress,-Dstyle.color=never`.
    /// See <https://maven.apache.org/ref/3.9.14/maven-embedder/cli.html.>
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "cliOptions")]
    pub cli_options: Option<Vec<String>>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub extension: Option<Vec<IntegrationProfileBuildMavenExtension>>,
    /// The path of the local Maven repository.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "localRepository")]
    pub local_repository: Option<String>,
    /// A reference to the ConfigMap or Secret key that contains
    /// the Maven profile.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub profiles: Option<Vec<IntegrationProfileBuildMavenProfiles>>,
    /// The Maven properties.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub properties: Option<BTreeMap<String, String>>,
    /// A reference to the ConfigMap or Secret key that contains
    /// the Maven settings.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub settings: Option<IntegrationProfileBuildMavenSettings>,
    /// A reference to the ConfigMap or Secret key that contains
    /// the security of the Maven settings.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "settingsSecurity")]
    pub settings_security: Option<IntegrationProfileBuildMavenSettingsSecurity>,
}

/// SecretKeySelector selects a key of a Secret.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileBuildMavenCaSecrets {
    /// The key of the secret to select from.  Must be a valid secret key.
    pub key: String,
    /// Name of the referent.
    /// This field is effectively required, but due to backwards compatibility is
    /// allowed to be empty. Instances of this type with an empty value here are
    /// almost certainly wrong.
    /// More info: <https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names>
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// Specify whether the Secret or its key must be defined
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub optional: Option<bool>,
}

/// MavenArtifact defines a GAV (Group:Artifact:Type:Version:Classifier) Maven artifact.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileBuildMavenExtension {
    /// Maven Artifact
    #[serde(rename = "artifactId")]
    pub artifact_id: String,
    /// Maven Classifier
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub classifier: Option<String>,
    /// Maven Group
    #[serde(rename = "groupId")]
    pub group_id: String,
    /// Maven Type
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "type")]
    pub r#type: Option<String>,
    /// Maven Version
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub version: Option<String>,
}

/// ValueSource --.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileBuildMavenProfiles {
    /// Selects a key of a ConfigMap.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "configMapKeyRef")]
    pub config_map_key_ref: Option<IntegrationProfileBuildMavenProfilesConfigMapKeyRef>,
    /// Selects a key of a secret.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "secretKeyRef")]
    pub secret_key_ref: Option<IntegrationProfileBuildMavenProfilesSecretKeyRef>,
}

/// Selects a key of a ConfigMap.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileBuildMavenProfilesConfigMapKeyRef {
    /// The key to select.
    pub key: String,
    /// Name of the referent.
    /// This field is effectively required, but due to backwards compatibility is
    /// allowed to be empty. Instances of this type with an empty value here are
    /// almost certainly wrong.
    /// More info: <https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names>
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// Specify whether the ConfigMap or its key must be defined
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub optional: Option<bool>,
}

/// Selects a key of a secret.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileBuildMavenProfilesSecretKeyRef {
    /// The key of the secret to select from.  Must be a valid secret key.
    pub key: String,
    /// Name of the referent.
    /// This field is effectively required, but due to backwards compatibility is
    /// allowed to be empty. Instances of this type with an empty value here are
    /// almost certainly wrong.
    /// More info: <https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names>
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// Specify whether the Secret or its key must be defined
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub optional: Option<bool>,
}

/// A reference to the ConfigMap or Secret key that contains
/// the Maven settings.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileBuildMavenSettings {
    /// Selects a key of a ConfigMap.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "configMapKeyRef")]
    pub config_map_key_ref: Option<IntegrationProfileBuildMavenSettingsConfigMapKeyRef>,
    /// Selects a key of a secret.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "secretKeyRef")]
    pub secret_key_ref: Option<IntegrationProfileBuildMavenSettingsSecretKeyRef>,
}

/// Selects a key of a ConfigMap.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileBuildMavenSettingsConfigMapKeyRef {
    /// The key to select.
    pub key: String,
    /// Name of the referent.
    /// This field is effectively required, but due to backwards compatibility is
    /// allowed to be empty. Instances of this type with an empty value here are
    /// almost certainly wrong.
    /// More info: <https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names>
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// Specify whether the ConfigMap or its key must be defined
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub optional: Option<bool>,
}

/// Selects a key of a secret.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileBuildMavenSettingsSecretKeyRef {
    /// The key of the secret to select from.  Must be a valid secret key.
    pub key: String,
    /// Name of the referent.
    /// This field is effectively required, but due to backwards compatibility is
    /// allowed to be empty. Instances of this type with an empty value here are
    /// almost certainly wrong.
    /// More info: <https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names>
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// Specify whether the Secret or its key must be defined
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub optional: Option<bool>,
}

/// A reference to the ConfigMap or Secret key that contains
/// the security of the Maven settings.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileBuildMavenSettingsSecurity {
    /// Selects a key of a ConfigMap.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "configMapKeyRef")]
    pub config_map_key_ref: Option<IntegrationProfileBuildMavenSettingsSecurityConfigMapKeyRef>,
    /// Selects a key of a secret.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "secretKeyRef")]
    pub secret_key_ref: Option<IntegrationProfileBuildMavenSettingsSecuritySecretKeyRef>,
}

/// Selects a key of a ConfigMap.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileBuildMavenSettingsSecurityConfigMapKeyRef {
    /// The key to select.
    pub key: String,
    /// Name of the referent.
    /// This field is effectively required, but due to backwards compatibility is
    /// allowed to be empty. Instances of this type with an empty value here are
    /// almost certainly wrong.
    /// More info: <https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names>
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// Specify whether the ConfigMap or its key must be defined
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub optional: Option<bool>,
}

/// Selects a key of a secret.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileBuildMavenSettingsSecuritySecretKeyRef {
    /// The key of the secret to select from.  Must be a valid secret key.
    pub key: String,
    /// Name of the referent.
    /// This field is effectively required, but due to backwards compatibility is
    /// allowed to be empty. Instances of this type with an empty value here are
    /// almost certainly wrong.
    /// More info: <https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names>
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// Specify whether the Secret or its key must be defined
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub optional: Option<bool>,
}

/// the image registry used to push/pull Integration images
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileBuildRegistry {
    /// the URI to access
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub address: Option<String>,
    /// the configmap which stores the Certificate Authority
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub ca: Option<String>,
    /// if the container registry is insecure (ie, http only)
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub insecure: Option<bool>,
    /// the registry organization
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub organization: Option<String>,
    /// the secret where credentials are stored
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub secret: Option<String>,
}

/// configuration to be executed to all Kamelets controlled by this IntegrationProfile
/// 
/// Deprecated: to be removed in future versions.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileKamelet {
    /// remote repository used to retrieve Kamelet catalog
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub repositories: Option<Vec<IntegrationProfileKameletRepositories>>,
}

/// KameletRepositorySpec defines the location of the Kamelet catalog to use.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileKameletRepositories {
    /// the remote repository in the format github:ORG/REPO/PATH_TO_KAMELETS_FOLDER
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub uri: Option<String>,
}

/// list of traits to be executed for all the Integration/IntegrationKits built from this IntegrationProfile
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraits {
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "3scale")]
    pub r#_3scale: Option<IntegrationProfileTraits3scale>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub addons: Option<BTreeMap<String, BTreeMap<String, serde_json::Value>>>,
    /// The configuration of Affinity trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub affinity: Option<IntegrationProfileTraitsAffinity>,
    /// The configuration of Builder trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub builder: Option<IntegrationProfileTraitsBuilder>,
    /// The configuration of Camel trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub camel: Option<IntegrationProfileTraitsCamel>,
    /// The configuration of Container trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub container: Option<IntegrationProfileTraitsContainer>,
    /// The configuration of Cron trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub cron: Option<IntegrationProfileTraitsCron>,
    /// The configuration of Dependencies trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub dependencies: Option<IntegrationProfileTraitsDependencies>,
    /// The configuration of Deployer trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub deployer: Option<IntegrationProfileTraitsDeployer>,
    /// The configuration of Deployment trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub deployment: Option<IntegrationProfileTraitsDeployment>,
    /// The configuration of Environment trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub environment: Option<IntegrationProfileTraitsEnvironment>,
    /// The configuration of Error Handler trait.
    /// 
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "error-handler")]
    pub error_handler: Option<IntegrationProfileTraitsErrorHandler>,
    /// The configuration of Istio trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub gateway: Option<IntegrationProfileTraitsGateway>,
    /// The configuration of GC trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub gc: Option<IntegrationProfileTraitsGc>,
    /// The configuration of GitOps trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub gitops: Option<IntegrationProfileTraitsGitops>,
    /// The configuration of Health trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub health: Option<IntegrationProfileTraitsHealth>,
    /// The configuration of Ingress trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub ingress: Option<IntegrationProfileTraitsIngress>,
    /// The configuration of Init Containers trait
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "init-containers")]
    pub init_containers: Option<IntegrationProfileTraitsInitContainers>,
    /// The configuration of Istio trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub istio: Option<IntegrationProfileTraitsIstio>,
    /// The configuration of Jolokia trait.
    /// 
    /// Deprecated: use jvm.agent instead.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub jolokia: Option<IntegrationProfileTraitsJolokia>,
    /// The configuration of JVM trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub jvm: Option<IntegrationProfileTraitsJvm>,
    /// The configuration of Kamelets trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub kamelets: Option<IntegrationProfileTraitsKamelets>,
    /// The configuration of Keda trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub keda: Option<IntegrationProfileTraitsKeda>,
    /// The configuration of Knative trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub knative: Option<IntegrationProfileTraitsKnative>,
    /// The configuration of Knative Service trait
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "knative-service")]
    pub knative_service: Option<IntegrationProfileTraitsKnativeService>,
    /// The configuration of Logging trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub logging: Option<IntegrationProfileTraitsLogging>,
    /// The configuration of Master trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub master: Option<IntegrationProfileTraitsMaster>,
    /// The configuration of Mount trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub mount: Option<IntegrationProfileTraitsMount>,
    /// The configuration of OpenAPI trait.
    /// 
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub openapi: Option<IntegrationProfileTraitsOpenapi>,
    /// The configuration of Owner trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub owner: Option<IntegrationProfileTraitsOwner>,
    /// The configuration of PDB trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub pdb: Option<IntegrationProfileTraitsPdb>,
    /// The configuration of Platform trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub platform: Option<IntegrationProfileTraitsPlatform>,
    /// The configuration of Pod trait.
    /// 
    /// Deprecated: use init-containers instead.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub pod: Option<IntegrationProfileTraitsPod>,
    /// The configuration of Prometheus trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub prometheus: Option<IntegrationProfileTraitsPrometheus>,
    /// The configuration of Pull Secret trait
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "pull-secret")]
    pub pull_secret: Option<IntegrationProfileTraitsPullSecret>,
    /// The configuration of Quarkus trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub quarkus: Option<IntegrationProfileTraitsQuarkus>,
    /// The configuration of Registry trait (support removed since version 2.5.0).
    /// 
    /// Deprecated: use jvm trait or read documentation.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub registry: Option<IntegrationProfileTraitsRegistry>,
    /// The configuration of Route trait.
    /// 
    /// Deprecated: use ingress instead.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub route: Option<IntegrationProfileTraitsRoute>,
    /// The configuration of Security Context trait
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "security-context")]
    pub security_context: Option<IntegrationProfileTraitsSecurityContext>,
    /// The configuration of Service trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub service: Option<IntegrationProfileTraitsService>,
    /// The configuration of Service Binding trait.
    /// 
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "service-binding")]
    pub service_binding: Option<IntegrationProfileTraitsServiceBinding>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub strimzi: Option<IntegrationProfileTraitsStrimzi>,
    /// The configuration of Telemetry trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub telemetry: Option<IntegrationProfileTraitsTelemetry>,
    /// The configuration of Toleration trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub toleration: Option<IntegrationProfileTraitsToleration>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tracing: Option<IntegrationProfileTraitsTracing>,
}

/// Deprecated: no longer in use.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraits3scale {
    /// TraitConfiguration parameters configuration
    pub configuration: BTreeMap<String, serde_json::Value>,
}

/// The configuration of Affinity trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsAffinity {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// Defines a set of nodes the integration pod(s) are eligible to be scheduled on, based on labels on the node.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "nodeAffinityLabels")]
    pub node_affinity_labels: Option<Vec<String>>,
    /// Always co-locates multiple replicas of the integration in the same node (default `false`).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "podAffinity")]
    pub pod_affinity: Option<bool>,
    /// Defines a set of pods (namely those matching the label selector, relative to the given namespace) that the
    /// integration pod(s) should be co-located with.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "podAffinityLabels")]
    pub pod_affinity_labels: Option<Vec<String>>,
    /// Never co-locates multiple replicas of the integration in the same node (default `false`).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "podAntiAffinity")]
    pub pod_anti_affinity: Option<bool>,
    /// Defines a set of pods (namely those matching the label selector, relative to the given namespace) that the
    /// integration pod(s) should not be co-located with.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "podAntiAffinityLabels")]
    pub pod_anti_affinity_labels: Option<Vec<String>>,
}

/// The configuration of Builder trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsBuilder {
    /// When using `pod` strategy, annotation to use for the builder pod.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub annotations: Option<BTreeMap<String, String>>,
    /// Specify a base image. In order to have the application working properly it must be a container image which has a Java JDK
    /// installed and ready to use on path (ie `/usr/bin/java`).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "baseImage")]
    pub base_image: Option<String>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// Use the incremental image build option, to reuse existing containers (default `true`)
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "incrementalImageBuild")]
    pub incremental_image_build: Option<bool>,
    /// When using `pod` strategy, the maximum amount of CPU required by the pod builder.
    /// 
    /// Deprecated: use TasksRequestCPU instead with task name `builder`.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "limitCPU")]
    pub limit_cpu: Option<String>,
    /// When using `pod` strategy, the maximum amount of memory required by the pod builder.
    /// 
    /// Deprecated: use TasksRequestCPU instead with task name `builder`.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "limitMemory")]
    pub limit_memory: Option<String>,
    /// A list of references pointing to configmaps/secrets that contains a maven profile.
    /// This configmap/secret is a resource of the IntegrationKit created, therefore it needs to be present in the namespace where the operator is going to create the IntegrationKit.
    /// The content of the maven profile is expected to be a text containing a valid maven profile starting with `<profile>` and ending with `</profile>` that will be integrated as an inline profile in the POM.
    /// Syntax: [configmap|secret]:name[/key], where name represents the resource name, key optionally represents the resource key to be filtered (default key value = profile.xml).
    /// 
    /// Deprecated: will be removed in future versions.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "mavenProfiles")]
    pub maven_profiles: Option<Vec<String>>,
    /// Defines a set of nodes the builder pod is eligible to be scheduled on, based on labels on the node.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "nodeSelector")]
    pub node_selector: Option<BTreeMap<String, String>>,
    /// The build order strategy to use, either `dependencies`, `fifo` or `sequential` (default is the platform default)
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "orderStrategy")]
    pub order_strategy: Option<IntegrationProfileTraitsBuilderOrderStrategy>,
    /// The list of manifest platforms to use to build a container image (default `linux/amd64`).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub platforms: Option<Vec<String>>,
    /// A list of properties to be provided to the build task
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub properties: Option<Vec<String>>,
    /// When using `pod` strategy, the minimum amount of CPU required by the pod builder.
    /// 
    /// Deprecated: use TasksRequestCPU instead with task name `builder`.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "requestCPU")]
    pub request_cpu: Option<String>,
    /// When using `pod` strategy, the minimum amount of memory required by the pod builder.
    /// 
    /// Deprecated: use TasksRequestCPU instead with task name `builder`.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "requestMemory")]
    pub request_memory: Option<String>,
    /// The strategy to use, either `pod` or `routine` (default `routine`)
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub strategy: Option<IntegrationProfileTraitsBuilderStrategy>,
    /// A list of tasks to be executed (available only when using `pod` strategy) with format `<name>;<container-image>;<container-command>`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tasks: Option<Vec<String>>,
    /// A list of tasks sorted by the order of execution in a csv format, ie, `<taskName1>,<taskName2>,...`.
    /// Mind that you must include also the operator tasks (`builder`, `quarkus-native`, `package`, `jib`, `s2i`)
    /// if you need to execute them. Useful only with `pod` strategy.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "tasksFilter")]
    pub tasks_filter: Option<String>,
    /// A list of limit cpu configuration for the specific task with format `<task-name>:<limit-cpu-conf>`.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "tasksLimitCPU")]
    pub tasks_limit_cpu: Option<Vec<String>>,
    /// A list of limit memory configuration for the specific task with format `<task-name>:<limit-memory-conf>`.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "tasksLimitMemory")]
    pub tasks_limit_memory: Option<Vec<String>>,
    /// A list of request cpu configuration for the specific task with format `<task-name>:<request-cpu-conf>`.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "tasksRequestCPU")]
    pub tasks_request_cpu: Option<Vec<String>>,
    /// A list of request memory configuration for the specific task with format `<task-name>:<request-memory-conf>`.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "tasksRequestMemory")]
    pub tasks_request_memory: Option<Vec<String>>,
    /// Enable verbose logging on build components that support it (e.g. Kaniko build pod).
    /// 
    /// Deprecated: no longer in use
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub verbose: Option<bool>,
}

/// The configuration of Builder trait
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub enum IntegrationProfileTraitsBuilderOrderStrategy {
    #[serde(rename = "dependencies")]
    Dependencies,
    #[serde(rename = "fifo")]
    Fifo,
    #[serde(rename = "sequential")]
    Sequential,
}

/// The configuration of Builder trait
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub enum IntegrationProfileTraitsBuilderStrategy {
    #[serde(rename = "pod")]
    Pod,
    #[serde(rename = "routine")]
    Routine,
}

/// The configuration of Camel trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsCamel {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// A list of properties to be provided to the Integration runtime
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub properties: Option<Vec<String>>,
    /// The runtime provider to use for the integration. (Default, plain Quarkus).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "runtimeProvider")]
    pub runtime_provider: Option<IntegrationProfileTraitsCamelRuntimeProvider>,
    /// The runtime version to use for the integration. It overrides the default version set in the Integration Platform.
    /// You can use a fixed version (for example "3.2.3") or a semantic version (for example "3.x") which will try to resolve
    /// to the best matching Catalog existing on the cluster (Default, the one provided by the operator version).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "runtimeVersion")]
    pub runtime_version: Option<String>,
}

/// The configuration of Camel trait
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub enum IntegrationProfileTraitsCamelRuntimeProvider {
    #[serde(rename = "quarkus")]
    Quarkus,
    #[serde(rename = "plain-quarkus")]
    PlainQuarkus,
}

/// The configuration of Container trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsContainer {
    /// Security Context AllowPrivilegeEscalation configuration (default false).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "allowPrivilegeEscalation")]
    pub allow_privilege_escalation: Option<bool>,
    /// To automatically enable the trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub auto: Option<bool>,
    /// Security Context Capabilities Add configuration (default none).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "capabilitiesAdd")]
    pub capabilities_add: Option<Vec<String>>,
    /// Security Context Capabilities Drop configuration (default ALL).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "capabilitiesDrop")]
    pub capabilities_drop: Option<Vec<String>>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// Can be used to enable/disable http exposure via kubernetes Service.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub expose: Option<bool>,
    /// The main container image to use for the Integration. When using this parameter the operator will create a synthetic IntegrationKit which
    /// won't be able to execute traits requiring CamelCatalog. If the container image you're using is coming from an IntegrationKit, use instead
    /// Integration `.spec.integrationKit` parameter. If you're moving the Integration across environments, you will also need to create an "external" IntegrationKit.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub image: Option<String>,
    /// The pull policy: Always|Never|IfNotPresent
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "imagePullPolicy")]
    pub image_pull_policy: Option<IntegrationProfileTraitsContainerImagePullPolicy>,
    /// The maximum amount of CPU to be provided (default 500 millicores).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "limitCPU")]
    pub limit_cpu: Option<String>,
    /// The maximum amount of memory to be provided (default 512 Mi).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "limitMemory")]
    pub limit_memory: Option<String>,
    /// The main container name. It's named `integration` by default.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// To configure a different http port exposed by the container (default `8080`).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub port: Option<i32>,
    /// To configure a different http port name for the port exposed by the container.
    /// It defaults to `http` only when the `expose` parameter is true.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "portName")]
    pub port_name: Option<String>,
    /// List of container ports available in the container (syntax: <port-name>;<port-number>[;port-protocol]).
    /// When omitted, `port-protocol` (admitted values `TCP`, `UDP` or `SCTP`) is `TCP`.
    /// Don't use this for the primary http managed port (for which case you need to use `portName` and `port`).
    /// Don't use in Knative based environments.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub ports: Option<Vec<String>>,
    /// The minimum amount of CPU required (default 125 millicores).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "requestCPU")]
    pub request_cpu: Option<String>,
    /// The minimum amount of memory required (default 128 Mi).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "requestMemory")]
    pub request_memory: Option<String>,
    /// Security Context RunAsNonRoot configuration (default false).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "runAsNonRoot")]
    pub run_as_non_root: Option<bool>,
    /// Security Context RunAsUser configuration (default none): this value is automatically retrieved in Openshift clusters when not explicitly set.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "runAsUser")]
    pub run_as_user: Option<i64>,
    /// Security Context SeccompProfileType configuration (default RuntimeDefault).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "seccompProfileType")]
    pub seccomp_profile_type: Option<IntegrationProfileTraitsContainerSeccompProfileType>,
    /// To configure under which service port the http container port is to be exposed (default `80`).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "servicePort")]
    pub service_port: Option<i32>,
    /// To configure under which service port name the http container port is to be exposed (default `http`).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "servicePortName")]
    pub service_port_name: Option<String>,
}

/// The configuration of Container trait
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub enum IntegrationProfileTraitsContainerImagePullPolicy {
    Always,
    Never,
    IfNotPresent,
}

/// The configuration of Container trait
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub enum IntegrationProfileTraitsContainerSeccompProfileType {
    Unconfined,
    RuntimeDefault,
}

/// The configuration of Cron trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsCron {
    /// Specifies the duration in seconds, relative to the start time, that the job
    /// may be continuously active before it is considered to be failed.
    /// It defaults to 60s.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "activeDeadlineSeconds")]
    pub active_deadline_seconds: Option<i64>,
    /// Automatically deploy the integration as CronJob when all routes are
    /// either starting from a periodic consumer (only `cron`, `timer` and `quartz` are supported) or a passive consumer (e.g. `direct` is a passive consumer).
    /// 
    /// It's required that all periodic consumers have the same period, and it can be expressed as cron schedule (e.g. `1m` can be expressed as `0/1 * * * *`,
    /// while `35m` or `50s` cannot).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub auto: Option<bool>,
    /// Specifies the number of retries before marking the job failed.
    /// It defaults to 2.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "backoffLimit")]
    pub backoff_limit: Option<i32>,
    /// A comma separated list of the Camel components that need to be customized in order for them to work when the schedule is triggered externally by Kubernetes.
    /// Supported components are currently: `cron`, `timer` and `quartz`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub components: Option<String>,
    /// Specifies how to treat concurrent executions of a Job.
    /// Valid values are:
    /// - "Allow": allows CronJobs to run concurrently;
    /// - "Forbid" (default): forbids concurrent runs, skipping next run if previous run hasn't finished yet;
    /// - "Replace": cancels currently running job and replaces it with a new one
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "concurrencyPolicy")]
    pub concurrency_policy: Option<IntegrationProfileTraitsCronConcurrencyPolicy>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// Use the default Camel implementation of the `cron` endpoint (`quartz`) instead of trying to materialize the integration
    /// as Kubernetes CronJob.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub fallback: Option<bool>,
    /// The CronJob schedule for the whole integration. If multiple routes are declared, they must have the same schedule for this
    /// mechanism to work correctly.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub schedule: Option<String>,
    /// Optional deadline in seconds for starting the job if it misses scheduled
    /// time for any reason.  Missed jobs executions will be counted as failed ones.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "startingDeadlineSeconds")]
    pub starting_deadline_seconds: Option<i64>,
    /// The timezone that the CronJob will run on
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "timeZone")]
    pub time_zone: Option<String>,
}

/// The configuration of Cron trait
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub enum IntegrationProfileTraitsCronConcurrencyPolicy {
    Allow,
    Forbid,
    Replace,
}

/// The configuration of Dependencies trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsDependencies {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
}

/// The configuration of Deployer trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsDeployer {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// Allows to explicitly select the desired deployment kind between `deployment`, `cron-job` or `knative-service`
    /// when creating the resources for running the integration.
    /// 
    /// Deprecated: this feature will be removed in future releases.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub kind: Option<IntegrationProfileTraitsDeployerKind>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "useSSA")]
    pub use_ssa: Option<bool>,
}

/// The configuration of Deployer trait
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub enum IntegrationProfileTraitsDeployerKind {
    #[serde(rename = "deployment")]
    Deployment,
    #[serde(rename = "cron-job")]
    CronJob,
    #[serde(rename = "knative-service")]
    KnativeService,
}

/// The configuration of Deployment trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsDeployment {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// The maximum time in seconds for the deployment to make progress before it
    /// is considered to be failed. It defaults to `60s`.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "progressDeadlineSeconds")]
    pub progress_deadline_seconds: Option<i32>,
    /// The maximum number of pods that can be scheduled above the desired number of
    /// pods.
    /// Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
    /// This can not be 0 if MaxUnavailable is 0.
    /// Absolute number is calculated from percentage by rounding up.
    /// Defaults to `25%`.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "rollingUpdateMaxSurge")]
    pub rolling_update_max_surge: Option<IntOrString>,
    /// The maximum number of pods that can be unavailable during the update.
    /// Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
    /// Absolute number is calculated from percentage by rounding down.
    /// This can not be 0 if MaxSurge is 0.
    /// Defaults to `25%`.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "rollingUpdateMaxUnavailable")]
    pub rolling_update_max_unavailable: Option<IntOrString>,
    /// The deployment strategy to use to replace existing pods with new ones.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub strategy: Option<IntegrationProfileTraitsDeploymentStrategy>,
}

/// The configuration of Deployment trait
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub enum IntegrationProfileTraitsDeploymentStrategy {
    Recreate,
    RollingUpdate,
}

/// The configuration of Environment trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsEnvironment {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Enables injection of `NAMESPACE` and `POD_NAME` environment variables (default `true`)
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "containerMeta")]
    pub container_meta: Option<bool>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// Propagates the `HTTP_PROXY`, `HTTPS_PROXY` and `NO_PROXY` environment variables (default `true`)
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "httpProxy")]
    pub http_proxy: Option<bool>,
    /// A list of environment variables to be added to the integration container.
    /// The syntax is either VAR=VALUE or VAR=[configmap|secret]:name/key, where name represents the resource name,
    /// and key represents the resource key to be mapped as and environment variable.
    /// These take precedence over any previously defined environment variables.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub vars: Option<Vec<String>>,
}

/// The configuration of Error Handler trait.
/// 
/// Deprecated: no longer in use.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsErrorHandler {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// The error handler ref name provided or found in application properties
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "ref")]
    pub r#ref: Option<String>,
}

/// The configuration of Istio trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsGateway {
    /// The class name to use for the gateway configuration.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "className")]
    pub class_name: Option<String>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// The listeners in the format "port;protocol" (default, "8080;HTTP").
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub listeners: Option<Vec<String>>,
}

/// The configuration of GC trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsGc {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Discovery client cache to be used, either `disabled`, `disk` or `memory` (default `memory`).
    /// 
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "discoveryCache")]
    pub discovery_cache: Option<IntegrationProfileTraitsGcDiscoveryCache>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
}

/// The configuration of GC trait
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub enum IntegrationProfileTraitsGcDiscoveryCache {
    #[serde(rename = "disabled")]
    Disabled,
    #[serde(rename = "disk")]
    Disk,
    #[serde(rename = "memory")]
    Memory,
}

/// The configuration of GitOps trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsGitops {
    /// the git branch to check out.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub branch: Option<String>,
    /// the git branch to push to. If omitted, the operator will push to a new branch named as `cicd/release-candidate-<datetime>`.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "branchPush")]
    pub branch_push: Option<String>,
    /// the git commit (full SHA) to check out.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub commit: Option<String>,
    /// The email used to commit the GitOps changes (default `camel-k-operator@apache.org`).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "committerEmail")]
    pub committer_email: Option<String>,
    /// The name used to commit the GitOps changes (default `Camel K Operator`).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "committerName")]
    pub committer_name: Option<String>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// The root path where to store Kustomize overlays (default `integrations`).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "integrationDirectory")]
    pub integration_directory: Option<String>,
    /// a list of overlays to provide (default {"dev","stag","prod"}).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub overlays: Option<Vec<String>>,
    /// a flag (default, false) to overwrite any existing overlay.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "overwriteOverlay")]
    pub overwrite_overlay: Option<bool>,
    /// the Kubernetes secret where the Git token is stored. The operator will pick up the first secret key only, whichever the name it is.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub secret: Option<String>,
    /// the git tag to check out.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tag: Option<String>,
    /// the URL of the repository where the project is stored.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}

/// The configuration of Health trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsHealth {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// Minimum consecutive failures for the liveness probe to be considered failed after having succeeded.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "livenessFailureThreshold")]
    pub liveness_failure_threshold: Option<i32>,
    /// Number of seconds after the container has started before the liveness probe is initiated.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "livenessInitialDelay")]
    pub liveness_initial_delay: Option<i32>,
    /// How often to perform the liveness probe.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "livenessPeriod")]
    pub liveness_period: Option<i32>,
    /// The liveness port to use (default 8080).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "livenessPort")]
    pub liveness_port: Option<i32>,
    /// The liveness probe path to use (default provided by the Catalog runtime used).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "livenessProbe")]
    pub liveness_probe: Option<String>,
    /// Configures the liveness probe for the integration container (default `false`).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "livenessProbeEnabled")]
    pub liveness_probe_enabled: Option<bool>,
    /// Scheme to use when connecting to the liveness probe (default `HTTP`).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "livenessScheme")]
    pub liveness_scheme: Option<String>,
    /// Minimum consecutive successes for the liveness probe to be considered successful after having failed.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "livenessSuccessThreshold")]
    pub liveness_success_threshold: Option<i32>,
    /// Number of seconds after which the liveness probe times out.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "livenessTimeout")]
    pub liveness_timeout: Option<i32>,
    /// Minimum consecutive failures for the readiness probe to be considered failed after having succeeded.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "readinessFailureThreshold")]
    pub readiness_failure_threshold: Option<i32>,
    /// Number of seconds after the container has started before the readiness probe is initiated.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "readinessInitialDelay")]
    pub readiness_initial_delay: Option<i32>,
    /// How often to perform the readiness probe.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "readinessPeriod")]
    pub readiness_period: Option<i32>,
    /// The readiness port to use (default 8080).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "readinessPort")]
    pub readiness_port: Option<i32>,
    /// The readiness probe path to use (default provided by the Catalog runtime used).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "readinessProbe")]
    pub readiness_probe: Option<String>,
    /// Configures the readiness probe for the integration container (default `true`).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "readinessProbeEnabled")]
    pub readiness_probe_enabled: Option<bool>,
    /// Scheme to use when connecting to the readiness probe (default `HTTP`).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "readinessScheme")]
    pub readiness_scheme: Option<String>,
    /// Minimum consecutive successes for the readiness probe to be considered successful after having failed.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "readinessSuccessThreshold")]
    pub readiness_success_threshold: Option<i32>,
    /// Number of seconds after which the readiness probe times out.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "readinessTimeout")]
    pub readiness_timeout: Option<i32>,
    /// Minimum consecutive failures for the startup probe to be considered failed after having succeeded.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "startupFailureThreshold")]
    pub startup_failure_threshold: Option<i32>,
    /// Number of seconds after the container has started before the startup probe is initiated.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "startupInitialDelay")]
    pub startup_initial_delay: Option<i32>,
    /// How often to perform the startup probe.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "startupPeriod")]
    pub startup_period: Option<i32>,
    /// The startup port to use (default 8080).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "startupPort")]
    pub startup_port: Option<i32>,
    /// The startup probe path to use (default provided by the Catalog runtime used).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "startupProbe")]
    pub startup_probe: Option<String>,
    /// Configures the startup probe for the integration container (default `false`).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "startupProbeEnabled")]
    pub startup_probe_enabled: Option<bool>,
    /// Scheme to use when connecting to the startup probe (default `HTTP`).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "startupScheme")]
    pub startup_scheme: Option<String>,
    /// Minimum consecutive successes for the startup probe to be considered successful after having failed.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "startupSuccessThreshold")]
    pub startup_success_threshold: Option<i32>,
    /// Number of seconds after which the startup probe times out.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "startupTimeout")]
    pub startup_timeout: Option<i32>,
}

/// The configuration of Ingress trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsIngress {
    /// The annotations added to the ingress.
    /// This can be used to set controller specific annotations, e.g., when using the NGINX Ingress controller:
    /// See <https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/nginx-configuration/annotations.md>
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub annotations: Option<BTreeMap<String, String>>,
    /// To automatically add an ingress whenever the integration uses an HTTP endpoint consumer.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub auto: Option<bool>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// To configure the host exposed by the ingress.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub host: Option<String>,
    /// The Ingress class name as defined by the Ingress spec
    /// See <https://kubernetes.io/docs/concepts/services-networking/ingress/>
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "ingressClassName")]
    pub ingress_class_name: Option<String>,
    /// To configure the path exposed by the ingress (default `/`).
    /// 
    /// Deprecated: In favor of `paths` - left for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
    /// To configure the path type exposed by the ingress.
    /// One of `Exact`, `Prefix`, `ImplementationSpecific` (default to `Prefix`).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "pathType")]
    pub path_type: Option<IntegrationProfileTraitsIngressPathType>,
    /// To configure the paths exposed by the ingress (default `['/']`).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub paths: Option<Vec<String>>,
    /// To configure tls hosts
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "tlsHosts")]
    pub tls_hosts: Option<Vec<String>>,
    /// To configure tls secret name
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "tlsSecretName")]
    pub tls_secret_name: Option<String>,
}

/// The configuration of Ingress trait
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub enum IntegrationProfileTraitsIngressPathType {
    Exact,
    Prefix,
    ImplementationSpecific,
}

/// The configuration of Init Containers trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsInitContainers {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// A list of init tasks to be executed with format `<name>;<container-image>;<container-command>`.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "initTasks")]
    pub init_tasks: Option<Vec<String>>,
    /// A list of sidecar tasks to be executed with format `<name>;<container-image>;<container-command>`.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "sideCarTasks")]
    pub side_car_tasks: Option<Vec<String>>,
}

/// The configuration of Istio trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsIstio {
    /// Configures a (comma-separated) list of CIDR subnets that should not be intercepted by the Istio proxy (`10.0.0.0/8,172.16.0.0/12,192.168.0.0/16` by default).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub allow: Option<String>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// Forces the value for labels `sidecar.istio.io/inject`. By default the label is set to `true` on deployment and not set on Knative Service.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub inject: Option<bool>,
}

/// The configuration of Jolokia trait.
/// 
/// Deprecated: use jvm.agent instead.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsJolokia {
    /// The PEM encoded CA certification file path, used to verify client certificates,
    /// applicable when `protocol` is `https` and `use-ssl-client-authentication` is `true`
    /// (default `/var/run/secrets/kubernetes.io/serviceaccount/service-ca.crt` for OpenShift).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "CACert")]
    pub ca_cert: Option<String>,
    /// The principal(s) which must be given in a client certificate to allow access to the Jolokia endpoint,
    /// applicable when `protocol` is `https` and `use-ssl-client-authentication` is `true`
    /// (default `clientPrincipal=cn=system:master-proxy`, `cn=hawtio-online.hawtio.svc` and `cn=fuse-console.fuse.svc` for OpenShift).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "clientPrincipal")]
    pub client_principal: Option<Vec<String>>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Listen for multicast requests (default `false`)
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "discoveryEnabled")]
    pub discovery_enabled: Option<bool>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// Mandate the client certificate contains a client flag in the extended key usage section,
    /// applicable when `protocol` is `https` and `use-ssl-client-authentication` is `true`
    /// (default `true` for OpenShift).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "extendedClientCheck")]
    pub extended_client_check: Option<bool>,
    /// The Host address to which the Jolokia agent should bind to. If `"\*"` or `"0.0.0.0"` is given,
    /// the servers binds to every network interface (default `"*"`).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub host: Option<String>,
    /// A list of additional Jolokia options as defined
    /// in <https://jolokia.org/reference/html/agents.html#agent-jvm-config[JVM> agent configuration options]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub options: Option<Vec<String>>,
    /// The password used for authentication, applicable when the `user` option is set.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub password: Option<String>,
    /// The Jolokia endpoint port (default `8778`).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub port: Option<i32>,
    /// The protocol to use, either `http` or `https` (default `https` for OpenShift)
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub protocol: Option<String>,
    /// Whether client certificates should be used for authentication (default `true` for OpenShift).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "useSSLClientAuthentication")]
    pub use_ssl_client_authentication: Option<bool>,
    /// The user to be used for authentication
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub user: Option<String>,
}

/// The configuration of JVM trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsJvm {
    /// A list of JVM agents to download and execute with format `<agent-name>;<agent-url>[;<jvm-agent-options>]`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub agents: Option<Vec<String>>,
    /// Optional base truststore to use as the starting point for adding certificates.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "baseTruststore")]
    pub base_truststore: Option<IntegrationProfileTraitsJvmBaseTruststore>,
    /// Deprecated: Use CACertificates instead. Path to a PEM-encoded CA certificate file.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "caCert")]
    pub ca_cert: Option<String>,
    /// The path where the generated truststore will be mounted (default `/etc/camel/conf.d/_truststore`).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "caCertMountPath")]
    pub ca_cert_mount_path: Option<String>,
    /// Deprecated: Use CACertificates instead. Path to a file containing the truststore password.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "caCertPassword")]
    pub ca_cert_password: Option<String>,
    /// A list of CA certificates to import into the truststore. Certificates must be mounted via the mount trait.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "caCertificates")]
    pub ca_certificates: Option<Vec<IntegrationProfileTraitsJvmCaCertificates>>,
    /// Additional JVM classpath (use `Linux` classpath separator)
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub classpath: Option<String>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Activates remote debugging, so that a debugger can be attached to the JVM, e.g., using port-forwarding
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub debug: Option<bool>,
    /// Transport address at which to listen for the newly launched JVM (default `*:5005`)
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "debugAddress")]
    pub debug_address: Option<String>,
    /// Suspends the target JVM immediately before the main class is loaded
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "debugSuspend")]
    pub debug_suspend: Option<bool>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// The Jar dependency which will run the application. Leave it empty for managed Integrations.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub jar: Option<String>,
    /// A list of JVM options
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub options: Option<Vec<String>>,
    /// Prints the command used the start the JVM in the container logs (default `true`).
    /// 
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "printCommand")]
    pub print_command: Option<bool>,
    /// Path to a file containing the password for the generated truststore. Required when using ca-certificates without base-truststore.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "truststorePasswordPath")]
    pub truststore_password_path: Option<String>,
}

/// Optional base truststore to use as the starting point for adding certificates.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsJvmBaseTruststore {
    /// Path to a file containing the password for the base truststore.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "passwordPath")]
    pub password_path: Option<String>,
    /// Path to the base truststore file.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "truststorePath")]
    pub truststore_path: Option<String>,
}

/// CACertConfig specifies a CA certificate to import into the truststore.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsJvmCaCertificates {
    /// Path to the PEM-encoded CA certificate file to import.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "certPath")]
    pub cert_path: Option<String>,
}

/// The configuration of Kamelets trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsKamelets {
    /// Automatically inject all referenced Kamelets and their default configuration (enabled by default)
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub auto: Option<bool>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// Comma separated list of Kamelet names to load into the current integration
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub list: Option<String>,
    /// The directory where the application mounts and reads Kamelet spec (default `/etc/camel/kamelets`)
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "mountPoint")]
    pub mount_point: Option<String>,
}

/// The configuration of Keda trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsKeda {
    /// Automatically discover KEDA triggers from Camel component URIs.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub auto: Option<bool>,
    /// Additional metadata to merge into auto-discovered triggers. Keys are trigger types (e.g., "kafka"),
    /// values are maps of metadata key-value pairs to merge (e.g., {"lagThreshold": "10"}).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "autoMetadata")]
    pub auto_metadata: Option<BTreeMap<String, BTreeMap<String, String>>>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// The wait period between the last active trigger reported and scaling the resource back to 0.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "cooldownPeriod")]
    pub cooldown_period: Option<i32>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// Enabling this property allows KEDA to scale the resource down to the specified number of replicas.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "idleReplicaCount")]
    pub idle_replica_count: Option<i32>,
    /// Maximum number of replicas.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "maxReplicaCount")]
    pub max_replica_count: Option<i32>,
    /// Minimum number of replicas.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "minReplicaCount")]
    pub min_replica_count: Option<i32>,
    /// Interval (seconds) to check each trigger on.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "pollingInterval")]
    pub polling_interval: Option<i32>,
    /// Definition of triggers according to the KEDA format. Each trigger must contain `type` field corresponding
    /// to the name of a KEDA autoscaler and a key/value map named `metadata` containing specific trigger options
    /// and optionally a mapping of secrets, used by Keda operator to poll resources according to the autoscaler type.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub triggers: Option<Vec<IntegrationProfileTraitsKedaTriggers>>,
}

#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsKedaTriggers {
    /// The trigger metadata (see Keda documentation to learn how to fill for each type).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub metadata: Option<BTreeMap<String, String>>,
    /// The secrets mapping to use. Keda allows the possibility to use values coming from different secrets.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub secrets: Option<Vec<IntegrationProfileTraitsKedaTriggersSecrets>>,
    /// The autoscaler type.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "type")]
    pub r#type: Option<String>,
}

#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsKedaTriggersSecrets {
    /// The mapping to use for this secret (eg, `database-secret-key:keda-secret-key`)
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub mapping: Option<BTreeMap<String, String>>,
    /// The name of the secret to use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
}

/// The configuration of Knative trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsKnative {
    /// Enable automatic discovery of all trait properties.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub auto: Option<bool>,
    /// List of channels used as destination of integration routes.
    /// Can contain simple channel names or full Camel URIs.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "channelSinks")]
    pub channel_sinks: Option<Vec<String>>,
    /// List of channels used as source of integration routes.
    /// Can contain simple channel names or full Camel URIs.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "channelSources")]
    pub channel_sources: Option<Vec<String>>,
    /// Can be used to inject a Knative complete configuration in JSON format.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub config: Option<String>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// List of endpoints used as destination of integration routes.
    /// Can contain simple endpoint names or full Camel URIs.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "endpointSinks")]
    pub endpoint_sinks: Option<Vec<String>>,
    /// List of channels used as source of integration routes.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "endpointSources")]
    pub endpoint_sources: Option<Vec<String>>,
    /// List of event types that the integration will produce.
    /// Can contain simple event types or full Camel URIs (to use a specific broker).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "eventSinks")]
    pub event_sinks: Option<Vec<String>>,
    /// List of event types that the integration will be subscribed to.
    /// Can contain simple event types or full Camel URIs (to use a specific broker different from "default").
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "eventSources")]
    pub event_sources: Option<Vec<String>>,
    /// Enables the default filtering for the Knative trigger using the event type
    /// If this is true, the created Knative trigger uses the event type as a filter on the event stream when no other filter criteria is given. (default: true)
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "filterEventType")]
    pub filter_event_type: Option<bool>,
    /// Enables filtering on events based on the header "ce-knativehistory". Since this header has been removed in newer versions of
    /// Knative, filtering is disabled by default.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "filterSourceChannels")]
    pub filter_source_channels: Option<bool>,
    /// Sets filter attributes on the event stream (such as event type, source, subject and so on).
    /// A list of key-value pairs that represent filter attributes and its values.
    /// The syntax is KEY=VALUE, e.g., `source="my.source"`.
    /// Filter attributes get set on the Knative trigger that is being created as part of this integration.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub filters: Option<Vec<String>>,
    /// Enables the camel-k-operator to set the "bindings.knative.dev/include=true" label to the namespace
    /// As Knative requires this label to perform injection of K_SINK URL into the service.
    /// If this is false, the integration pod may start and fail, read the SinkBinding Knative documentation. (default: true)
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "namespaceLabel")]
    pub namespace_label: Option<bool>,
    /// Allows binding the integration to a sink via a Knative SinkBinding resource.
    /// This can be used when the integration targets a single sink.
    /// It's enabled by default when the integration targets a single sink
    /// (except when the integration is owned by a Knative source).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "sinkBinding")]
    pub sink_binding: Option<bool>,
}

/// The configuration of Knative Service trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsKnativeService {
    /// The annotations added to route.
    /// This can be used to set knative service specific annotations
    /// CLI usage example: -t "knative-service.annotations.'haproxy.router.openshift.io/balance'=true"
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub annotations: Option<BTreeMap<String, String>>,
    /// Automatically deploy the integration as Knative service when all conditions hold:
    /// 
    /// * Integration is using the Knative profile
    /// * All routes are either starting from an HTTP based consumer or a passive consumer (e.g. `direct` is a passive consumer)
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub auto: Option<bool>,
    /// Configures the Knative autoscaling metric property (e.g. to set `concurrency` based or `cpu` based autoscaling).
    /// 
    /// Refer to the Knative documentation for more information.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "autoscalingMetric")]
    pub autoscaling_metric: Option<String>,
    /// Sets the allowed concurrency level or CPU percentage (depending on the autoscaling metric) for each Pod.
    /// 
    /// Refer to the Knative documentation for more information.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "autoscalingTarget")]
    pub autoscaling_target: Option<i64>,
    /// Configures the Knative autoscaling class property (e.g. to set `hpa.autoscaling.knative.dev` or `kpa.autoscaling.knative.dev` autoscaling).
    /// 
    /// Refer to the Knative documentation for more information.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub class: Option<IntegrationProfileTraitsKnativeServiceClass>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// An upper bound for the number of Pods that can be running in parallel for the integration.
    /// Knative has its own cap value that depends on the installation.
    /// 
    /// Refer to the Knative documentation for more information.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "maxScale")]
    pub max_scale: Option<i64>,
    /// The minimum number of Pods that should be running at any time for the integration. It's **zero** by default, meaning that
    /// the integration is scaled down to zero when not used for a configured amount of time.
    /// 
    /// Refer to the Knative documentation for more information.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "minScale")]
    pub min_scale: Option<i64>,
    /// Enables to gradually shift traffic to the latest Revision and sets the rollout duration.
    /// It's disabled by default and must be expressed as a Golang `time.Duration` string representation,
    /// rounded to a second precision.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "rolloutDuration")]
    pub rollout_duration: Option<String>,
    /// The maximum duration in seconds that the request instance is allowed to respond to a request.
    /// This field propagates to the integration pod's terminationGracePeriodSeconds
    /// 
    /// Refer to the Knative documentation for more information.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "timeoutSeconds")]
    pub timeout_seconds: Option<i64>,
    /// Setting `cluster-local`, Knative service becomes a private service.
    /// Specifically, this option applies the `networking.knative.dev/visibility` label to Knative service.
    /// 
    /// Refer to the Knative documentation for more information.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub visibility: Option<IntegrationProfileTraitsKnativeServiceVisibility>,
}

/// The configuration of Knative Service trait
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub enum IntegrationProfileTraitsKnativeServiceClass {
    #[serde(rename = "kpa.autoscaling.knative.dev")]
    KpaAutoscalingKnativeDev,
    #[serde(rename = "hpa.autoscaling.knative.dev")]
    HpaAutoscalingKnativeDev,
}

/// The configuration of Knative Service trait
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub enum IntegrationProfileTraitsKnativeServiceVisibility {
    #[serde(rename = "cluster-local")]
    ClusterLocal,
}

/// The configuration of Logging trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsLogging {
    /// Colorize the log output
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub color: Option<bool>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// Logs message format
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub format: Option<String>,
    /// Output the logs in JSON
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub json: Option<bool>,
    /// Enable "pretty printing" of the JSON logs
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "jsonPrettyPrint")]
    pub json_pretty_print: Option<bool>,
    /// Adjust the logging level (defaults to `INFO`)
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub level: Option<IntegrationProfileTraitsLoggingLevel>,
}

/// The configuration of Logging trait
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub enum IntegrationProfileTraitsLoggingLevel {
    #[serde(rename = "FATAL")]
    Fatal,
    #[serde(rename = "WARN")]
    Warn,
    #[serde(rename = "INFO")]
    Info,
    #[serde(rename = "DEBUG")]
    Debug,
    #[serde(rename = "TRACE")]
    Trace,
}

/// The configuration of Master trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsMaster {
    /// Enables automatic configuration of the trait.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub auto: Option<bool>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// When this flag is active, the operator analyzes the source code to add dependencies required by delegate endpoints.
    /// E.g. when using `master:lockname:timer`, then `camel:timer` is automatically added to the set of dependencies.
    /// It's enabled by default.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "includeDelegateDependencies")]
    pub include_delegate_dependencies: Option<bool>,
    /// Label that will be used to identify all pods contending the lock. Defaults to "camel.apache.org/integration".
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "labelKey")]
    pub label_key: Option<String>,
    /// Label value that will be used to identify all pods contending the lock. Defaults to the integration name.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "labelValue")]
    pub label_value: Option<String>,
    /// Name of the configmap that will be used to store the lock. Defaults to "<integration-name>-lock".
    /// Name of the configmap/lease resource that will be used to store the lock. Defaults to "<integration-name>-lock".
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "resourceName")]
    pub resource_name: Option<String>,
    /// Type of Kubernetes resource to use for locking ("ConfigMap" or "Lease"). Defaults to "Lease".
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "resourceType")]
    pub resource_type: Option<String>,
}

/// The configuration of Mount trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsMount {
    /// A list of configuration pointing to configmap/secret.
    /// The configuration are expected to be UTF-8 resources as they are processed by runtime Camel Context and tried to be parsed as property files.
    /// They are also made available on the classpath in order to ease their usage directly from the Route.
    /// Syntax: [configmap|secret]:name[/key], where name represents the resource name and key optionally represents the resource key to be filtered
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configs: Option<Vec<String>>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// A list of EmptyDir volumes to be mounted. An optional size limit may be configured (default 500Mi).
    /// Syntax: name:/container/path[:sizeLimit]
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "emptyDirs")]
    pub empty_dirs: Option<Vec<String>>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// Enable "hot reload" when a secret/configmap mounted is edited (default `false`). The configmap/secret must be
    /// marked with `camel.apache.org/integration` label to be taken in account. The resource will be watched for any kind change, also for
    /// changes in metadata.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "hotReload")]
    pub hot_reload: Option<bool>,
    /// A list of resources (text or binary content) pointing to configmap/secret.
    /// The resources are expected to be any resource type (text or binary content).
    /// The destination path can be either a default location or any path specified by the user.
    /// Syntax: [configmap|secret]:name[/key][@path], where name represents the resource name, key optionally represents the resource key to be filtered and path represents the destination path
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub resources: Option<Vec<String>>,
    /// Deprecated: no longer available since version 2.5.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "scanKameletsImplicitLabelSecrets")]
    pub scan_kamelets_implicit_label_secrets: Option<bool>,
    /// A list of Persistent Volume Claims to be mounted. Syntax: [pvcname:/container/path]. If the PVC is not found, the Integration fails.
    /// You can use the syntax [pvcname:/container/path:size:accessMode<:storageClass>] to create a dynamic PVC based on the Storage Class provided
    /// or the default cluster Storage Class. However, if the PVC exists, the operator would mount it.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub volumes: Option<Vec<String>>,
}

/// The configuration of OpenAPI trait.
/// 
/// Deprecated: no longer in use.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsOpenapi {
    /// The configmaps holding the spec of the OpenAPI (compatible with > 3.0 spec only).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configmaps: Option<Vec<String>>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
}

/// The configuration of Owner trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsOwner {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// The set of annotations to be transferred
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "targetAnnotations")]
    pub target_annotations: Option<Vec<String>>,
    /// The set of labels to be transferred
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "targetLabels")]
    pub target_labels: Option<Vec<String>>,
}

/// The configuration of PDB trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsPdb {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// The number of pods for the Integration that can be unavailable after an eviction.
    /// It can be either an absolute number or a percentage (default `1` if `min-available` is also not set).
    /// Only one of `max-unavailable` and `min-available` can be specified.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "maxUnavailable")]
    pub max_unavailable: Option<String>,
    /// The number of pods for the Integration that must still be available after an eviction.
    /// It can be either an absolute number or a percentage.
    /// Only one of `min-available` and `max-unavailable` can be specified.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "minAvailable")]
    pub min_available: Option<String>,
}

/// The configuration of Platform trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsPlatform {
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub auto: Option<bool>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "createDefault")]
    pub create_default: Option<bool>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub global: Option<bool>,
}

/// The configuration of Pod trait.
/// 
/// Deprecated: use init-containers instead.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsPod {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
}

/// The configuration of Prometheus trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsPrometheus {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// Whether a `PodMonitor` resource is created (default `true`).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "podMonitor")]
    pub pod_monitor: Option<bool>,
    /// The `PodMonitor` resource labels, applicable when `pod-monitor` is `true`.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "podMonitorLabels")]
    pub pod_monitor_labels: Option<Vec<String>>,
}

/// The configuration of Pull Secret trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsPullSecret {
    /// Automatically configures the platform registry secret on the pod if it is of type `kubernetes.io/dockerconfigjson`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub auto: Option<bool>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// When using a global operator with a shared platform, this enables delegation of the `system:image-puller`
    /// cluster role on the operator namespace to the integration service account.
    /// 
    /// Deprecated: may be removed in future releases.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "imagePullerDelegation")]
    pub image_puller_delegation: Option<bool>,
    /// The pull secret name to set on the Pod. If left empty this is automatically taken from the platform registry configuration.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "secretName")]
    pub secret_name: Option<String>,
}

/// The configuration of Quarkus trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsQuarkus {
    /// The Quarkus mode to run: either `jvm` or `native` (default `jvm`).
    /// In case both `jvm` and `native` are specified, two `IntegrationKit` resources are created,
    /// with the `native` kit having precedence over the `jvm` one once ready.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "buildMode")]
    pub build_mode: Option<Vec<String>>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// The base image to use when running a native build (default `quay.io/quarkus/quarkus-micro-image:2.0`)
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "nativeBaseImage")]
    pub native_base_image: Option<String>,
    /// The image containing the tooling required for a native build (by default it will use the one provided in the runtime catalog)
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "nativeBuilderImage")]
    pub native_builder_image: Option<String>,
    /// The Quarkus package types, `fast-jar` or `native` (default `fast-jar`).
    /// In case both `fast-jar` and `native` are specified, two `IntegrationKit` resources are created,
    /// with the native kit having precedence over the `fast-jar` one once ready.
    /// The order influences the resolution of the current kit for the integration.
    /// The kit corresponding to the first package type will be assigned to the
    /// integration in case no existing kit that matches the integration exists.
    /// 
    /// Deprecated: use `build-mode` instead.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "packageTypes")]
    pub package_types: Option<Vec<String>>,
}

/// The configuration of Registry trait (support removed since version 2.5.0).
/// 
/// Deprecated: use jvm trait or read documentation.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsRegistry {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
}

/// The configuration of Route trait.
/// 
/// Deprecated: use ingress instead.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsRoute {
    /// The annotations added to route.
    /// This can be used to set route specific annotations
    /// For annotations options see <https://docs.openshift.com/container-platform/3.11/architecture/networking/routes.html#route-specific-annotations>
    /// CLI usage example: -t "route.annotations.'haproxy.router.openshift.io/balance'=true"
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub annotations: Option<BTreeMap<String, String>>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// To configure the host exposed by the route.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub host: Option<String>,
    /// The TLS CA certificate contents.
    /// 
    /// Refer to the OpenShift route documentation for additional information.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "tlsCACertificate")]
    pub tls_ca_certificate: Option<String>,
    /// The secret name and key reference to the TLS CA certificate. The format is "secret-name[/key-name]", the value represents the secret name, if there is only one key in the secret it will be read, otherwise you can set a key name separated with a "/".
    /// 
    /// Refer to the OpenShift route documentation for additional information.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "tlsCACertificateSecret")]
    pub tls_ca_certificate_secret: Option<String>,
    /// The TLS certificate contents.
    /// 
    /// Refer to the OpenShift route documentation for additional information.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "tlsCertificate")]
    pub tls_certificate: Option<String>,
    /// The secret name and key reference to the TLS certificate. The format is "secret-name[/key-name]", the value represents the secret name, if there is only one key in the secret it will be read, otherwise you can set a key name separated with a "/".
    /// 
    /// Refer to the OpenShift route documentation for additional information.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "tlsCertificateSecret")]
    pub tls_certificate_secret: Option<String>,
    /// The destination CA certificate provides the contents of the ca certificate of the final destination.  When using reencrypt
    /// termination this file should be provided in order to have routers use it for health checks on the secure connection.
    /// If this field is not specified, the router may provide its own destination CA and perform hostname validation using
    /// the short service name (service.namespace.svc), which allows infrastructure generated certificates to automatically
    /// verify.
    /// 
    /// Refer to the OpenShift route documentation for additional information.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "tlsDestinationCACertificate")]
    pub tls_destination_ca_certificate: Option<String>,
    /// The secret name and key reference to the destination CA certificate. The format is "secret-name[/key-name]", the value represents the secret name, if there is only one key in the secret it will be read, otherwise you can set a key name separated with a "/".
    /// 
    /// Refer to the OpenShift route documentation for additional information.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "tlsDestinationCACertificateSecret")]
    pub tls_destination_ca_certificate_secret: Option<String>,
    /// To configure how to deal with insecure traffic, e.g. `Allow`, `Disable` or `Redirect` traffic.
    /// 
    /// Refer to the OpenShift route documentation for additional information.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "tlsInsecureEdgeTerminationPolicy")]
    pub tls_insecure_edge_termination_policy: Option<IntegrationProfileTraitsRouteTlsInsecureEdgeTerminationPolicy>,
    /// The TLS certificate key contents.
    /// 
    /// Refer to the OpenShift route documentation for additional information.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "tlsKey")]
    pub tls_key: Option<String>,
    /// The secret name and key reference to the TLS certificate key. The format is "secret-name[/key-name]", the value represents the secret name, if there is only one key in the secret it will be read, otherwise you can set a key name separated with a "/".
    /// 
    /// Refer to the OpenShift route documentation for additional information.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "tlsKeySecret")]
    pub tls_key_secret: Option<String>,
    /// The TLS termination type, like `edge`, `passthrough` or `reencrypt`.
    /// 
    /// Refer to the OpenShift route documentation for additional information.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "tlsTermination")]
    pub tls_termination: Option<IntegrationProfileTraitsRouteTlsTermination>,
}

/// The configuration of Route trait.
/// 
/// Deprecated: use ingress instead.
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub enum IntegrationProfileTraitsRouteTlsInsecureEdgeTerminationPolicy {
    None,
    Allow,
    Redirect,
}

/// The configuration of Route trait.
/// 
/// Deprecated: use ingress instead.
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub enum IntegrationProfileTraitsRouteTlsTermination {
    #[serde(rename = "edge")]
    Edge,
    #[serde(rename = "reencrypt")]
    Reencrypt,
    #[serde(rename = "passthrough")]
    Passthrough,
}

/// The configuration of Security Context trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsSecurityContext {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// Security Context RunAsNonRoot configuration (default true).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "runAsNonRoot")]
    pub run_as_non_root: Option<bool>,
    /// Security Context RunAsUser configuration (default user 1000): this value is automatically retrieved in Openshift clusters when not explicitly set.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "runAsUser")]
    pub run_as_user: Option<i64>,
    /// Security Context SeccompProfileType configuration (default RuntimeDefault).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "seccompProfileType")]
    pub seccomp_profile_type: Option<IntegrationProfileTraitsSecurityContextSeccompProfileType>,
}

/// The configuration of Security Context trait
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub enum IntegrationProfileTraitsSecurityContextSeccompProfileType {
    Unconfined,
    RuntimeDefault,
}

/// The configuration of Service trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsService {
    /// The annotations added to the Service object.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub annotations: Option<BTreeMap<String, String>>,
    /// To automatically detect from the code if a Service needs to be created.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub auto: Option<bool>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// The labels added to the Service object.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub labels: Option<BTreeMap<String, String>>,
    /// Enable Service to be exposed as NodePort (default `false`).
    /// 
    /// Deprecated: Use service type instead.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "nodePort")]
    pub node_port: Option<bool>,
    /// List of container ports available in the container to expose
    /// (syntax: <port-name>;<port-number>;<container-port-number>[;<port-protocol]).
    /// When omitted, `port-protocol` (admitted values `TCP`, `UDP` or `SCTP`) is `TCP`.
    /// Don't use this for the primary http managed port (which is managed by container trait).
    /// Don't use in Knative based environments.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub ports: Option<Vec<String>>,
    /// The type of service to be used, either 'ClusterIP', 'NodePort' or 'LoadBalancer'.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "type")]
    pub r#type: Option<IntegrationProfileTraitsServiceType>,
}

/// The configuration of Service trait
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub enum IntegrationProfileTraitsServiceType {
    #[serde(rename = "ClusterIP")]
    ClusterIp,
    NodePort,
    LoadBalancer,
}

/// The configuration of Service Binding trait.
/// 
/// Deprecated: no longer in use.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsServiceBinding {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// List of Services in the form [[apigroup/]version:]kind:[namespace/]name
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub services: Option<Vec<String>>,
}

/// Deprecated: no longer in use.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsStrimzi {
    /// TraitConfiguration parameters configuration
    pub configuration: BTreeMap<String, serde_json::Value>,
}

/// The configuration of Telemetry trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsTelemetry {
    /// Enables automatic configuration of the trait, including automatic discovery of the telemetry endpoint.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub auto: Option<bool>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// The target endpoint of the Telemetry service (automatically discovered by default)
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub endpoint: Option<String>,
    /// The sampler of the telemetry used for tracing (default "on")
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub sampler: Option<String>,
    /// The sampler of the telemetry used for tracing is parent based (default "true")
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "sampler-parent-based")]
    pub sampler_parent_based: Option<bool>,
    /// The sampler ratio of the telemetry used for tracing
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "sampler-ratio")]
    pub sampler_ratio: Option<String>,
    /// The name of the service that publishes telemetry data (defaults to the integration name)
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "serviceName")]
    pub service_name: Option<String>,
}

/// The configuration of Toleration trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsToleration {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// The list of taints to tolerate, in the form `Key[=Value]:Effect[:Seconds]`
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub taints: Option<Vec<String>>,
}

/// Deprecated: no longer in use.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileTraitsTracing {
    /// TraitConfiguration parameters configuration
    pub configuration: BTreeMap<String, serde_json::Value>,
}

/// Deprecated: no longer in use.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatus {
    /// specify how to build the Integration/IntegrationKits
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub build: Option<IntegrationProfileStatusBuild>,
    /// which are the conditions met (particularly useful when in ERROR phase)
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub conditions: Option<Vec<Condition>>,
    /// a list of dependencies needed by the application
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub dependencies: Option<Vec<String>>,
    /// configuration to be executed to all Kamelets controlled by this IntegrationProfile
    /// 
    /// Deprecated: to be removed in future versions.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub kamelet: Option<IntegrationProfileStatusKamelet>,
    /// ObservedGeneration is the most recent generation observed for this IntegrationProfile.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "observedGeneration")]
    pub observed_generation: Option<i64>,
    /// defines in what phase the IntegrationProfile is found
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub phase: Option<String>,
    /// list of traits to be executed for all the Integration/IntegrationKits built from this IntegrationProfile
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub traits: Option<IntegrationProfileStatusTraits>,
}

/// specify how to build the Integration/IntegrationKits
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusBuild {
    /// a base image that can be used as base layer for all images.
    /// It can be useful if you want to provide some custom base image with further utility software
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "baseImage")]
    pub base_image: Option<String>,
    /// Maven configuration used to build the Camel/Camel-Quarkus applications
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub maven: Option<IntegrationProfileStatusBuildMaven>,
    /// the image registry used to push/pull Integration images
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub registry: Option<IntegrationProfileStatusBuildRegistry>,
    /// the runtime used. Likely Camel Quarkus (we used to have main runtime which has been discontinued since version 1.5)
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "runtimeProvider")]
    pub runtime_provider: Option<String>,
    /// the Camel K Runtime dependency version
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "runtimeVersion")]
    pub runtime_version: Option<String>,
    /// how much time to wait before time out the pipeline process
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub timeout: Option<String>,
}

/// Maven configuration used to build the Camel/Camel-Quarkus applications
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusBuildMaven {
    /// The Secrets name and key, containing the CA certificate(s) used to connect
    /// to remote Maven repositories.
    /// It can contain X.509 certificates, and PKCS#7 formatted certificate chains.
    /// A JKS formatted keystore is automatically created to store the CA certificate(s),
    /// and configured to be used as a trusted certificate(s) by the Maven commands.
    /// Note that the root CA certificates are also imported into the created keystore.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "caSecrets")]
    pub ca_secrets: Option<Vec<IntegrationProfileStatusBuildMavenCaSecrets>>,
    /// The CLI options that are appended to the list of arguments for Maven commands,
    /// e.g., `-V,--no-transfer-progress,-Dstyle.color=never`.
    /// See <https://maven.apache.org/ref/3.9.14/maven-embedder/cli.html.>
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "cliOptions")]
    pub cli_options: Option<Vec<String>>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub extension: Option<Vec<IntegrationProfileStatusBuildMavenExtension>>,
    /// The path of the local Maven repository.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "localRepository")]
    pub local_repository: Option<String>,
    /// A reference to the ConfigMap or Secret key that contains
    /// the Maven profile.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub profiles: Option<Vec<IntegrationProfileStatusBuildMavenProfiles>>,
    /// The Maven properties.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub properties: Option<BTreeMap<String, String>>,
    /// A reference to the ConfigMap or Secret key that contains
    /// the Maven settings.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub settings: Option<IntegrationProfileStatusBuildMavenSettings>,
    /// A reference to the ConfigMap or Secret key that contains
    /// the security of the Maven settings.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "settingsSecurity")]
    pub settings_security: Option<IntegrationProfileStatusBuildMavenSettingsSecurity>,
}

/// SecretKeySelector selects a key of a Secret.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusBuildMavenCaSecrets {
    /// The key of the secret to select from.  Must be a valid secret key.
    pub key: String,
    /// Name of the referent.
    /// This field is effectively required, but due to backwards compatibility is
    /// allowed to be empty. Instances of this type with an empty value here are
    /// almost certainly wrong.
    /// More info: <https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names>
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// Specify whether the Secret or its key must be defined
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub optional: Option<bool>,
}

/// MavenArtifact defines a GAV (Group:Artifact:Type:Version:Classifier) Maven artifact.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusBuildMavenExtension {
    /// Maven Artifact
    #[serde(rename = "artifactId")]
    pub artifact_id: String,
    /// Maven Classifier
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub classifier: Option<String>,
    /// Maven Group
    #[serde(rename = "groupId")]
    pub group_id: String,
    /// Maven Type
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "type")]
    pub r#type: Option<String>,
    /// Maven Version
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub version: Option<String>,
}

/// ValueSource --.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusBuildMavenProfiles {
    /// Selects a key of a ConfigMap.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "configMapKeyRef")]
    pub config_map_key_ref: Option<IntegrationProfileStatusBuildMavenProfilesConfigMapKeyRef>,
    /// Selects a key of a secret.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "secretKeyRef")]
    pub secret_key_ref: Option<IntegrationProfileStatusBuildMavenProfilesSecretKeyRef>,
}

/// Selects a key of a ConfigMap.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusBuildMavenProfilesConfigMapKeyRef {
    /// The key to select.
    pub key: String,
    /// Name of the referent.
    /// This field is effectively required, but due to backwards compatibility is
    /// allowed to be empty. Instances of this type with an empty value here are
    /// almost certainly wrong.
    /// More info: <https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names>
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// Specify whether the ConfigMap or its key must be defined
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub optional: Option<bool>,
}

/// Selects a key of a secret.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusBuildMavenProfilesSecretKeyRef {
    /// The key of the secret to select from.  Must be a valid secret key.
    pub key: String,
    /// Name of the referent.
    /// This field is effectively required, but due to backwards compatibility is
    /// allowed to be empty. Instances of this type with an empty value here are
    /// almost certainly wrong.
    /// More info: <https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names>
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// Specify whether the Secret or its key must be defined
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub optional: Option<bool>,
}

/// A reference to the ConfigMap or Secret key that contains
/// the Maven settings.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusBuildMavenSettings {
    /// Selects a key of a ConfigMap.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "configMapKeyRef")]
    pub config_map_key_ref: Option<IntegrationProfileStatusBuildMavenSettingsConfigMapKeyRef>,
    /// Selects a key of a secret.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "secretKeyRef")]
    pub secret_key_ref: Option<IntegrationProfileStatusBuildMavenSettingsSecretKeyRef>,
}

/// Selects a key of a ConfigMap.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusBuildMavenSettingsConfigMapKeyRef {
    /// The key to select.
    pub key: String,
    /// Name of the referent.
    /// This field is effectively required, but due to backwards compatibility is
    /// allowed to be empty. Instances of this type with an empty value here are
    /// almost certainly wrong.
    /// More info: <https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names>
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// Specify whether the ConfigMap or its key must be defined
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub optional: Option<bool>,
}

/// Selects a key of a secret.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusBuildMavenSettingsSecretKeyRef {
    /// The key of the secret to select from.  Must be a valid secret key.
    pub key: String,
    /// Name of the referent.
    /// This field is effectively required, but due to backwards compatibility is
    /// allowed to be empty. Instances of this type with an empty value here are
    /// almost certainly wrong.
    /// More info: <https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names>
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// Specify whether the Secret or its key must be defined
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub optional: Option<bool>,
}

/// A reference to the ConfigMap or Secret key that contains
/// the security of the Maven settings.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusBuildMavenSettingsSecurity {
    /// Selects a key of a ConfigMap.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "configMapKeyRef")]
    pub config_map_key_ref: Option<IntegrationProfileStatusBuildMavenSettingsSecurityConfigMapKeyRef>,
    /// Selects a key of a secret.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "secretKeyRef")]
    pub secret_key_ref: Option<IntegrationProfileStatusBuildMavenSettingsSecuritySecretKeyRef>,
}

/// Selects a key of a ConfigMap.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusBuildMavenSettingsSecurityConfigMapKeyRef {
    /// The key to select.
    pub key: String,
    /// Name of the referent.
    /// This field is effectively required, but due to backwards compatibility is
    /// allowed to be empty. Instances of this type with an empty value here are
    /// almost certainly wrong.
    /// More info: <https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names>
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// Specify whether the ConfigMap or its key must be defined
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub optional: Option<bool>,
}

/// Selects a key of a secret.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusBuildMavenSettingsSecuritySecretKeyRef {
    /// The key of the secret to select from.  Must be a valid secret key.
    pub key: String,
    /// Name of the referent.
    /// This field is effectively required, but due to backwards compatibility is
    /// allowed to be empty. Instances of this type with an empty value here are
    /// almost certainly wrong.
    /// More info: <https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names>
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// Specify whether the Secret or its key must be defined
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub optional: Option<bool>,
}

/// the image registry used to push/pull Integration images
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusBuildRegistry {
    /// the URI to access
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub address: Option<String>,
    /// the configmap which stores the Certificate Authority
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub ca: Option<String>,
    /// if the container registry is insecure (ie, http only)
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub insecure: Option<bool>,
    /// the registry organization
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub organization: Option<String>,
    /// the secret where credentials are stored
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub secret: Option<String>,
}

/// configuration to be executed to all Kamelets controlled by this IntegrationProfile
/// 
/// Deprecated: to be removed in future versions.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusKamelet {
    /// remote repository used to retrieve Kamelet catalog
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub repositories: Option<Vec<IntegrationProfileStatusKameletRepositories>>,
}

/// KameletRepositorySpec defines the location of the Kamelet catalog to use.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusKameletRepositories {
    /// the remote repository in the format github:ORG/REPO/PATH_TO_KAMELETS_FOLDER
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub uri: Option<String>,
}

/// list of traits to be executed for all the Integration/IntegrationKits built from this IntegrationProfile
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraits {
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "3scale")]
    pub r#_3scale: Option<IntegrationProfileStatusTraits3scale>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub addons: Option<BTreeMap<String, BTreeMap<String, serde_json::Value>>>,
    /// The configuration of Affinity trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub affinity: Option<IntegrationProfileStatusTraitsAffinity>,
    /// The configuration of Builder trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub builder: Option<IntegrationProfileStatusTraitsBuilder>,
    /// The configuration of Camel trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub camel: Option<IntegrationProfileStatusTraitsCamel>,
    /// The configuration of Container trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub container: Option<IntegrationProfileStatusTraitsContainer>,
    /// The configuration of Cron trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub cron: Option<IntegrationProfileStatusTraitsCron>,
    /// The configuration of Dependencies trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub dependencies: Option<IntegrationProfileStatusTraitsDependencies>,
    /// The configuration of Deployer trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub deployer: Option<IntegrationProfileStatusTraitsDeployer>,
    /// The configuration of Deployment trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub deployment: Option<IntegrationProfileStatusTraitsDeployment>,
    /// The configuration of Environment trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub environment: Option<IntegrationProfileStatusTraitsEnvironment>,
    /// The configuration of Error Handler trait.
    /// 
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "error-handler")]
    pub error_handler: Option<IntegrationProfileStatusTraitsErrorHandler>,
    /// The configuration of Istio trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub gateway: Option<IntegrationProfileStatusTraitsGateway>,
    /// The configuration of GC trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub gc: Option<IntegrationProfileStatusTraitsGc>,
    /// The configuration of GitOps trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub gitops: Option<IntegrationProfileStatusTraitsGitops>,
    /// The configuration of Health trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub health: Option<IntegrationProfileStatusTraitsHealth>,
    /// The configuration of Ingress trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub ingress: Option<IntegrationProfileStatusTraitsIngress>,
    /// The configuration of Init Containers trait
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "init-containers")]
    pub init_containers: Option<IntegrationProfileStatusTraitsInitContainers>,
    /// The configuration of Istio trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub istio: Option<IntegrationProfileStatusTraitsIstio>,
    /// The configuration of Jolokia trait.
    /// 
    /// Deprecated: use jvm.agent instead.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub jolokia: Option<IntegrationProfileStatusTraitsJolokia>,
    /// The configuration of JVM trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub jvm: Option<IntegrationProfileStatusTraitsJvm>,
    /// The configuration of Kamelets trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub kamelets: Option<IntegrationProfileStatusTraitsKamelets>,
    /// The configuration of Keda trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub keda: Option<IntegrationProfileStatusTraitsKeda>,
    /// The configuration of Knative trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub knative: Option<IntegrationProfileStatusTraitsKnative>,
    /// The configuration of Knative Service trait
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "knative-service")]
    pub knative_service: Option<IntegrationProfileStatusTraitsKnativeService>,
    /// The configuration of Logging trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub logging: Option<IntegrationProfileStatusTraitsLogging>,
    /// The configuration of Master trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub master: Option<IntegrationProfileStatusTraitsMaster>,
    /// The configuration of Mount trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub mount: Option<IntegrationProfileStatusTraitsMount>,
    /// The configuration of OpenAPI trait.
    /// 
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub openapi: Option<IntegrationProfileStatusTraitsOpenapi>,
    /// The configuration of Owner trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub owner: Option<IntegrationProfileStatusTraitsOwner>,
    /// The configuration of PDB trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub pdb: Option<IntegrationProfileStatusTraitsPdb>,
    /// The configuration of Platform trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub platform: Option<IntegrationProfileStatusTraitsPlatform>,
    /// The configuration of Pod trait.
    /// 
    /// Deprecated: use init-containers instead.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub pod: Option<IntegrationProfileStatusTraitsPod>,
    /// The configuration of Prometheus trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub prometheus: Option<IntegrationProfileStatusTraitsPrometheus>,
    /// The configuration of Pull Secret trait
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "pull-secret")]
    pub pull_secret: Option<IntegrationProfileStatusTraitsPullSecret>,
    /// The configuration of Quarkus trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub quarkus: Option<IntegrationProfileStatusTraitsQuarkus>,
    /// The configuration of Registry trait (support removed since version 2.5.0).
    /// 
    /// Deprecated: use jvm trait or read documentation.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub registry: Option<IntegrationProfileStatusTraitsRegistry>,
    /// The configuration of Route trait.
    /// 
    /// Deprecated: use ingress instead.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub route: Option<IntegrationProfileStatusTraitsRoute>,
    /// The configuration of Security Context trait
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "security-context")]
    pub security_context: Option<IntegrationProfileStatusTraitsSecurityContext>,
    /// The configuration of Service trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub service: Option<IntegrationProfileStatusTraitsService>,
    /// The configuration of Service Binding trait.
    /// 
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "service-binding")]
    pub service_binding: Option<IntegrationProfileStatusTraitsServiceBinding>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub strimzi: Option<IntegrationProfileStatusTraitsStrimzi>,
    /// The configuration of Telemetry trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub telemetry: Option<IntegrationProfileStatusTraitsTelemetry>,
    /// The configuration of Toleration trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub toleration: Option<IntegrationProfileStatusTraitsToleration>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tracing: Option<IntegrationProfileStatusTraitsTracing>,
}

/// Deprecated: no longer in use.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraits3scale {
    /// TraitConfiguration parameters configuration
    pub configuration: BTreeMap<String, serde_json::Value>,
}

/// The configuration of Affinity trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsAffinity {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// Defines a set of nodes the integration pod(s) are eligible to be scheduled on, based on labels on the node.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "nodeAffinityLabels")]
    pub node_affinity_labels: Option<Vec<String>>,
    /// Always co-locates multiple replicas of the integration in the same node (default `false`).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "podAffinity")]
    pub pod_affinity: Option<bool>,
    /// Defines a set of pods (namely those matching the label selector, relative to the given namespace) that the
    /// integration pod(s) should be co-located with.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "podAffinityLabels")]
    pub pod_affinity_labels: Option<Vec<String>>,
    /// Never co-locates multiple replicas of the integration in the same node (default `false`).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "podAntiAffinity")]
    pub pod_anti_affinity: Option<bool>,
    /// Defines a set of pods (namely those matching the label selector, relative to the given namespace) that the
    /// integration pod(s) should not be co-located with.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "podAntiAffinityLabels")]
    pub pod_anti_affinity_labels: Option<Vec<String>>,
}

/// The configuration of Builder trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsBuilder {
    /// When using `pod` strategy, annotation to use for the builder pod.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub annotations: Option<BTreeMap<String, String>>,
    /// Specify a base image. In order to have the application working properly it must be a container image which has a Java JDK
    /// installed and ready to use on path (ie `/usr/bin/java`).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "baseImage")]
    pub base_image: Option<String>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// Use the incremental image build option, to reuse existing containers (default `true`)
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "incrementalImageBuild")]
    pub incremental_image_build: Option<bool>,
    /// When using `pod` strategy, the maximum amount of CPU required by the pod builder.
    /// 
    /// Deprecated: use TasksRequestCPU instead with task name `builder`.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "limitCPU")]
    pub limit_cpu: Option<String>,
    /// When using `pod` strategy, the maximum amount of memory required by the pod builder.
    /// 
    /// Deprecated: use TasksRequestCPU instead with task name `builder`.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "limitMemory")]
    pub limit_memory: Option<String>,
    /// A list of references pointing to configmaps/secrets that contains a maven profile.
    /// This configmap/secret is a resource of the IntegrationKit created, therefore it needs to be present in the namespace where the operator is going to create the IntegrationKit.
    /// The content of the maven profile is expected to be a text containing a valid maven profile starting with `<profile>` and ending with `</profile>` that will be integrated as an inline profile in the POM.
    /// Syntax: [configmap|secret]:name[/key], where name represents the resource name, key optionally represents the resource key to be filtered (default key value = profile.xml).
    /// 
    /// Deprecated: will be removed in future versions.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "mavenProfiles")]
    pub maven_profiles: Option<Vec<String>>,
    /// Defines a set of nodes the builder pod is eligible to be scheduled on, based on labels on the node.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "nodeSelector")]
    pub node_selector: Option<BTreeMap<String, String>>,
    /// The build order strategy to use, either `dependencies`, `fifo` or `sequential` (default is the platform default)
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "orderStrategy")]
    pub order_strategy: Option<IntegrationProfileStatusTraitsBuilderOrderStrategy>,
    /// The list of manifest platforms to use to build a container image (default `linux/amd64`).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub platforms: Option<Vec<String>>,
    /// A list of properties to be provided to the build task
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub properties: Option<Vec<String>>,
    /// When using `pod` strategy, the minimum amount of CPU required by the pod builder.
    /// 
    /// Deprecated: use TasksRequestCPU instead with task name `builder`.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "requestCPU")]
    pub request_cpu: Option<String>,
    /// When using `pod` strategy, the minimum amount of memory required by the pod builder.
    /// 
    /// Deprecated: use TasksRequestCPU instead with task name `builder`.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "requestMemory")]
    pub request_memory: Option<String>,
    /// The strategy to use, either `pod` or `routine` (default `routine`)
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub strategy: Option<IntegrationProfileStatusTraitsBuilderStrategy>,
    /// A list of tasks to be executed (available only when using `pod` strategy) with format `<name>;<container-image>;<container-command>`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tasks: Option<Vec<String>>,
    /// A list of tasks sorted by the order of execution in a csv format, ie, `<taskName1>,<taskName2>,...`.
    /// Mind that you must include also the operator tasks (`builder`, `quarkus-native`, `package`, `jib`, `s2i`)
    /// if you need to execute them. Useful only with `pod` strategy.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "tasksFilter")]
    pub tasks_filter: Option<String>,
    /// A list of limit cpu configuration for the specific task with format `<task-name>:<limit-cpu-conf>`.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "tasksLimitCPU")]
    pub tasks_limit_cpu: Option<Vec<String>>,
    /// A list of limit memory configuration for the specific task with format `<task-name>:<limit-memory-conf>`.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "tasksLimitMemory")]
    pub tasks_limit_memory: Option<Vec<String>>,
    /// A list of request cpu configuration for the specific task with format `<task-name>:<request-cpu-conf>`.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "tasksRequestCPU")]
    pub tasks_request_cpu: Option<Vec<String>>,
    /// A list of request memory configuration for the specific task with format `<task-name>:<request-memory-conf>`.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "tasksRequestMemory")]
    pub tasks_request_memory: Option<Vec<String>>,
    /// Enable verbose logging on build components that support it (e.g. Kaniko build pod).
    /// 
    /// Deprecated: no longer in use
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub verbose: Option<bool>,
}

/// The configuration of Builder trait
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub enum IntegrationProfileStatusTraitsBuilderOrderStrategy {
    #[serde(rename = "dependencies")]
    Dependencies,
    #[serde(rename = "fifo")]
    Fifo,
    #[serde(rename = "sequential")]
    Sequential,
}

/// The configuration of Builder trait
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub enum IntegrationProfileStatusTraitsBuilderStrategy {
    #[serde(rename = "pod")]
    Pod,
    #[serde(rename = "routine")]
    Routine,
}

/// The configuration of Camel trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsCamel {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// A list of properties to be provided to the Integration runtime
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub properties: Option<Vec<String>>,
    /// The runtime provider to use for the integration. (Default, plain Quarkus).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "runtimeProvider")]
    pub runtime_provider: Option<IntegrationProfileStatusTraitsCamelRuntimeProvider>,
    /// The runtime version to use for the integration. It overrides the default version set in the Integration Platform.
    /// You can use a fixed version (for example "3.2.3") or a semantic version (for example "3.x") which will try to resolve
    /// to the best matching Catalog existing on the cluster (Default, the one provided by the operator version).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "runtimeVersion")]
    pub runtime_version: Option<String>,
}

/// The configuration of Camel trait
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub enum IntegrationProfileStatusTraitsCamelRuntimeProvider {
    #[serde(rename = "quarkus")]
    Quarkus,
    #[serde(rename = "plain-quarkus")]
    PlainQuarkus,
}

/// The configuration of Container trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsContainer {
    /// Security Context AllowPrivilegeEscalation configuration (default false).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "allowPrivilegeEscalation")]
    pub allow_privilege_escalation: Option<bool>,
    /// To automatically enable the trait
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub auto: Option<bool>,
    /// Security Context Capabilities Add configuration (default none).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "capabilitiesAdd")]
    pub capabilities_add: Option<Vec<String>>,
    /// Security Context Capabilities Drop configuration (default ALL).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "capabilitiesDrop")]
    pub capabilities_drop: Option<Vec<String>>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// Can be used to enable/disable http exposure via kubernetes Service.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub expose: Option<bool>,
    /// The main container image to use for the Integration. When using this parameter the operator will create a synthetic IntegrationKit which
    /// won't be able to execute traits requiring CamelCatalog. If the container image you're using is coming from an IntegrationKit, use instead
    /// Integration `.spec.integrationKit` parameter. If you're moving the Integration across environments, you will also need to create an "external" IntegrationKit.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub image: Option<String>,
    /// The pull policy: Always|Never|IfNotPresent
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "imagePullPolicy")]
    pub image_pull_policy: Option<IntegrationProfileStatusTraitsContainerImagePullPolicy>,
    /// The maximum amount of CPU to be provided (default 500 millicores).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "limitCPU")]
    pub limit_cpu: Option<String>,
    /// The maximum amount of memory to be provided (default 512 Mi).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "limitMemory")]
    pub limit_memory: Option<String>,
    /// The main container name. It's named `integration` by default.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// To configure a different http port exposed by the container (default `8080`).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub port: Option<i32>,
    /// To configure a different http port name for the port exposed by the container.
    /// It defaults to `http` only when the `expose` parameter is true.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "portName")]
    pub port_name: Option<String>,
    /// List of container ports available in the container (syntax: <port-name>;<port-number>[;port-protocol]).
    /// When omitted, `port-protocol` (admitted values `TCP`, `UDP` or `SCTP`) is `TCP`.
    /// Don't use this for the primary http managed port (for which case you need to use `portName` and `port`).
    /// Don't use in Knative based environments.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub ports: Option<Vec<String>>,
    /// The minimum amount of CPU required (default 125 millicores).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "requestCPU")]
    pub request_cpu: Option<String>,
    /// The minimum amount of memory required (default 128 Mi).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "requestMemory")]
    pub request_memory: Option<String>,
    /// Security Context RunAsNonRoot configuration (default false).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "runAsNonRoot")]
    pub run_as_non_root: Option<bool>,
    /// Security Context RunAsUser configuration (default none): this value is automatically retrieved in Openshift clusters when not explicitly set.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "runAsUser")]
    pub run_as_user: Option<i64>,
    /// Security Context SeccompProfileType configuration (default RuntimeDefault).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "seccompProfileType")]
    pub seccomp_profile_type: Option<IntegrationProfileStatusTraitsContainerSeccompProfileType>,
    /// To configure under which service port the http container port is to be exposed (default `80`).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "servicePort")]
    pub service_port: Option<i32>,
    /// To configure under which service port name the http container port is to be exposed (default `http`).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "servicePortName")]
    pub service_port_name: Option<String>,
}

/// The configuration of Container trait
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub enum IntegrationProfileStatusTraitsContainerImagePullPolicy {
    Always,
    Never,
    IfNotPresent,
}

/// The configuration of Container trait
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub enum IntegrationProfileStatusTraitsContainerSeccompProfileType {
    Unconfined,
    RuntimeDefault,
}

/// The configuration of Cron trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsCron {
    /// Specifies the duration in seconds, relative to the start time, that the job
    /// may be continuously active before it is considered to be failed.
    /// It defaults to 60s.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "activeDeadlineSeconds")]
    pub active_deadline_seconds: Option<i64>,
    /// Automatically deploy the integration as CronJob when all routes are
    /// either starting from a periodic consumer (only `cron`, `timer` and `quartz` are supported) or a passive consumer (e.g. `direct` is a passive consumer).
    /// 
    /// It's required that all periodic consumers have the same period, and it can be expressed as cron schedule (e.g. `1m` can be expressed as `0/1 * * * *`,
    /// while `35m` or `50s` cannot).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub auto: Option<bool>,
    /// Specifies the number of retries before marking the job failed.
    /// It defaults to 2.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "backoffLimit")]
    pub backoff_limit: Option<i32>,
    /// A comma separated list of the Camel components that need to be customized in order for them to work when the schedule is triggered externally by Kubernetes.
    /// Supported components are currently: `cron`, `timer` and `quartz`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub components: Option<String>,
    /// Specifies how to treat concurrent executions of a Job.
    /// Valid values are:
    /// - "Allow": allows CronJobs to run concurrently;
    /// - "Forbid" (default): forbids concurrent runs, skipping next run if previous run hasn't finished yet;
    /// - "Replace": cancels currently running job and replaces it with a new one
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "concurrencyPolicy")]
    pub concurrency_policy: Option<IntegrationProfileStatusTraitsCronConcurrencyPolicy>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// Use the default Camel implementation of the `cron` endpoint (`quartz`) instead of trying to materialize the integration
    /// as Kubernetes CronJob.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub fallback: Option<bool>,
    /// The CronJob schedule for the whole integration. If multiple routes are declared, they must have the same schedule for this
    /// mechanism to work correctly.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub schedule: Option<String>,
    /// Optional deadline in seconds for starting the job if it misses scheduled
    /// time for any reason.  Missed jobs executions will be counted as failed ones.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "startingDeadlineSeconds")]
    pub starting_deadline_seconds: Option<i64>,
    /// The timezone that the CronJob will run on
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "timeZone")]
    pub time_zone: Option<String>,
}

/// The configuration of Cron trait
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub enum IntegrationProfileStatusTraitsCronConcurrencyPolicy {
    Allow,
    Forbid,
    Replace,
}

/// The configuration of Dependencies trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsDependencies {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
}

/// The configuration of Deployer trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsDeployer {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// Allows to explicitly select the desired deployment kind between `deployment`, `cron-job` or `knative-service`
    /// when creating the resources for running the integration.
    /// 
    /// Deprecated: this feature will be removed in future releases.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub kind: Option<IntegrationProfileStatusTraitsDeployerKind>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "useSSA")]
    pub use_ssa: Option<bool>,
}

/// The configuration of Deployer trait
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub enum IntegrationProfileStatusTraitsDeployerKind {
    #[serde(rename = "deployment")]
    Deployment,
    #[serde(rename = "cron-job")]
    CronJob,
    #[serde(rename = "knative-service")]
    KnativeService,
}

/// The configuration of Deployment trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsDeployment {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// The maximum time in seconds for the deployment to make progress before it
    /// is considered to be failed. It defaults to `60s`.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "progressDeadlineSeconds")]
    pub progress_deadline_seconds: Option<i32>,
    /// The maximum number of pods that can be scheduled above the desired number of
    /// pods.
    /// Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
    /// This can not be 0 if MaxUnavailable is 0.
    /// Absolute number is calculated from percentage by rounding up.
    /// Defaults to `25%`.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "rollingUpdateMaxSurge")]
    pub rolling_update_max_surge: Option<IntOrString>,
    /// The maximum number of pods that can be unavailable during the update.
    /// Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
    /// Absolute number is calculated from percentage by rounding down.
    /// This can not be 0 if MaxSurge is 0.
    /// Defaults to `25%`.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "rollingUpdateMaxUnavailable")]
    pub rolling_update_max_unavailable: Option<IntOrString>,
    /// The deployment strategy to use to replace existing pods with new ones.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub strategy: Option<IntegrationProfileStatusTraitsDeploymentStrategy>,
}

/// The configuration of Deployment trait
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub enum IntegrationProfileStatusTraitsDeploymentStrategy {
    Recreate,
    RollingUpdate,
}

/// The configuration of Environment trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsEnvironment {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Enables injection of `NAMESPACE` and `POD_NAME` environment variables (default `true`)
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "containerMeta")]
    pub container_meta: Option<bool>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// Propagates the `HTTP_PROXY`, `HTTPS_PROXY` and `NO_PROXY` environment variables (default `true`)
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "httpProxy")]
    pub http_proxy: Option<bool>,
    /// A list of environment variables to be added to the integration container.
    /// The syntax is either VAR=VALUE or VAR=[configmap|secret]:name/key, where name represents the resource name,
    /// and key represents the resource key to be mapped as and environment variable.
    /// These take precedence over any previously defined environment variables.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub vars: Option<Vec<String>>,
}

/// The configuration of Error Handler trait.
/// 
/// Deprecated: no longer in use.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsErrorHandler {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// The error handler ref name provided or found in application properties
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "ref")]
    pub r#ref: Option<String>,
}

/// The configuration of Istio trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsGateway {
    /// The class name to use for the gateway configuration.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "className")]
    pub class_name: Option<String>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// The listeners in the format "port;protocol" (default, "8080;HTTP").
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub listeners: Option<Vec<String>>,
}

/// The configuration of GC trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsGc {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Discovery client cache to be used, either `disabled`, `disk` or `memory` (default `memory`).
    /// 
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "discoveryCache")]
    pub discovery_cache: Option<IntegrationProfileStatusTraitsGcDiscoveryCache>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
}

/// The configuration of GC trait
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub enum IntegrationProfileStatusTraitsGcDiscoveryCache {
    #[serde(rename = "disabled")]
    Disabled,
    #[serde(rename = "disk")]
    Disk,
    #[serde(rename = "memory")]
    Memory,
}

/// The configuration of GitOps trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsGitops {
    /// the git branch to check out.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub branch: Option<String>,
    /// the git branch to push to. If omitted, the operator will push to a new branch named as `cicd/release-candidate-<datetime>`.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "branchPush")]
    pub branch_push: Option<String>,
    /// the git commit (full SHA) to check out.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub commit: Option<String>,
    /// The email used to commit the GitOps changes (default `camel-k-operator@apache.org`).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "committerEmail")]
    pub committer_email: Option<String>,
    /// The name used to commit the GitOps changes (default `Camel K Operator`).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "committerName")]
    pub committer_name: Option<String>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// The root path where to store Kustomize overlays (default `integrations`).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "integrationDirectory")]
    pub integration_directory: Option<String>,
    /// a list of overlays to provide (default {"dev","stag","prod"}).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub overlays: Option<Vec<String>>,
    /// a flag (default, false) to overwrite any existing overlay.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "overwriteOverlay")]
    pub overwrite_overlay: Option<bool>,
    /// the Kubernetes secret where the Git token is stored. The operator will pick up the first secret key only, whichever the name it is.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub secret: Option<String>,
    /// the git tag to check out.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tag: Option<String>,
    /// the URL of the repository where the project is stored.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}

/// The configuration of Health trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsHealth {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// Minimum consecutive failures for the liveness probe to be considered failed after having succeeded.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "livenessFailureThreshold")]
    pub liveness_failure_threshold: Option<i32>,
    /// Number of seconds after the container has started before the liveness probe is initiated.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "livenessInitialDelay")]
    pub liveness_initial_delay: Option<i32>,
    /// How often to perform the liveness probe.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "livenessPeriod")]
    pub liveness_period: Option<i32>,
    /// The liveness port to use (default 8080).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "livenessPort")]
    pub liveness_port: Option<i32>,
    /// The liveness probe path to use (default provided by the Catalog runtime used).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "livenessProbe")]
    pub liveness_probe: Option<String>,
    /// Configures the liveness probe for the integration container (default `false`).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "livenessProbeEnabled")]
    pub liveness_probe_enabled: Option<bool>,
    /// Scheme to use when connecting to the liveness probe (default `HTTP`).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "livenessScheme")]
    pub liveness_scheme: Option<String>,
    /// Minimum consecutive successes for the liveness probe to be considered successful after having failed.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "livenessSuccessThreshold")]
    pub liveness_success_threshold: Option<i32>,
    /// Number of seconds after which the liveness probe times out.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "livenessTimeout")]
    pub liveness_timeout: Option<i32>,
    /// Minimum consecutive failures for the readiness probe to be considered failed after having succeeded.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "readinessFailureThreshold")]
    pub readiness_failure_threshold: Option<i32>,
    /// Number of seconds after the container has started before the readiness probe is initiated.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "readinessInitialDelay")]
    pub readiness_initial_delay: Option<i32>,
    /// How often to perform the readiness probe.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "readinessPeriod")]
    pub readiness_period: Option<i32>,
    /// The readiness port to use (default 8080).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "readinessPort")]
    pub readiness_port: Option<i32>,
    /// The readiness probe path to use (default provided by the Catalog runtime used).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "readinessProbe")]
    pub readiness_probe: Option<String>,
    /// Configures the readiness probe for the integration container (default `true`).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "readinessProbeEnabled")]
    pub readiness_probe_enabled: Option<bool>,
    /// Scheme to use when connecting to the readiness probe (default `HTTP`).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "readinessScheme")]
    pub readiness_scheme: Option<String>,
    /// Minimum consecutive successes for the readiness probe to be considered successful after having failed.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "readinessSuccessThreshold")]
    pub readiness_success_threshold: Option<i32>,
    /// Number of seconds after which the readiness probe times out.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "readinessTimeout")]
    pub readiness_timeout: Option<i32>,
    /// Minimum consecutive failures for the startup probe to be considered failed after having succeeded.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "startupFailureThreshold")]
    pub startup_failure_threshold: Option<i32>,
    /// Number of seconds after the container has started before the startup probe is initiated.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "startupInitialDelay")]
    pub startup_initial_delay: Option<i32>,
    /// How often to perform the startup probe.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "startupPeriod")]
    pub startup_period: Option<i32>,
    /// The startup port to use (default 8080).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "startupPort")]
    pub startup_port: Option<i32>,
    /// The startup probe path to use (default provided by the Catalog runtime used).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "startupProbe")]
    pub startup_probe: Option<String>,
    /// Configures the startup probe for the integration container (default `false`).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "startupProbeEnabled")]
    pub startup_probe_enabled: Option<bool>,
    /// Scheme to use when connecting to the startup probe (default `HTTP`).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "startupScheme")]
    pub startup_scheme: Option<String>,
    /// Minimum consecutive successes for the startup probe to be considered successful after having failed.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "startupSuccessThreshold")]
    pub startup_success_threshold: Option<i32>,
    /// Number of seconds after which the startup probe times out.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "startupTimeout")]
    pub startup_timeout: Option<i32>,
}

/// The configuration of Ingress trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsIngress {
    /// The annotations added to the ingress.
    /// This can be used to set controller specific annotations, e.g., when using the NGINX Ingress controller:
    /// See <https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/nginx-configuration/annotations.md>
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub annotations: Option<BTreeMap<String, String>>,
    /// To automatically add an ingress whenever the integration uses an HTTP endpoint consumer.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub auto: Option<bool>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// To configure the host exposed by the ingress.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub host: Option<String>,
    /// The Ingress class name as defined by the Ingress spec
    /// See <https://kubernetes.io/docs/concepts/services-networking/ingress/>
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "ingressClassName")]
    pub ingress_class_name: Option<String>,
    /// To configure the path exposed by the ingress (default `/`).
    /// 
    /// Deprecated: In favor of `paths` - left for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
    /// To configure the path type exposed by the ingress.
    /// One of `Exact`, `Prefix`, `ImplementationSpecific` (default to `Prefix`).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "pathType")]
    pub path_type: Option<IntegrationProfileStatusTraitsIngressPathType>,
    /// To configure the paths exposed by the ingress (default `['/']`).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub paths: Option<Vec<String>>,
    /// To configure tls hosts
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "tlsHosts")]
    pub tls_hosts: Option<Vec<String>>,
    /// To configure tls secret name
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "tlsSecretName")]
    pub tls_secret_name: Option<String>,
}

/// The configuration of Ingress trait
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub enum IntegrationProfileStatusTraitsIngressPathType {
    Exact,
    Prefix,
    ImplementationSpecific,
}

/// The configuration of Init Containers trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsInitContainers {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// A list of init tasks to be executed with format `<name>;<container-image>;<container-command>`.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "initTasks")]
    pub init_tasks: Option<Vec<String>>,
    /// A list of sidecar tasks to be executed with format `<name>;<container-image>;<container-command>`.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "sideCarTasks")]
    pub side_car_tasks: Option<Vec<String>>,
}

/// The configuration of Istio trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsIstio {
    /// Configures a (comma-separated) list of CIDR subnets that should not be intercepted by the Istio proxy (`10.0.0.0/8,172.16.0.0/12,192.168.0.0/16` by default).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub allow: Option<String>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// Forces the value for labels `sidecar.istio.io/inject`. By default the label is set to `true` on deployment and not set on Knative Service.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub inject: Option<bool>,
}

/// The configuration of Jolokia trait.
/// 
/// Deprecated: use jvm.agent instead.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsJolokia {
    /// The PEM encoded CA certification file path, used to verify client certificates,
    /// applicable when `protocol` is `https` and `use-ssl-client-authentication` is `true`
    /// (default `/var/run/secrets/kubernetes.io/serviceaccount/service-ca.crt` for OpenShift).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "CACert")]
    pub ca_cert: Option<String>,
    /// The principal(s) which must be given in a client certificate to allow access to the Jolokia endpoint,
    /// applicable when `protocol` is `https` and `use-ssl-client-authentication` is `true`
    /// (default `clientPrincipal=cn=system:master-proxy`, `cn=hawtio-online.hawtio.svc` and `cn=fuse-console.fuse.svc` for OpenShift).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "clientPrincipal")]
    pub client_principal: Option<Vec<String>>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Listen for multicast requests (default `false`)
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "discoveryEnabled")]
    pub discovery_enabled: Option<bool>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// Mandate the client certificate contains a client flag in the extended key usage section,
    /// applicable when `protocol` is `https` and `use-ssl-client-authentication` is `true`
    /// (default `true` for OpenShift).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "extendedClientCheck")]
    pub extended_client_check: Option<bool>,
    /// The Host address to which the Jolokia agent should bind to. If `"\*"` or `"0.0.0.0"` is given,
    /// the servers binds to every network interface (default `"*"`).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub host: Option<String>,
    /// A list of additional Jolokia options as defined
    /// in <https://jolokia.org/reference/html/agents.html#agent-jvm-config[JVM> agent configuration options]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub options: Option<Vec<String>>,
    /// The password used for authentication, applicable when the `user` option is set.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub password: Option<String>,
    /// The Jolokia endpoint port (default `8778`).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub port: Option<i32>,
    /// The protocol to use, either `http` or `https` (default `https` for OpenShift)
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub protocol: Option<String>,
    /// Whether client certificates should be used for authentication (default `true` for OpenShift).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "useSSLClientAuthentication")]
    pub use_ssl_client_authentication: Option<bool>,
    /// The user to be used for authentication
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub user: Option<String>,
}

/// The configuration of JVM trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsJvm {
    /// A list of JVM agents to download and execute with format `<agent-name>;<agent-url>[;<jvm-agent-options>]`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub agents: Option<Vec<String>>,
    /// Optional base truststore to use as the starting point for adding certificates.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "baseTruststore")]
    pub base_truststore: Option<IntegrationProfileStatusTraitsJvmBaseTruststore>,
    /// Deprecated: Use CACertificates instead. Path to a PEM-encoded CA certificate file.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "caCert")]
    pub ca_cert: Option<String>,
    /// The path where the generated truststore will be mounted (default `/etc/camel/conf.d/_truststore`).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "caCertMountPath")]
    pub ca_cert_mount_path: Option<String>,
    /// Deprecated: Use CACertificates instead. Path to a file containing the truststore password.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "caCertPassword")]
    pub ca_cert_password: Option<String>,
    /// A list of CA certificates to import into the truststore. Certificates must be mounted via the mount trait.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "caCertificates")]
    pub ca_certificates: Option<Vec<IntegrationProfileStatusTraitsJvmCaCertificates>>,
    /// Additional JVM classpath (use `Linux` classpath separator)
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub classpath: Option<String>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Activates remote debugging, so that a debugger can be attached to the JVM, e.g., using port-forwarding
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub debug: Option<bool>,
    /// Transport address at which to listen for the newly launched JVM (default `*:5005`)
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "debugAddress")]
    pub debug_address: Option<String>,
    /// Suspends the target JVM immediately before the main class is loaded
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "debugSuspend")]
    pub debug_suspend: Option<bool>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// The Jar dependency which will run the application. Leave it empty for managed Integrations.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub jar: Option<String>,
    /// A list of JVM options
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub options: Option<Vec<String>>,
    /// Prints the command used the start the JVM in the container logs (default `true`).
    /// 
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "printCommand")]
    pub print_command: Option<bool>,
    /// Path to a file containing the password for the generated truststore. Required when using ca-certificates without base-truststore.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "truststorePasswordPath")]
    pub truststore_password_path: Option<String>,
}

/// Optional base truststore to use as the starting point for adding certificates.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsJvmBaseTruststore {
    /// Path to a file containing the password for the base truststore.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "passwordPath")]
    pub password_path: Option<String>,
    /// Path to the base truststore file.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "truststorePath")]
    pub truststore_path: Option<String>,
}

/// CACertConfig specifies a CA certificate to import into the truststore.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsJvmCaCertificates {
    /// Path to the PEM-encoded CA certificate file to import.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "certPath")]
    pub cert_path: Option<String>,
}

/// The configuration of Kamelets trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsKamelets {
    /// Automatically inject all referenced Kamelets and their default configuration (enabled by default)
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub auto: Option<bool>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// Comma separated list of Kamelet names to load into the current integration
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub list: Option<String>,
    /// The directory where the application mounts and reads Kamelet spec (default `/etc/camel/kamelets`)
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "mountPoint")]
    pub mount_point: Option<String>,
}

/// The configuration of Keda trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsKeda {
    /// Automatically discover KEDA triggers from Camel component URIs.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub auto: Option<bool>,
    /// Additional metadata to merge into auto-discovered triggers. Keys are trigger types (e.g., "kafka"),
    /// values are maps of metadata key-value pairs to merge (e.g., {"lagThreshold": "10"}).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "autoMetadata")]
    pub auto_metadata: Option<BTreeMap<String, BTreeMap<String, String>>>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// The wait period between the last active trigger reported and scaling the resource back to 0.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "cooldownPeriod")]
    pub cooldown_period: Option<i32>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// Enabling this property allows KEDA to scale the resource down to the specified number of replicas.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "idleReplicaCount")]
    pub idle_replica_count: Option<i32>,
    /// Maximum number of replicas.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "maxReplicaCount")]
    pub max_replica_count: Option<i32>,
    /// Minimum number of replicas.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "minReplicaCount")]
    pub min_replica_count: Option<i32>,
    /// Interval (seconds) to check each trigger on.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "pollingInterval")]
    pub polling_interval: Option<i32>,
    /// Definition of triggers according to the KEDA format. Each trigger must contain `type` field corresponding
    /// to the name of a KEDA autoscaler and a key/value map named `metadata` containing specific trigger options
    /// and optionally a mapping of secrets, used by Keda operator to poll resources according to the autoscaler type.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub triggers: Option<Vec<IntegrationProfileStatusTraitsKedaTriggers>>,
}

#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsKedaTriggers {
    /// The trigger metadata (see Keda documentation to learn how to fill for each type).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub metadata: Option<BTreeMap<String, String>>,
    /// The secrets mapping to use. Keda allows the possibility to use values coming from different secrets.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub secrets: Option<Vec<IntegrationProfileStatusTraitsKedaTriggersSecrets>>,
    /// The autoscaler type.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "type")]
    pub r#type: Option<String>,
}

#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsKedaTriggersSecrets {
    /// The mapping to use for this secret (eg, `database-secret-key:keda-secret-key`)
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub mapping: Option<BTreeMap<String, String>>,
    /// The name of the secret to use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
}

/// The configuration of Knative trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsKnative {
    /// Enable automatic discovery of all trait properties.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub auto: Option<bool>,
    /// List of channels used as destination of integration routes.
    /// Can contain simple channel names or full Camel URIs.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "channelSinks")]
    pub channel_sinks: Option<Vec<String>>,
    /// List of channels used as source of integration routes.
    /// Can contain simple channel names or full Camel URIs.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "channelSources")]
    pub channel_sources: Option<Vec<String>>,
    /// Can be used to inject a Knative complete configuration in JSON format.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub config: Option<String>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// List of endpoints used as destination of integration routes.
    /// Can contain simple endpoint names or full Camel URIs.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "endpointSinks")]
    pub endpoint_sinks: Option<Vec<String>>,
    /// List of channels used as source of integration routes.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "endpointSources")]
    pub endpoint_sources: Option<Vec<String>>,
    /// List of event types that the integration will produce.
    /// Can contain simple event types or full Camel URIs (to use a specific broker).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "eventSinks")]
    pub event_sinks: Option<Vec<String>>,
    /// List of event types that the integration will be subscribed to.
    /// Can contain simple event types or full Camel URIs (to use a specific broker different from "default").
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "eventSources")]
    pub event_sources: Option<Vec<String>>,
    /// Enables the default filtering for the Knative trigger using the event type
    /// If this is true, the created Knative trigger uses the event type as a filter on the event stream when no other filter criteria is given. (default: true)
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "filterEventType")]
    pub filter_event_type: Option<bool>,
    /// Enables filtering on events based on the header "ce-knativehistory". Since this header has been removed in newer versions of
    /// Knative, filtering is disabled by default.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "filterSourceChannels")]
    pub filter_source_channels: Option<bool>,
    /// Sets filter attributes on the event stream (such as event type, source, subject and so on).
    /// A list of key-value pairs that represent filter attributes and its values.
    /// The syntax is KEY=VALUE, e.g., `source="my.source"`.
    /// Filter attributes get set on the Knative trigger that is being created as part of this integration.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub filters: Option<Vec<String>>,
    /// Enables the camel-k-operator to set the "bindings.knative.dev/include=true" label to the namespace
    /// As Knative requires this label to perform injection of K_SINK URL into the service.
    /// If this is false, the integration pod may start and fail, read the SinkBinding Knative documentation. (default: true)
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "namespaceLabel")]
    pub namespace_label: Option<bool>,
    /// Allows binding the integration to a sink via a Knative SinkBinding resource.
    /// This can be used when the integration targets a single sink.
    /// It's enabled by default when the integration targets a single sink
    /// (except when the integration is owned by a Knative source).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "sinkBinding")]
    pub sink_binding: Option<bool>,
}

/// The configuration of Knative Service trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsKnativeService {
    /// The annotations added to route.
    /// This can be used to set knative service specific annotations
    /// CLI usage example: -t "knative-service.annotations.'haproxy.router.openshift.io/balance'=true"
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub annotations: Option<BTreeMap<String, String>>,
    /// Automatically deploy the integration as Knative service when all conditions hold:
    /// 
    /// * Integration is using the Knative profile
    /// * All routes are either starting from an HTTP based consumer or a passive consumer (e.g. `direct` is a passive consumer)
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub auto: Option<bool>,
    /// Configures the Knative autoscaling metric property (e.g. to set `concurrency` based or `cpu` based autoscaling).
    /// 
    /// Refer to the Knative documentation for more information.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "autoscalingMetric")]
    pub autoscaling_metric: Option<String>,
    /// Sets the allowed concurrency level or CPU percentage (depending on the autoscaling metric) for each Pod.
    /// 
    /// Refer to the Knative documentation for more information.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "autoscalingTarget")]
    pub autoscaling_target: Option<i64>,
    /// Configures the Knative autoscaling class property (e.g. to set `hpa.autoscaling.knative.dev` or `kpa.autoscaling.knative.dev` autoscaling).
    /// 
    /// Refer to the Knative documentation for more information.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub class: Option<IntegrationProfileStatusTraitsKnativeServiceClass>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// An upper bound for the number of Pods that can be running in parallel for the integration.
    /// Knative has its own cap value that depends on the installation.
    /// 
    /// Refer to the Knative documentation for more information.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "maxScale")]
    pub max_scale: Option<i64>,
    /// The minimum number of Pods that should be running at any time for the integration. It's **zero** by default, meaning that
    /// the integration is scaled down to zero when not used for a configured amount of time.
    /// 
    /// Refer to the Knative documentation for more information.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "minScale")]
    pub min_scale: Option<i64>,
    /// Enables to gradually shift traffic to the latest Revision and sets the rollout duration.
    /// It's disabled by default and must be expressed as a Golang `time.Duration` string representation,
    /// rounded to a second precision.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "rolloutDuration")]
    pub rollout_duration: Option<String>,
    /// The maximum duration in seconds that the request instance is allowed to respond to a request.
    /// This field propagates to the integration pod's terminationGracePeriodSeconds
    /// 
    /// Refer to the Knative documentation for more information.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "timeoutSeconds")]
    pub timeout_seconds: Option<i64>,
    /// Setting `cluster-local`, Knative service becomes a private service.
    /// Specifically, this option applies the `networking.knative.dev/visibility` label to Knative service.
    /// 
    /// Refer to the Knative documentation for more information.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub visibility: Option<IntegrationProfileStatusTraitsKnativeServiceVisibility>,
}

/// The configuration of Knative Service trait
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub enum IntegrationProfileStatusTraitsKnativeServiceClass {
    #[serde(rename = "kpa.autoscaling.knative.dev")]
    KpaAutoscalingKnativeDev,
    #[serde(rename = "hpa.autoscaling.knative.dev")]
    HpaAutoscalingKnativeDev,
}

/// The configuration of Knative Service trait
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub enum IntegrationProfileStatusTraitsKnativeServiceVisibility {
    #[serde(rename = "cluster-local")]
    ClusterLocal,
}

/// The configuration of Logging trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsLogging {
    /// Colorize the log output
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub color: Option<bool>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// Logs message format
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub format: Option<String>,
    /// Output the logs in JSON
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub json: Option<bool>,
    /// Enable "pretty printing" of the JSON logs
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "jsonPrettyPrint")]
    pub json_pretty_print: Option<bool>,
    /// Adjust the logging level (defaults to `INFO`)
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub level: Option<IntegrationProfileStatusTraitsLoggingLevel>,
}

/// The configuration of Logging trait
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub enum IntegrationProfileStatusTraitsLoggingLevel {
    #[serde(rename = "FATAL")]
    Fatal,
    #[serde(rename = "WARN")]
    Warn,
    #[serde(rename = "INFO")]
    Info,
    #[serde(rename = "DEBUG")]
    Debug,
    #[serde(rename = "TRACE")]
    Trace,
}

/// The configuration of Master trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsMaster {
    /// Enables automatic configuration of the trait.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub auto: Option<bool>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// When this flag is active, the operator analyzes the source code to add dependencies required by delegate endpoints.
    /// E.g. when using `master:lockname:timer`, then `camel:timer` is automatically added to the set of dependencies.
    /// It's enabled by default.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "includeDelegateDependencies")]
    pub include_delegate_dependencies: Option<bool>,
    /// Label that will be used to identify all pods contending the lock. Defaults to "camel.apache.org/integration".
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "labelKey")]
    pub label_key: Option<String>,
    /// Label value that will be used to identify all pods contending the lock. Defaults to the integration name.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "labelValue")]
    pub label_value: Option<String>,
    /// Name of the configmap that will be used to store the lock. Defaults to "<integration-name>-lock".
    /// Name of the configmap/lease resource that will be used to store the lock. Defaults to "<integration-name>-lock".
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "resourceName")]
    pub resource_name: Option<String>,
    /// Type of Kubernetes resource to use for locking ("ConfigMap" or "Lease"). Defaults to "Lease".
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "resourceType")]
    pub resource_type: Option<String>,
}

/// The configuration of Mount trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsMount {
    /// A list of configuration pointing to configmap/secret.
    /// The configuration are expected to be UTF-8 resources as they are processed by runtime Camel Context and tried to be parsed as property files.
    /// They are also made available on the classpath in order to ease their usage directly from the Route.
    /// Syntax: [configmap|secret]:name[/key], where name represents the resource name and key optionally represents the resource key to be filtered
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configs: Option<Vec<String>>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// A list of EmptyDir volumes to be mounted. An optional size limit may be configured (default 500Mi).
    /// Syntax: name:/container/path[:sizeLimit]
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "emptyDirs")]
    pub empty_dirs: Option<Vec<String>>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// Enable "hot reload" when a secret/configmap mounted is edited (default `false`). The configmap/secret must be
    /// marked with `camel.apache.org/integration` label to be taken in account. The resource will be watched for any kind change, also for
    /// changes in metadata.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "hotReload")]
    pub hot_reload: Option<bool>,
    /// A list of resources (text or binary content) pointing to configmap/secret.
    /// The resources are expected to be any resource type (text or binary content).
    /// The destination path can be either a default location or any path specified by the user.
    /// Syntax: [configmap|secret]:name[/key][@path], where name represents the resource name, key optionally represents the resource key to be filtered and path represents the destination path
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub resources: Option<Vec<String>>,
    /// Deprecated: no longer available since version 2.5.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "scanKameletsImplicitLabelSecrets")]
    pub scan_kamelets_implicit_label_secrets: Option<bool>,
    /// A list of Persistent Volume Claims to be mounted. Syntax: [pvcname:/container/path]. If the PVC is not found, the Integration fails.
    /// You can use the syntax [pvcname:/container/path:size:accessMode<:storageClass>] to create a dynamic PVC based on the Storage Class provided
    /// or the default cluster Storage Class. However, if the PVC exists, the operator would mount it.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub volumes: Option<Vec<String>>,
}

/// The configuration of OpenAPI trait.
/// 
/// Deprecated: no longer in use.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsOpenapi {
    /// The configmaps holding the spec of the OpenAPI (compatible with > 3.0 spec only).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configmaps: Option<Vec<String>>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
}

/// The configuration of Owner trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsOwner {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// The set of annotations to be transferred
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "targetAnnotations")]
    pub target_annotations: Option<Vec<String>>,
    /// The set of labels to be transferred
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "targetLabels")]
    pub target_labels: Option<Vec<String>>,
}

/// The configuration of PDB trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsPdb {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// The number of pods for the Integration that can be unavailable after an eviction.
    /// It can be either an absolute number or a percentage (default `1` if `min-available` is also not set).
    /// Only one of `max-unavailable` and `min-available` can be specified.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "maxUnavailable")]
    pub max_unavailable: Option<String>,
    /// The number of pods for the Integration that must still be available after an eviction.
    /// It can be either an absolute number or a percentage.
    /// Only one of `min-available` and `max-unavailable` can be specified.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "minAvailable")]
    pub min_available: Option<String>,
}

/// The configuration of Platform trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsPlatform {
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub auto: Option<bool>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "createDefault")]
    pub create_default: Option<bool>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub global: Option<bool>,
}

/// The configuration of Pod trait.
/// 
/// Deprecated: use init-containers instead.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsPod {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
}

/// The configuration of Prometheus trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsPrometheus {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// Whether a `PodMonitor` resource is created (default `true`).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "podMonitor")]
    pub pod_monitor: Option<bool>,
    /// The `PodMonitor` resource labels, applicable when `pod-monitor` is `true`.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "podMonitorLabels")]
    pub pod_monitor_labels: Option<Vec<String>>,
}

/// The configuration of Pull Secret trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsPullSecret {
    /// Automatically configures the platform registry secret on the pod if it is of type `kubernetes.io/dockerconfigjson`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub auto: Option<bool>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// When using a global operator with a shared platform, this enables delegation of the `system:image-puller`
    /// cluster role on the operator namespace to the integration service account.
    /// 
    /// Deprecated: may be removed in future releases.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "imagePullerDelegation")]
    pub image_puller_delegation: Option<bool>,
    /// The pull secret name to set on the Pod. If left empty this is automatically taken from the platform registry configuration.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "secretName")]
    pub secret_name: Option<String>,
}

/// The configuration of Quarkus trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsQuarkus {
    /// The Quarkus mode to run: either `jvm` or `native` (default `jvm`).
    /// In case both `jvm` and `native` are specified, two `IntegrationKit` resources are created,
    /// with the `native` kit having precedence over the `jvm` one once ready.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "buildMode")]
    pub build_mode: Option<Vec<String>>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// The base image to use when running a native build (default `quay.io/quarkus/quarkus-micro-image:2.0`)
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "nativeBaseImage")]
    pub native_base_image: Option<String>,
    /// The image containing the tooling required for a native build (by default it will use the one provided in the runtime catalog)
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "nativeBuilderImage")]
    pub native_builder_image: Option<String>,
    /// The Quarkus package types, `fast-jar` or `native` (default `fast-jar`).
    /// In case both `fast-jar` and `native` are specified, two `IntegrationKit` resources are created,
    /// with the native kit having precedence over the `fast-jar` one once ready.
    /// The order influences the resolution of the current kit for the integration.
    /// The kit corresponding to the first package type will be assigned to the
    /// integration in case no existing kit that matches the integration exists.
    /// 
    /// Deprecated: use `build-mode` instead.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "packageTypes")]
    pub package_types: Option<Vec<String>>,
}

/// The configuration of Registry trait (support removed since version 2.5.0).
/// 
/// Deprecated: use jvm trait or read documentation.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsRegistry {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
}

/// The configuration of Route trait.
/// 
/// Deprecated: use ingress instead.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsRoute {
    /// The annotations added to route.
    /// This can be used to set route specific annotations
    /// For annotations options see <https://docs.openshift.com/container-platform/3.11/architecture/networking/routes.html#route-specific-annotations>
    /// CLI usage example: -t "route.annotations.'haproxy.router.openshift.io/balance'=true"
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub annotations: Option<BTreeMap<String, String>>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// To configure the host exposed by the route.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub host: Option<String>,
    /// The TLS CA certificate contents.
    /// 
    /// Refer to the OpenShift route documentation for additional information.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "tlsCACertificate")]
    pub tls_ca_certificate: Option<String>,
    /// The secret name and key reference to the TLS CA certificate. The format is "secret-name[/key-name]", the value represents the secret name, if there is only one key in the secret it will be read, otherwise you can set a key name separated with a "/".
    /// 
    /// Refer to the OpenShift route documentation for additional information.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "tlsCACertificateSecret")]
    pub tls_ca_certificate_secret: Option<String>,
    /// The TLS certificate contents.
    /// 
    /// Refer to the OpenShift route documentation for additional information.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "tlsCertificate")]
    pub tls_certificate: Option<String>,
    /// The secret name and key reference to the TLS certificate. The format is "secret-name[/key-name]", the value represents the secret name, if there is only one key in the secret it will be read, otherwise you can set a key name separated with a "/".
    /// 
    /// Refer to the OpenShift route documentation for additional information.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "tlsCertificateSecret")]
    pub tls_certificate_secret: Option<String>,
    /// The destination CA certificate provides the contents of the ca certificate of the final destination.  When using reencrypt
    /// termination this file should be provided in order to have routers use it for health checks on the secure connection.
    /// If this field is not specified, the router may provide its own destination CA and perform hostname validation using
    /// the short service name (service.namespace.svc), which allows infrastructure generated certificates to automatically
    /// verify.
    /// 
    /// Refer to the OpenShift route documentation for additional information.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "tlsDestinationCACertificate")]
    pub tls_destination_ca_certificate: Option<String>,
    /// The secret name and key reference to the destination CA certificate. The format is "secret-name[/key-name]", the value represents the secret name, if there is only one key in the secret it will be read, otherwise you can set a key name separated with a "/".
    /// 
    /// Refer to the OpenShift route documentation for additional information.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "tlsDestinationCACertificateSecret")]
    pub tls_destination_ca_certificate_secret: Option<String>,
    /// To configure how to deal with insecure traffic, e.g. `Allow`, `Disable` or `Redirect` traffic.
    /// 
    /// Refer to the OpenShift route documentation for additional information.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "tlsInsecureEdgeTerminationPolicy")]
    pub tls_insecure_edge_termination_policy: Option<IntegrationProfileStatusTraitsRouteTlsInsecureEdgeTerminationPolicy>,
    /// The TLS certificate key contents.
    /// 
    /// Refer to the OpenShift route documentation for additional information.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "tlsKey")]
    pub tls_key: Option<String>,
    /// The secret name and key reference to the TLS certificate key. The format is "secret-name[/key-name]", the value represents the secret name, if there is only one key in the secret it will be read, otherwise you can set a key name separated with a "/".
    /// 
    /// Refer to the OpenShift route documentation for additional information.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "tlsKeySecret")]
    pub tls_key_secret: Option<String>,
    /// The TLS termination type, like `edge`, `passthrough` or `reencrypt`.
    /// 
    /// Refer to the OpenShift route documentation for additional information.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "tlsTermination")]
    pub tls_termination: Option<IntegrationProfileStatusTraitsRouteTlsTermination>,
}

/// The configuration of Route trait.
/// 
/// Deprecated: use ingress instead.
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub enum IntegrationProfileStatusTraitsRouteTlsInsecureEdgeTerminationPolicy {
    None,
    Allow,
    Redirect,
}

/// The configuration of Route trait.
/// 
/// Deprecated: use ingress instead.
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub enum IntegrationProfileStatusTraitsRouteTlsTermination {
    #[serde(rename = "edge")]
    Edge,
    #[serde(rename = "reencrypt")]
    Reencrypt,
    #[serde(rename = "passthrough")]
    Passthrough,
}

/// The configuration of Security Context trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsSecurityContext {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Deprecated: no longer in use.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// Security Context RunAsNonRoot configuration (default true).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "runAsNonRoot")]
    pub run_as_non_root: Option<bool>,
    /// Security Context RunAsUser configuration (default user 1000): this value is automatically retrieved in Openshift clusters when not explicitly set.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "runAsUser")]
    pub run_as_user: Option<i64>,
    /// Security Context SeccompProfileType configuration (default RuntimeDefault).
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "seccompProfileType")]
    pub seccomp_profile_type: Option<IntegrationProfileStatusTraitsSecurityContextSeccompProfileType>,
}

/// The configuration of Security Context trait
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub enum IntegrationProfileStatusTraitsSecurityContextSeccompProfileType {
    Unconfined,
    RuntimeDefault,
}

/// The configuration of Service trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsService {
    /// The annotations added to the Service object.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub annotations: Option<BTreeMap<String, String>>,
    /// To automatically detect from the code if a Service needs to be created.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub auto: Option<bool>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// The labels added to the Service object.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub labels: Option<BTreeMap<String, String>>,
    /// Enable Service to be exposed as NodePort (default `false`).
    /// 
    /// Deprecated: Use service type instead.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "nodePort")]
    pub node_port: Option<bool>,
    /// List of container ports available in the container to expose
    /// (syntax: <port-name>;<port-number>;<container-port-number>[;<port-protocol]).
    /// When omitted, `port-protocol` (admitted values `TCP`, `UDP` or `SCTP`) is `TCP`.
    /// Don't use this for the primary http managed port (which is managed by container trait).
    /// Don't use in Knative based environments.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub ports: Option<Vec<String>>,
    /// The type of service to be used, either 'ClusterIP', 'NodePort' or 'LoadBalancer'.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "type")]
    pub r#type: Option<IntegrationProfileStatusTraitsServiceType>,
}

/// The configuration of Service trait
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub enum IntegrationProfileStatusTraitsServiceType {
    #[serde(rename = "ClusterIP")]
    ClusterIp,
    NodePort,
    LoadBalancer,
}

/// The configuration of Service Binding trait.
/// 
/// Deprecated: no longer in use.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsServiceBinding {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// List of Services in the form [[apigroup/]version:]kind:[namespace/]name
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub services: Option<Vec<String>>,
}

/// Deprecated: no longer in use.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsStrimzi {
    /// TraitConfiguration parameters configuration
    pub configuration: BTreeMap<String, serde_json::Value>,
}

/// The configuration of Telemetry trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsTelemetry {
    /// Enables automatic configuration of the trait, including automatic discovery of the telemetry endpoint.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub auto: Option<bool>,
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// The target endpoint of the Telemetry service (automatically discovered by default)
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub endpoint: Option<String>,
    /// The sampler of the telemetry used for tracing (default "on")
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub sampler: Option<String>,
    /// The sampler of the telemetry used for tracing is parent based (default "true")
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "sampler-parent-based")]
    pub sampler_parent_based: Option<bool>,
    /// The sampler ratio of the telemetry used for tracing
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "sampler-ratio")]
    pub sampler_ratio: Option<String>,
    /// The name of the service that publishes telemetry data (defaults to the integration name)
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "serviceName")]
    pub service_name: Option<String>,
}

/// The configuration of Toleration trait
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsToleration {
    /// Legacy trait configuration parameters.
    /// 
    /// Deprecated: for backward compatibility.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    /// Can be used to enable or disable a trait. All traits share this common property.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// The list of taints to tolerate, in the form `Key[=Value]:Effect[:Seconds]`
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub taints: Option<Vec<String>>,
}

/// Deprecated: no longer in use.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct IntegrationProfileStatusTraitsTracing {
    /// TraitConfiguration parameters configuration
    pub configuration: BTreeMap<String, serde_json::Value>,
}