Update examples based on Kubernetes v1.27 changes
This commit is contained in:
@@ -93,6 +93,7 @@ list all pods:
|
||||
0, /* limit */
|
||||
NULL, /* resourceVersion */
|
||||
NULL, /* resourceVersionMatch */
|
||||
0, /* sendInitialEvents */
|
||||
0, /* timeoutSeconds */
|
||||
0 /* watch */
|
||||
);
|
||||
@@ -138,6 +139,7 @@ list all pods in cluster:
|
||||
0, /* limit */
|
||||
NULL, /* resourceVersion */
|
||||
NULL, /* resourceVersionMatch */
|
||||
0, /* sendInitialEvents */
|
||||
0, /* timeoutSeconds */
|
||||
0 /* watch */
|
||||
);
|
||||
|
||||
@@ -17,6 +17,7 @@ void list_pod(apiClient_t * apiClient)
|
||||
0, /* limit */
|
||||
NULL, /* resourceVersion */
|
||||
NULL, /* resourceVersionMatch */
|
||||
0, /* sendInitialEvents */
|
||||
0, /* timeoutSeconds */
|
||||
0 /* watch */
|
||||
);
|
||||
|
||||
@@ -79,6 +79,7 @@ void list_configmap(apiClient_t * apiClient, char *namespace_)
|
||||
0, // int limit
|
||||
NULL, // char * resourceVersion
|
||||
NULL, // char * resourceVersionMatch
|
||||
0, // sendInitialEvents
|
||||
0, // int timeoutSeconds
|
||||
0 //int watch
|
||||
);
|
||||
|
||||
@@ -17,6 +17,7 @@ void list_pod(apiClient_t * apiClient)
|
||||
0, /* limit */
|
||||
NULL, /* resourceVersion */
|
||||
NULL, /* resourceVersionMatch */
|
||||
0, /* sendInitialEvents */
|
||||
0, /* timeoutSeconds */
|
||||
0 /* watch */
|
||||
);
|
||||
|
||||
@@ -17,6 +17,7 @@ void list_event(apiClient_t * apiClient)
|
||||
0, /* limit */
|
||||
NULL, /* resourceVersion */
|
||||
NULL, /* resourceVersionMatch */
|
||||
0, /* sendInitialEvents */
|
||||
0, /* timeoutSeconds */
|
||||
0 /* watch */
|
||||
);
|
||||
|
||||
@@ -14,6 +14,7 @@ void list_pod(apiClient_t * apiClient)
|
||||
0, /* limit */
|
||||
NULL, /* resourceVersion */
|
||||
NULL, /* resourceVersionMatch */
|
||||
0, /* sendInitialEvents */
|
||||
0, /* timeoutSeconds */
|
||||
0 /* watch */
|
||||
);
|
||||
|
||||
@@ -18,6 +18,7 @@ void list_pod(apiClient_t * apiClient)
|
||||
0, /* limit */
|
||||
NULL, /* resourceVersion */
|
||||
NULL, /* resourceVersionMatch */
|
||||
0, /* sendInitialEvents */
|
||||
0, /* timeoutSeconds */
|
||||
0 /* watch */
|
||||
);
|
||||
|
||||
@@ -14,6 +14,7 @@ void list_pod(apiClient_t * apiClient)
|
||||
0, /* limit */
|
||||
NULL, /* resourceVersion */
|
||||
NULL, /* resourceVersionMatch */
|
||||
0, /* sendInitialEvents */
|
||||
0, /* timeoutSeconds */
|
||||
0 /* watch */
|
||||
);
|
||||
|
||||
@@ -17,8 +17,9 @@ void list_secret(apiClient_t * apiClient)
|
||||
0, // int limit
|
||||
NULL, // char * resourceVersion
|
||||
NULL, // char * resourceVersionMatch
|
||||
0, // sendInitialEvents
|
||||
0, // int timeoutSeconds
|
||||
0 //int watch
|
||||
0 // int watch
|
||||
);
|
||||
|
||||
printf("The return code of HTTP request=%ld\n", apiClient->response_code);
|
||||
|
||||
@@ -101,6 +101,7 @@ void *watch_pod_thread_func(void *arg)
|
||||
0, /* limit */
|
||||
NULL, /* resourceVersion */
|
||||
NULL, /* resourceVersionMatch */
|
||||
0, /* sendInitialEvents */
|
||||
0, /* timeoutSeconds
|
||||
Setting the value to 0 means the watch never stops.
|
||||
*/
|
||||
|
||||
@@ -81,6 +81,7 @@ void watch_list_pod(apiClient_t * apiClient)
|
||||
0, /* limit */
|
||||
NULL, /* resourceVersion */
|
||||
NULL, /* resourceVersionMatch */
|
||||
0, /* sendInitialEvents */
|
||||
0, /* timeoutSeconds */
|
||||
1 /* watch */
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user