v1alpha1

package
v0.0.0-...-afae8cf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2021 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the cluster v1alpha1 API group +kubebuilder:object:generate=true +groupName=cluster.tmax.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "cluster.tmax.io", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type ClusterManager

type ClusterManager struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	FakeObjectMeta    `json:"fakeMetadata,omitempty"`

	Spec   ClusterManagerSpec   `json:"spec,omitempty"`
	Status ClusterManagerStatus `json:"status,omitempty"`
}

ClusterManager is the Schema for the clustermanagers API

func (*ClusterManager) DeepCopy

func (in *ClusterManager) DeepCopy() *ClusterManager

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterManager.

func (*ClusterManager) DeepCopyInto

func (in *ClusterManager) DeepCopyInto(out *ClusterManager)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterManager) DeepCopyObject

func (in *ClusterManager) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ClusterManager) Default

func (r *ClusterManager) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*ClusterManager) SetupWebhookWithManager

func (r *ClusterManager) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*ClusterManager) ValidateCreate

func (r *ClusterManager) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*ClusterManager) ValidateDelete

func (r *ClusterManager) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*ClusterManager) ValidateUpdate

func (r *ClusterManager) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type ClusterManagerList

type ClusterManagerList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ClusterManager `json:"items"`
}

ClusterManagerList contains a list of ClusterManager

func (*ClusterManagerList) DeepCopy

func (in *ClusterManagerList) DeepCopy() *ClusterManagerList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterManagerList.

func (*ClusterManagerList) DeepCopyInto

func (in *ClusterManagerList) DeepCopyInto(out *ClusterManagerList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterManagerList) DeepCopyObject

func (in *ClusterManagerList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClusterManagerSpec

type ClusterManagerSpec struct {
	// The name of cloud provider where VM is created
	Provider string `json:"provider,omitempty"`
	// The region where VM is working
	Region string `json:"region,omitempty"`
	// The version of kubernetes
	Version string `json:"version,omitempty"`
	// The number of master node
	MasterNum int `json:"masterNum,omitempty"`
	// The type of VM for master node
	MasterType string `json:"masterType,omitempty"`
	// The number of worker node
	WorkerNum int `json:"workerNum,omitempty"`
	// The type of VM for worker node
	WorkerType string `json:"workerType,omitempty"`
	// The ssh key info to access VM
	SshKey string `json:"sshKey,omitempty"`
}

ClusterManagerSpec defines the desired state of ClusterManager

func (*ClusterManagerSpec) DeepCopy

func (in *ClusterManagerSpec) DeepCopy() *ClusterManagerSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterManagerSpec.

func (*ClusterManagerSpec) DeepCopyInto

func (in *ClusterManagerSpec) DeepCopyInto(out *ClusterManagerSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterManagerStatus

type ClusterManagerStatus struct {
	Provider  string            `json:"provider,omitempty"`
	Version   string            `json:"version,omitempty"`
	Ready     bool              `json:"ready,omitempty"`
	MasterRun int               `json:"masterRun,omitempty"`
	WorkerRun int               `json:"workerRun,omitempty"`
	Node      []NodeInfo        `json:"nodes,omitempty"`
	Owner     map[string]string `json:"owner,omitempty"`
	Members   map[string]string `json:"members,omitempty"`
	Groups    map[string]string `json:"groups,omitempty"`
}

ClusterManagerStatus defines the observed state of ClusterManager

func (*ClusterManagerStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterManagerStatus.

func (*ClusterManagerStatus) DeepCopyInto

func (in *ClusterManagerStatus) DeepCopyInto(out *ClusterManagerStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type FakeObjectMeta

type FakeObjectMeta struct {
	FakeName string `json:"fakename,omitempty" protobuf:"bytes,1,opt,name=fakename"`
}
type UserInfo struct {
	Name      string         `json:"name,omitempty"`
}

func (*FakeObjectMeta) DeepCopy

func (in *FakeObjectMeta) DeepCopy() *FakeObjectMeta

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FakeObjectMeta.

func (*FakeObjectMeta) DeepCopyInto

func (in *FakeObjectMeta) DeepCopyInto(out *FakeObjectMeta)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NodeInfo

type NodeInfo struct {
	Name      string         `json:"name,omitempty"`
	Ip        string         `json:"ip,omitempty"`
	IsMaster  bool           `json:"isMaster,omitempty"`
	Resources []ResourceType `json:"resources,omitempty"`
}

func (*NodeInfo) DeepCopy

func (in *NodeInfo) DeepCopy() *NodeInfo

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeInfo.

func (*NodeInfo) DeepCopyInto

func (in *NodeInfo) DeepCopyInto(out *NodeInfo)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ResourceType

type ResourceType struct {
	Type     string `json:"type,omitempty"`
	Capacity string `json:"capacity,omitempty"`
	Usage    string `json:"usage,omitempty"`
}

func (*ResourceType) DeepCopy

func (in *ResourceType) DeepCopy() *ResourceType

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceType.

func (*ResourceType) DeepCopyInto

func (in *ResourceType) DeepCopyInto(out *ResourceType)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL