FIX: fixed issue where the response of the kube api was not written correct

This commit is contained in:
Henry Winkel
2023-10-26 15:57:37 +02:00
parent 26ff04067d
commit d0db414c16
4 changed files with 20 additions and 53 deletions

View File

@@ -226,12 +226,13 @@ namespace kubecontrol
request.perform();
request.reset();
auto response = mWriterChunk.getResponse();
std::string response = mWriterChunk.getResponse();
InfoPod.update(response);
while (InfoPod.Status != "Running") {
while (InfoPod.Status != "Running" && InfoPod.Status != "Succeeded") {
std::this_thread::sleep_for(std::chrono::milliseconds(200));
response = this->getInfo(curlURL, token);
response = this->getInfo(curlURL, token);
InfoPod.update(response);
}
@@ -348,8 +349,7 @@ namespace kubecontrol
request.perform();
auto response = mWriterChunk.getResponse();
return response;
return mWriterChunk.getResponse();
}