@@ -314,7 +314,8 @@ public static boolean createDeployment(V1Deployment deployment) throws ApiExcept
314314 deployment , // V1Deployment | body of the V1Deployment containing deployment data
315315 PRETTY , // String | pretty print output.
316316 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
318319 );
319320 if (createdDeployment != null ) {
320321 status = true ;
@@ -463,7 +464,7 @@ public static String getPodLog(String name,
463464 public static V1Pod createPod (String namespace , V1Pod podBody ) throws ApiException {
464465 V1Pod pod ;
465466 try {
466- pod = coreV1Api .createNamespacedPod (namespace , podBody , null , null , null );
467+ pod = coreV1Api .createNamespacedPod (namespace , podBody , null , null , null , null );
467468 } catch (ApiException apex ) {
468469 getLogger ().severe (apex .getResponseBody ());
469470 throw apex ;
@@ -832,7 +833,8 @@ public static boolean createNamespace(String name) throws ApiException {
832833 namespace , // name of the Namespace
833834 PRETTY , // pretty print output
834835 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
836838 );
837839 } catch (ApiException apex ) {
838840 getLogger ().severe (apex .getResponseBody ());
@@ -860,7 +862,8 @@ public static boolean createNamespace(String name, Map<String, String> labels) t
860862 namespace , // name of the Namespace
861863 PRETTY , // pretty print output
862864 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
864867 );
865868 } catch (ApiException apex ) {
866869 getLogger ().severe (apex .getResponseBody ());
@@ -889,7 +892,8 @@ public static boolean createNamespace(V1Namespace namespace) throws ApiException
889892 namespace , // V1Namespace configuration data object
890893 PRETTY , // pretty print output
891894 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
893897 );
894898 } catch (ApiException apex ) {
895899 getLogger ().severe (apex .getResponseBody ());
@@ -913,7 +917,8 @@ public static void replaceNamespace(V1Namespace ns) throws ApiException {
913917 ns , // V1Namespace object body
914918 PRETTY , // pretty print the output
915919 null , // dry run or changes need to be permanent
916- null // field manager
920+ null , // field manager
921+ null // field validation
917922 );
918923 } catch (ApiException ex ) {
919924 getLogger ().severe (ex .getResponseBody ());
@@ -1419,6 +1424,7 @@ public static boolean patchDeployment(String deploymentName, String namespace,
14191424 null ,
14201425 null , // field-manager is optional
14211426 null ,
1427+ null ,
14221428 null ),
14231429 patchFormat ,
14241430 apiClient );
@@ -1493,7 +1499,8 @@ public static boolean createConfigMap(V1ConfigMap configMap) throws ApiException
14931499 configMap , // config map configuration data
14941500 PRETTY , // pretty print output
14951501 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
14971504 );
14981505 } catch (ApiException apex ) {
14991506 getLogger ().severe (apex .getResponseBody ());
@@ -1538,7 +1545,8 @@ public static boolean replaceConfigMap(V1ConfigMap configMap) throws ApiExceptio
15381545 configMap , // config map configuration data
15391546 PRETTY , // pretty print output
15401547 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
15421550 );
15431551 assertNotNull (cm , "cm replace failed " );
15441552 } catch (ApiException apex ) {
@@ -1639,7 +1647,8 @@ public static boolean createSecret(V1Secret secret) throws ApiException {
16391647 secret , // secret configuration data
16401648 PRETTY , // pretty print output
16411649 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
16431652 );
16441653 } catch (ApiException apex ) {
16451654 getLogger ().severe (apex .getResponseBody ());
@@ -1743,7 +1752,8 @@ public static boolean createPv(V1PersistentVolume persistentVolume) throws ApiEx
17431752 persistentVolume , // persistent volume configuration data
17441753 PRETTY , // pretty print output
17451754 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
17471757 );
17481758 } catch (ApiException apex ) {
17491759 getLogger ().severe (apex .getResponseBody ());
@@ -1786,7 +1796,8 @@ public static boolean createPvc(V1PersistentVolumeClaim persistentVolumeClaim) t
17861796 persistentVolumeClaim , // persistent volume claim configuration data
17871797 PRETTY , // pretty print output
17881798 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
17901801 );
17911802 } catch (ApiException apex ) {
17921803 getLogger ().severe (apex .getResponseBody ());
@@ -1973,7 +1984,8 @@ public static V1ServiceAccount createServiceAccount(V1ServiceAccount serviceAcco
19731984 serviceAccount , // service account configuration data
19741985 PRETTY , // pretty print output
19751986 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
19771989 );
19781990 } catch (ApiException apex ) {
19791991 getLogger ().severe (apex .getResponseBody ());
@@ -2061,7 +2073,8 @@ public static boolean createService(V1Service service) throws ApiException {
20612073 service , // service configuration data
20622074 PRETTY , // pretty print output
20632075 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
20652078 );
20662079 } catch (ApiException apex ) {
20672080 getLogger ().severe (apex .getResponseBody ());
@@ -2213,7 +2226,8 @@ public static String createNamespacedJob(V1Job jobBody) throws ApiException {
22132226 jobBody , // V1Job | body of the V1Job containing job data
22142227 PRETTY , // String | pretty print output.
22152228 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
22172231 );
22182232 if (createdJob != null ) {
22192233 name = createdJob .getMetadata ().getName ();
@@ -2378,7 +2392,8 @@ public static boolean createClusterRole(V1ClusterRole clusterRole) throws ApiExc
23782392 clusterRole , // cluster role configuration data
23792393 PRETTY , // pretty print output
23802394 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
23822397 );
23832398 } catch (ApiException apex ) {
23842399 getLogger ().severe (apex .getResponseBody ());
@@ -2402,7 +2417,8 @@ public static boolean createClusterRoleBinding(V1ClusterRoleBinding clusterRoleB
24022417 clusterRoleBinding , // role binding configuration data
24032418 PRETTY , // pretty print output
24042419 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
24062422 );
24072423 } catch (ApiException apex ) {
24082424 getLogger ().severe (apex .getResponseBody ());
@@ -2427,7 +2443,8 @@ public static boolean createNamespacedRoleBinding(String namespace, V1RoleBindin
24272443 roleBinding , // role binding configuration data
24282444 PRETTY , // pretty print output
24292445 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
24312448 );
24322449 } catch (ApiException apex ) {
24332450 getLogger ().severe (apex .getResponseBody ());
@@ -2899,7 +2916,8 @@ public static V1Ingress createIngress(String namespace, V1Ingress ingressBody)
28992916 ingressBody , // V1Ingress object, representing the ingress details
29002917 PRETTY , // pretty print output
29012918 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
29032921 );
29042922 getLogger ().info ("Created ingress: {0}" , Yaml .dump (ingress ));
29052923 } catch (ApiException apex ) {
0 commit comments