From 96d1e3e2af83041f178fbd4e3c8d8ef71c229e19 Mon Sep 17 00:00:00 2001 From: hwinkel Date: Fri, 13 Oct 2023 14:16:03 +0200 Subject: [PATCH] ADD:Renamed public variable --- include/kubecontrol/KubePod.hpp | 2 +- libs/yaml-cpp | 2 +- src/kubecontrol/KubePod.cpp | 14 +++++++------- src/kubecontrol/PodController.cpp | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/include/kubecontrol/KubePod.hpp b/include/kubecontrol/KubePod.hpp index 4860fcf..57dcdd5 100644 --- a/include/kubecontrol/KubePod.hpp +++ b/include/kubecontrol/KubePod.hpp @@ -51,7 +51,7 @@ namespace kubecontrol std::string stop(std::string apiAddress,std::string token); std::string getInfo(std::string apiAddress,std::string token); - PodInfo PodInfo; + PodInfo InfoPod; diff --git a/libs/yaml-cpp b/libs/yaml-cpp index 35b4498..f791b95 160000 --- a/libs/yaml-cpp +++ b/libs/yaml-cpp @@ -1 +1 @@ -Subproject commit 35b4498026b6293bfadc75f9ee325cb16d6975af +Subproject commit f791b955d8649751421911048a7c9dd967689811 diff --git a/src/kubecontrol/KubePod.cpp b/src/kubecontrol/KubePod.cpp index f8c13f2..e159d6e 100644 --- a/src/kubecontrol/KubePod.cpp +++ b/src/kubecontrol/KubePod.cpp @@ -227,12 +227,12 @@ namespace kubecontrol request.reset(); auto response = mWriterChunk.getResponse(); - PodInfo.update(response); + InfoPod.update(response); - while (PodInfo.Status != "Running") { + while (InfoPod.Status != "Running") { std::this_thread::sleep_for(std::chrono::milliseconds(200)); response = this->getInfo(curlURL, token); - PodInfo.update(response); + InfoPod.update(response); } @@ -270,12 +270,12 @@ namespace kubecontrol request.perform(); auto response = mWriterChunk.getResponse(); - LOG_S(INFO)< 0) + LOG_S(INFO)< 0) { - for(int i = 0; i