diff --git a/.gitignore b/.gitignore index 776e53c6..d7deb138 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ kubernetes/build/ .vs/ +.vscode/ # Prerequisites *.d diff --git a/README.md b/README.md index 52793b36..17ec1aba 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 88b0fe52..fa65270b 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 17a869b0..e44dcf2a 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 14412f9e..c2794777 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 9f0c3d46..29ee7fb2 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 95703468..0c6e590a 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 2d601777..02c8339d 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 426c8650..03bb2dba 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 debe6850..f11bda45 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; }