小改动

This commit is contained in:
Captain.B 2020-03-17 14:30:29 +08:00
parent f90b870c3f
commit c6b24f35bd
1 changed files with 5 additions and 1 deletions

View File

@ -27,6 +27,10 @@ public class KubernetesTestEngine implements Engine {
@Override
public void start() {
if (context == null) {
LogUtil.warn("Please initial the engine.");
return;
}
// todo 运行测试
ClientCredential credential = new ClientCredential();
credential.setMasterUrl("https://172.16.10.93:6443");
@ -43,7 +47,7 @@ public class KubernetesTestEngine implements Engine {
setName(configMapName);
}});
item.setData(new HashMap<String, String>() {{
put("sample.jmx", context.getContent());
put(context.getTestId() + ".jmx", context.getContent());
}});
client.configMaps().inNamespace(context.getNamespace()).create(item);
}