FIX: fixed issue that only one env var can added to the yaml file
This commit is contained in:
@@ -95,6 +95,7 @@ namespace kubecontrol
|
|||||||
for (auto item :EnvirmonentVars_) {
|
for (auto item :EnvirmonentVars_) {
|
||||||
node["spec"]["containers"][0]["env"][i]["name"] = item.first;
|
node["spec"]["containers"][0]["env"][i]["name"] = item.first;
|
||||||
node["spec"]["containers"][0]["env"][i]["value"] = item.second;
|
node["spec"]["containers"][0]["env"][i]["value"] = item.second;
|
||||||
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user