ADD:Renamed public variable
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
|
||||
|
||||
Submodule libs/yaml-cpp updated: 35b4498026...f791b955d8
@@ -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)<<PodInfo.getRelatedPods().size();
|
||||
if (PodInfo.getRelatedPods().size() > 0)
|
||||
LOG_S(INFO)<<InfoPod.getRelatedPods().size();
|
||||
if (InfoPod.getRelatedPods().size() > 0)
|
||||
{
|
||||
for(int i = 0; i<PodInfo.getRelatedPods().size(); i++)
|
||||
for(int i = 0; i<InfoPod.getRelatedPods().size(); i++)
|
||||
{
|
||||
StopChilds(apiAddress, token, PodInfo.getRelatedPods()[i]);
|
||||
StopChilds(apiAddress, token, InfoPod.getRelatedPods()[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ namespace kubecontrol
|
||||
checkPodsHierarchy();
|
||||
for (auto item : PodList_)
|
||||
{
|
||||
item.PodInfo = *getPodInfo(item.getUUID()).get();
|
||||
item.InfoPod = *getPodInfo(item.getUUID()).get();
|
||||
item.stop(ServerAddress_+ApiCall_, BearerToken_);
|
||||
LOG_S(INFO)<< "stopping pod: "<<item.getUUID();
|
||||
}
|
||||
@@ -142,8 +142,8 @@ namespace kubecontrol
|
||||
{
|
||||
found = true;
|
||||
checkPodsHierarchy();
|
||||
item.PodInfo = *getPodInfo(item.getUUID()).get();
|
||||
LOG_S(INFO)<<item.PodInfo.getRelatedPods().size();
|
||||
item.InfoPod = *getPodInfo(item.getUUID()).get();
|
||||
LOG_S(INFO)<<item.InfoPod.getRelatedPods().size();
|
||||
return item.getInfo(ServerAddress_+ApiCall_, BearerToken_);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user