FIX:fixed issue where unecessary yaml args are set
This commit is contained in:
@@ -96,14 +96,21 @@ namespace kubecontrol
|
|||||||
node["spec"]["containers"][0]["env"][i]["value"] = item.second;
|
node["spec"]["containers"][0]["env"][i]["value"] = item.second;
|
||||||
}
|
}
|
||||||
|
|
||||||
node["spec"]["containers"][0]["args"].SetStyle(YAML::EmitterStyle::Flow);
|
|
||||||
|
|
||||||
for (auto item : Args_) {
|
if (Args_.size() > 0)
|
||||||
node["spec"]["containers"][0]["args"].push_back(item);
|
{
|
||||||
|
node["spec"]["containers"][0]["args"].SetStyle(YAML::EmitterStyle::Flow);
|
||||||
|
for (auto item : Args_) {
|
||||||
|
node["spec"]["containers"][0]["args"].push_back(item);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
node["spec"]["containers"][0]["command"].SetStyle(YAML::EmitterStyle::Flow);
|
if (!PodCommand_.empty())
|
||||||
node["spec"]["containers"][0]["command"].push_back(PodCommand_);
|
{
|
||||||
|
|
||||||
|
node["spec"]["containers"][0]["command"].SetStyle(YAML::EmitterStyle::Flow);
|
||||||
|
node["spec"]["containers"][0]["command"].push_back(PodCommand_);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user