Documentation ¶
Index ¶
- Constants
- func AddNode(namespace string, clusterName string, req *app.NodeReq) (*model.NodeList, error)
- func CreateCluster(namespace string, req *app.ClusterReq) (*model.Cluster, error)
- func DeleteCluster(namespace string, clusterName string) (*app.Status, error)
- func GetCluster(namespace string, clusterName string) (*model.Cluster, error)
- func GetNode(namespace string, clusterName string, nodeName string) (*model.Node, error)
- func ListCluster(namespace string) (*model.ClusterList, error)
- func ListNode(namespace string, clusterName string) (*model.NodeList, error)
- func RemoveNode(namespace string, clusterName string, nodeName string) (*app.Status, error)
- type MCIR
- type SpecList
- type Vmspecs
Constants ¶
View Source
const ( // TagNameKubernetesClusterPrefix is the tag name we use to differentiate multiple // logically independent clusters running in the same AZ. // tag format: kubernetes.io/cluster/<clusterID> = shared|owned // The tag key = TagNameKubernetesClusterPrefix + clusterID // The tag value is an ownership value TagNameKubernetesClusterPrefix = "kubernetes.io/cluster/" // ResourceLifecycleOwned is the value we use when tagging resources to indicate // that the resource is considered owned and managed by the cluster, // and in particular that the lifecycle is tied to the lifecycle of the cluster. ResourceLifecycleOwned = "owned" )
Imported from cloud-provider-aws/pkg/providers/v2/tags.go
View Source
const ( GCP_IMAGE_ID = "https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/images/ubuntu-1804-bionic-v20201014" AZURE_IMAGE_ID = "Canonical:UbuntuServer:18.04-LTS:latest" ALIBABA_IMAGE_ID = "ubuntu_18_04_x64_20G_alibase_20210521.vhd" TENCENT_IMAGE_ID = "img-pi0ii46r" CLOUDIT_IMAGE_ID = "ac2696a8-ecf7-4aab-bfbf-9ab5f3256ca2" NCPVPC_IMAGE_ID = "SW.VSVR.OS.LNX64.UBNTU.SVR1804.B050" NCP_IMAGE_ID = "SPSW0LINUX000130" )
Variables ¶
This section is empty.
Functions ¶
func CreateCluster ¶
create a cluster
func DeleteCluster ¶
delete a cluster
func GetCluster ¶
get a cluster
Types ¶
type MCIR ¶ added in v0.7.2
type MCIR struct {
// contains filtered or unexported fields
}
func (*MCIR) CreateIfNotExist ¶ added in v0.7.2
func (self *MCIR) CreateIfNotExist() (model.ClusterReason, string)
create a MCIR (vpc, firewall, ssk-key, vm-spec, vm-image) if there is not exist
Click to show internal directories.
Click to hide internal directories.