mirror of
https://github.com/optim-enterprises-bv/control-pane.git
synced 2025-10-30 01:22:24 +00:00
* Merge with parent
This commit is contained in:
@@ -2021,6 +2021,19 @@ class ClonOS {
|
||||
return $arr;
|
||||
}
|
||||
|
||||
function ccmd_getFreeCname(){
|
||||
$arr=array();
|
||||
$res=$this->CBSD::run("freejname default_jailname=kube", []);
|
||||
if($res['error']){
|
||||
$arr['error']=true;
|
||||
$arr['error_message']=$err['error_message'];
|
||||
}else{
|
||||
$arr['error']=false;
|
||||
$arr['freejname']=$res['message'];
|
||||
}
|
||||
return $arr;
|
||||
}
|
||||
|
||||
function ccmd_k8sCreate(){
|
||||
$form=$this->form;
|
||||
$res=array();
|
||||
@@ -2066,7 +2079,9 @@ class ClonOS {
|
||||
if($form['kubelet_master']=='on') $res['kubelet_master']="1";
|
||||
}
|
||||
|
||||
$url='http://144.76.225.238/api/v1/create/move';
|
||||
$cname=$form['cname'];
|
||||
|
||||
$url='http://144.76.225.238/api/v1/create/'.$cname;
|
||||
$result=$this->postCurl($url,$res);
|
||||
|
||||
return $result;
|
||||
|
||||
Reference in New Issue
Block a user