mirror of
https://github.com/optim-enterprises-bv/control-pane.git
synced 2025-11-01 10:27:55 +00:00
Update clonos.php
This commit is contained in:
@@ -2021,6 +2021,21 @@ class ClonOS {
|
|||||||
return $arr;
|
return $arr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function ccmd_getFreeCname()
|
||||||
|
{
|
||||||
|
$arr=array();
|
||||||
|
$add_cmd=' default_jailname=kube';
|
||||||
|
$res=$this->cbsd_cmd("freejname".$add_cmd);
|
||||||
|
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;
|
||||||
@@ -2066,7 +2081,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