@@ -314,7 +314,8 @@ public static boolean createDeployment(V1Deployment deployment) throws ApiExcept
314
314
deployment , // V1Deployment | body of the V1Deployment containing deployment data
315
315
PRETTY , // String | pretty print output.
316
316
null , // String | dry run or permanent change
317
- null // String | field manager who is making the change
317
+ null , // String | field manager who is making the change
318
+ null // String | field validation
318
319
);
319
320
if (createdDeployment != null ) {
320
321
status = true ;
@@ -463,7 +464,7 @@ public static String getPodLog(String name,
463
464
public static V1Pod createPod (String namespace , V1Pod podBody ) throws ApiException {
464
465
V1Pod pod ;
465
466
try {
466
- pod = coreV1Api .createNamespacedPod (namespace , podBody , null , null , null );
467
+ pod = coreV1Api .createNamespacedPod (namespace , podBody , null , null , null , null );
467
468
} catch (ApiException apex ) {
468
469
getLogger ().severe (apex .getResponseBody ());
469
470
throw apex ;
@@ -832,7 +833,8 @@ public static boolean createNamespace(String name) throws ApiException {
832
833
namespace , // name of the Namespace
833
834
PRETTY , // pretty print output
834
835
null , // indicates that modifications should not be persisted
835
- null // name associated with the actor or entity that is making these changes
836
+ null , // name associated with the actor or entity that is making these changes
837
+ null // field validation
836
838
);
837
839
} catch (ApiException apex ) {
838
840
getLogger ().severe (apex .getResponseBody ());
@@ -860,7 +862,8 @@ public static boolean createNamespace(String name, Map<String, String> labels) t
860
862
namespace , // name of the Namespace
861
863
PRETTY , // pretty print output
862
864
null , // indicates that modifications should not be persisted
863
- null // name associated with the actor or entity that is making these changes
865
+ null , // name associated with the actor or entity that is making these changes
866
+ null // field validation
864
867
);
865
868
} catch (ApiException apex ) {
866
869
getLogger ().severe (apex .getResponseBody ());
@@ -889,7 +892,8 @@ public static boolean createNamespace(V1Namespace namespace) throws ApiException
889
892
namespace , // V1Namespace configuration data object
890
893
PRETTY , // pretty print output
891
894
null , // indicates that modifications should not be persisted
892
- null // name associated with the actor or entity that is making these changes
895
+ null , // name associated with the actor or entity that is making these changes
896
+ null // field validation
893
897
);
894
898
} catch (ApiException apex ) {
895
899
getLogger ().severe (apex .getResponseBody ());
@@ -913,7 +917,8 @@ public static void replaceNamespace(V1Namespace ns) throws ApiException {
913
917
ns , // V1Namespace object body
914
918
PRETTY , // pretty print the output
915
919
null , // dry run or changes need to be permanent
916
- null // field manager
920
+ null , // field manager
921
+ null // field validation
917
922
);
918
923
} catch (ApiException ex ) {
919
924
getLogger ().severe (ex .getResponseBody ());
@@ -1419,6 +1424,7 @@ public static boolean patchDeployment(String deploymentName, String namespace,
1419
1424
null ,
1420
1425
null , // field-manager is optional
1421
1426
null ,
1427
+ null ,
1422
1428
null ),
1423
1429
patchFormat ,
1424
1430
apiClient );
@@ -1493,7 +1499,8 @@ public static boolean createConfigMap(V1ConfigMap configMap) throws ApiException
1493
1499
configMap , // config map configuration data
1494
1500
PRETTY , // pretty print output
1495
1501
null , // indicates that modifications should not be persisted
1496
- null // name associated with the actor or entity that is making these changes
1502
+ null , // name associated with the actor or entity that is making these changes
1503
+ null // field validation
1497
1504
);
1498
1505
} catch (ApiException apex ) {
1499
1506
getLogger ().severe (apex .getResponseBody ());
@@ -1538,7 +1545,8 @@ public static boolean replaceConfigMap(V1ConfigMap configMap) throws ApiExceptio
1538
1545
configMap , // config map configuration data
1539
1546
PRETTY , // pretty print output
1540
1547
null , // indicates that modifications should not be persisted
1541
- null // name associated with the actor or entity that is making these changes
1548
+ null , // name associated with the actor or entity that is making these changes
1549
+ null // field validation
1542
1550
);
1543
1551
assertNotNull (cm , "cm replace failed " );
1544
1552
} catch (ApiException apex ) {
@@ -1639,7 +1647,8 @@ public static boolean createSecret(V1Secret secret) throws ApiException {
1639
1647
secret , // secret configuration data
1640
1648
PRETTY , // pretty print output
1641
1649
null , // indicates that modifications should not be persisted
1642
- null // fieldManager is a name associated with the actor
1650
+ null , // fieldManager is a name associated with the actor
1651
+ null // field validation
1643
1652
);
1644
1653
} catch (ApiException apex ) {
1645
1654
getLogger ().severe (apex .getResponseBody ());
@@ -1743,7 +1752,8 @@ public static boolean createPv(V1PersistentVolume persistentVolume) throws ApiEx
1743
1752
persistentVolume , // persistent volume configuration data
1744
1753
PRETTY , // pretty print output
1745
1754
null , // indicates that modifications should not be persisted
1746
- null // fieldManager is a name associated with the actor
1755
+ null , // fieldManager is a name associated with the actor
1756
+ null // field validation
1747
1757
);
1748
1758
} catch (ApiException apex ) {
1749
1759
getLogger ().severe (apex .getResponseBody ());
@@ -1786,7 +1796,8 @@ public static boolean createPvc(V1PersistentVolumeClaim persistentVolumeClaim) t
1786
1796
persistentVolumeClaim , // persistent volume claim configuration data
1787
1797
PRETTY , // pretty print output
1788
1798
null , // indicates that modifications should not be persisted
1789
- null // fieldManager is a name associated with the actor
1799
+ null , // fieldManager is a name associated with the actor
1800
+ null // field validation
1790
1801
);
1791
1802
} catch (ApiException apex ) {
1792
1803
getLogger ().severe (apex .getResponseBody ());
@@ -1973,7 +1984,8 @@ public static V1ServiceAccount createServiceAccount(V1ServiceAccount serviceAcco
1973
1984
serviceAccount , // service account configuration data
1974
1985
PRETTY , // pretty print output
1975
1986
null , // indicates that modifications should not be persisted
1976
- null // fieldManager is a name associated with the actor
1987
+ null , // fieldManager is a name associated with the actor
1988
+ null // field validation
1977
1989
);
1978
1990
} catch (ApiException apex ) {
1979
1991
getLogger ().severe (apex .getResponseBody ());
@@ -2061,7 +2073,8 @@ public static boolean createService(V1Service service) throws ApiException {
2061
2073
service , // service configuration data
2062
2074
PRETTY , // pretty print output
2063
2075
null , // indicates that modifications should not be persisted
2064
- null // fieldManager is a name associated with the actor
2076
+ null , // fieldManager is a name associated with the actor
2077
+ null // field validation
2065
2078
);
2066
2079
} catch (ApiException apex ) {
2067
2080
getLogger ().severe (apex .getResponseBody ());
@@ -2213,7 +2226,8 @@ public static String createNamespacedJob(V1Job jobBody) throws ApiException {
2213
2226
jobBody , // V1Job | body of the V1Job containing job data
2214
2227
PRETTY , // String | pretty print output.
2215
2228
null , // String | dry run or permanent change
2216
- null // String | field manager who is making the change
2229
+ null , // String | field manager who is making the change
2230
+ null // field validation
2217
2231
);
2218
2232
if (createdJob != null ) {
2219
2233
name = createdJob .getMetadata ().getName ();
@@ -2378,7 +2392,8 @@ public static boolean createClusterRole(V1ClusterRole clusterRole) throws ApiExc
2378
2392
clusterRole , // cluster role configuration data
2379
2393
PRETTY , // pretty print output
2380
2394
null , // indicates that modifications should not be persisted
2381
- null // fieldManager is a name associated with the actor
2395
+ null , // fieldManager is a name associated with the actor
2396
+ null // field validation
2382
2397
);
2383
2398
} catch (ApiException apex ) {
2384
2399
getLogger ().severe (apex .getResponseBody ());
@@ -2402,7 +2417,8 @@ public static boolean createClusterRoleBinding(V1ClusterRoleBinding clusterRoleB
2402
2417
clusterRoleBinding , // role binding configuration data
2403
2418
PRETTY , // pretty print output
2404
2419
null , // indicates that modifications should not be persisted
2405
- null // fieldManager is a name associated with the actor
2420
+ null , // fieldManager is a name associated with the actor
2421
+ null // field validation
2406
2422
);
2407
2423
} catch (ApiException apex ) {
2408
2424
getLogger ().severe (apex .getResponseBody ());
@@ -2427,7 +2443,8 @@ public static boolean createNamespacedRoleBinding(String namespace, V1RoleBindin
2427
2443
roleBinding , // role binding configuration data
2428
2444
PRETTY , // pretty print output
2429
2445
null , // indicates that modifications should not be persisted
2430
- null // fieldManager is a name associated with the actor
2446
+ null , // fieldManager is a name associated with the actor
2447
+ null // field validation
2431
2448
);
2432
2449
} catch (ApiException apex ) {
2433
2450
getLogger ().severe (apex .getResponseBody ());
@@ -2899,7 +2916,8 @@ public static V1Ingress createIngress(String namespace, V1Ingress ingressBody)
2899
2916
ingressBody , // V1Ingress object, representing the ingress details
2900
2917
PRETTY , // pretty print output
2901
2918
null , // when present, indicates that modifications should not be persisted
2902
- null // a name associated with the actor or entity that is making these changes
2919
+ null , // a name associated with the actor or entity that is making these changes
2920
+ null // field validation
2903
2921
);
2904
2922
getLogger ().info ("Created ingress: {0}" , Yaml .dump (ingress ));
2905
2923
} catch (ApiException apex ) {
0 commit comments