diff --git a/.gitignore b/.gitignore index 776e53c..d7deb13 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ kubernetes/build/ .vs/ +.vscode/ # Prerequisites *.d diff --git a/README.md b/README.md index 52793b3..17ec1ab 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,7 @@ list all pods: basePath = NULL; sslConfig = NULL; apiKeys = NULL; + apiClient_unsetupGlobalEnv(); ``` list all pods in cluster: @@ -121,6 +122,7 @@ list all pods in cluster: basePath = NULL; sslConfig = NULL; apiKeys = NULL; + apiClient_unsetupGlobalEnv(); ``` diff --git a/examples/auth_provider/main.c b/examples/auth_provider/main.c index 88b0fe5..fa65270 100644 --- a/examples/auth_provider/main.c +++ b/examples/auth_provider/main.c @@ -59,6 +59,7 @@ int main(int argc, char *argv[]) basePath = NULL; sslConfig = NULL; apiKeys = NULL; + apiClient_unsetupGlobalEnv(); return 0; } diff --git a/examples/create_pod/main.c b/examples/create_pod/main.c index 17a869b..e44dcf2 100644 --- a/examples/create_pod/main.c +++ b/examples/create_pod/main.c @@ -96,5 +96,7 @@ int main(int argc, char *argv[]) apiClient_free(k8sApiClient); k8sApiClient = NULL; + apiClient_unsetupGlobalEnv(); + return 0; } diff --git a/examples/delete_pod/main.c b/examples/delete_pod/main.c index 14412f9..c279477 100644 --- a/examples/delete_pod/main.c +++ b/examples/delete_pod/main.c @@ -58,6 +58,7 @@ int main(int argc, char *argv[]) basePath = NULL; sslConfig = NULL; apiKeys = NULL; + apiClient_unsetupGlobalEnv(); return 0; } diff --git a/examples/exec_provider/list_pod_by_exec_provider.c b/examples/exec_provider/list_pod_by_exec_provider.c index 9f0c3d4..29ee7fb 100644 --- a/examples/exec_provider/list_pod_by_exec_provider.c +++ b/examples/exec_provider/list_pod_by_exec_provider.c @@ -63,6 +63,7 @@ int main(int argc, char *argv[]) apiClient_free(k8sApiClient); k8sApiClient = NULL; + apiClient_unsetupGlobalEnv(); return rc; } diff --git a/examples/generic/main.c b/examples/generic/main.c index 9570346..0c6e590 100644 --- a/examples/generic/main.c +++ b/examples/generic/main.c @@ -60,6 +60,7 @@ int main(int argc, char *argv[]) basePath = NULL; sslConfig = NULL; apiKeys = NULL; + apiClient_unsetupGlobalEnv(); return 0; } diff --git a/examples/list_pod/main.c b/examples/list_pod/main.c index 2d60177..02c8339 100644 --- a/examples/list_pod/main.c +++ b/examples/list_pod/main.c @@ -59,6 +59,7 @@ int main(int argc, char *argv[]) basePath = NULL; sslConfig = NULL; apiKeys = NULL; + apiClient_unsetupGlobalEnv(); return 0; } diff --git a/examples/list_pod_incluster/main.c b/examples/list_pod_incluster/main.c index 426c865..03bb2db 100644 --- a/examples/list_pod_incluster/main.c +++ b/examples/list_pod_incluster/main.c @@ -59,6 +59,7 @@ int main(int argc, char *argv[]) basePath = NULL; sslConfig = NULL; apiKeys = NULL; + apiClient_unsetupGlobalEnv(); return 0; } diff --git a/examples/watch_list_pod/main.c b/examples/watch_list_pod/main.c index debe685..f11bda4 100644 --- a/examples/watch_list_pod/main.c +++ b/examples/watch_list_pod/main.c @@ -105,6 +105,7 @@ int main(int argc, char *argv[]) basePath = NULL; sslConfig = NULL; apiKeys = NULL; + apiClient_unsetupGlobalEnv(); return 0; }