Update examples based on Kubernetes v1.27 changes

This commit is contained in:
Hui Yu
2023-06-05 22:17:37 +08:00
parent f0ac80fb61
commit 776899647a
11 changed files with 13 additions and 1 deletions

View File

@@ -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 */
);

View File

@@ -17,6 +17,7 @@ void list_pod(apiClient_t * apiClient)
0, /* limit */
NULL, /* resourceVersion */
NULL, /* resourceVersionMatch */
0, /* sendInitialEvents */
0, /* timeoutSeconds */
0 /* watch */
);

View File

@@ -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
);

View File

@@ -17,6 +17,7 @@ void list_pod(apiClient_t * apiClient)
0, /* limit */
NULL, /* resourceVersion */
NULL, /* resourceVersionMatch */
0, /* sendInitialEvents */
0, /* timeoutSeconds */
0 /* watch */
);

View File

@@ -17,6 +17,7 @@ void list_event(apiClient_t * apiClient)
0, /* limit */
NULL, /* resourceVersion */
NULL, /* resourceVersionMatch */
0, /* sendInitialEvents */
0, /* timeoutSeconds */
0 /* watch */
);

View File

@@ -14,6 +14,7 @@ void list_pod(apiClient_t * apiClient)
0, /* limit */
NULL, /* resourceVersion */
NULL, /* resourceVersionMatch */
0, /* sendInitialEvents */
0, /* timeoutSeconds */
0 /* watch */
);

View File

@@ -18,6 +18,7 @@ void list_pod(apiClient_t * apiClient)
0, /* limit */
NULL, /* resourceVersion */
NULL, /* resourceVersionMatch */
0, /* sendInitialEvents */
0, /* timeoutSeconds */
0 /* watch */
);

View File

@@ -14,6 +14,7 @@ void list_pod(apiClient_t * apiClient)
0, /* limit */
NULL, /* resourceVersion */
NULL, /* resourceVersionMatch */
0, /* sendInitialEvents */
0, /* timeoutSeconds */
0 /* watch */
);

View File

@@ -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);

View File

@@ -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.
*/

View File

@@ -81,6 +81,7 @@ void watch_list_pod(apiClient_t * apiClient)
0, /* limit */
NULL, /* resourceVersion */
NULL, /* resourceVersionMatch */
0, /* sendInitialEvents */
0, /* timeoutSeconds */
1 /* watch */
);