ADD: added Util class with the function to lowercase the vals for yaml and added support of setting args and command

This commit is contained in:
Henry Winkel
2023-08-09 10:23:50 +02:00
parent 39f0f2b4eb
commit bda06c285b
6 changed files with 96 additions and 8 deletions

View File

@@ -29,7 +29,14 @@ namespace kubecontrol
void setEnvironmentVar(std::string key, std::string val);
std::map<std::string, std::string> GetEnvironmentVars();
std::string* GetEnvironmentVar(std::string key);
std::string GetEnvironmentVar(std::string key);
void setArgs(std::string args);
std::vector<std::string> GetArgs();
void setCommand(std::string command);
std::string getCommand();
std::string createYAML();
std::string start(std::string apiAddress,std::string token);
@@ -45,7 +52,12 @@ namespace kubecontrol
std::string ContainerRegistry_;
std::string PathToYaml_;
std::string PodCommand_;
std::map<std::string, std::string> EnvirmonentVars_;
std::vector<std::string> Args_;
};
}