mirror of
https://github.com/optim-enterprises-bv/control-pane.git
synced 2025-11-02 02:48:02 +00:00
* Merge with parent
This commit is contained in:
@@ -2021,6 +2021,19 @@ class ClonOS {
|
|||||||
return $arr;
|
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(){
|
function ccmd_k8sCreate(){
|
||||||
$form=$this->form;
|
$form=$this->form;
|
||||||
$res=array();
|
$res=array();
|
||||||
@@ -2066,7 +2079,9 @@ class ClonOS {
|
|||||||
if($form['kubelet_master']=='on') $res['kubelet_master']="1";
|
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);
|
$result=$this->postCurl($url,$res);
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
|
|||||||
Reference in New Issue
Block a user