ADD: beautified the class and removed unnecessary class
This commit is contained in:
@@ -12,9 +12,9 @@
|
||||
#include <fstream>
|
||||
#include <curlpp/Easy.hpp>
|
||||
#include <curlpp/Options.hpp>
|
||||
#define LOGURU_WITH_STREAMS 1
|
||||
#include <loguru.hpp>
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
#include <curlpp/cURLpp.hpp>
|
||||
#include <filesystem>
|
||||
#include <kubecontrol/Container.hpp>
|
||||
@@ -198,32 +198,45 @@ namespace kubecontrol
|
||||
|
||||
|
||||
private:
|
||||
|
||||
/// @brief maximum time to wait of the response when creating a pod
|
||||
static const int MaxWaitTimeInSeconds;
|
||||
|
||||
|
||||
/// @brief uuid of the owner
|
||||
std::string Owner_;
|
||||
/// @brief uuid of the pod
|
||||
std::string Uuid_;
|
||||
/// @brief name of the pod
|
||||
std::string Name_;
|
||||
/// @brief component the pod represents
|
||||
std::string Component_;
|
||||
/// @brief vector of images the pod contains
|
||||
std::vector<Container> ContainerImages_;
|
||||
// std::string ContainerImage_;
|
||||
/// @brief url of the container registry
|
||||
std::string ContainerRegistry_;
|
||||
/// @brief path to kube yaml
|
||||
std::string PathToYaml_;
|
||||
/// @brief namespace the pod is designated
|
||||
std::string Namespace_;
|
||||
|
||||
/// @brief IP of the pod
|
||||
std::string Ip_;
|
||||
/// @brief status of the pod
|
||||
std::string Status_;
|
||||
/// @brief uuid of pod this pod is part of
|
||||
std::string PartOf_;
|
||||
/// @brief vector of child pods
|
||||
std::vector<PodChild> ChildPods;
|
||||
|
||||
/// @brief command the pod schould execute when created
|
||||
std::string PodCommand_;
|
||||
|
||||
/// @brief yaml node of the pod which is used for creation
|
||||
YAML::Node YAMLNode_;
|
||||
|
||||
/// @brief environment vars of the pod
|
||||
std::map<std::string, std::string> EnvirmonentVars_;
|
||||
/// @brief arguments for the pod
|
||||
std::vector<std::string> Args_;
|
||||
|
||||
/**
|
||||
* @brief function to create the yaml string for the pod creation
|
||||
* @return std::string - returns a serialized yaml
|
||||
*/
|
||||
std::string createYAML();
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user