Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the claim v1alpha1 API group +kubebuilder:object:generate=true +groupName=claim.tmax.io
Index ¶
- Variables
- type AwsClaimSpec
- type ClusterClaim
- func (in *ClusterClaim) DeepCopy() *ClusterClaim
- func (in *ClusterClaim) DeepCopyInto(out *ClusterClaim)
- func (in *ClusterClaim) DeepCopyObject() runtime.Object
- func (r *ClusterClaim) Default()
- func (r *ClusterClaim) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *ClusterClaim) ValidateCreate() error
- func (r *ClusterClaim) ValidateDelete() error
- func (r *ClusterClaim) ValidateUpdate(old runtime.Object) error
- type ClusterClaimList
- type ClusterClaimSpec
- type ClusterClaimStatus
- type VsphereClaimSpec
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "claim.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 AwsClaimSpec ¶
type AwsClaimSpec struct {
// +kubebuilder:validation:Required
// The ssh key info to access VM
SshKey string `json:"sshKey"`
// +kubebuilder:validation:Required
// The region where VM is working
Region string `json:"region"`
// +kubebuilder:validation:Required
// The type of VM for master node
MasterType string `json:"masterType"`
// +kubebuilder:validation:Required
// The type of VM for worker node
WorkerType string `json:"workerType"`
}
func (*AwsClaimSpec) DeepCopy ¶
func (in *AwsClaimSpec) DeepCopy() *AwsClaimSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AwsClaimSpec.
func (*AwsClaimSpec) DeepCopyInto ¶
func (in *AwsClaimSpec) DeepCopyInto(out *AwsClaimSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterClaim ¶
type ClusterClaim struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ClusterClaimSpec `json:"spec,omitempty"`
Status ClusterClaimStatus `json:"status,omitempty"`
}
+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:shortName=cc,scope=Namespaced +kubebuilder:printcolumn:name="Status",type=string,JSONPath=`.status.phase` +kubebuilder:printcolumn:name="Reason",type=string,JSONPath=`.status.reason` +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" ClusterClaim is the Schema for the clusterclaims API
func (*ClusterClaim) DeepCopy ¶
func (in *ClusterClaim) DeepCopy() *ClusterClaim
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterClaim.
func (*ClusterClaim) DeepCopyInto ¶
func (in *ClusterClaim) DeepCopyInto(out *ClusterClaim)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterClaim) DeepCopyObject ¶
func (in *ClusterClaim) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterClaim) Default ¶
func (r *ClusterClaim) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*ClusterClaim) SetupWebhookWithManager ¶
func (r *ClusterClaim) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*ClusterClaim) ValidateCreate ¶
func (r *ClusterClaim) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*ClusterClaim) ValidateDelete ¶
func (r *ClusterClaim) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*ClusterClaim) ValidateUpdate ¶
func (r *ClusterClaim) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type ClusterClaimList ¶
type ClusterClaimList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ClusterClaim `json:"items"`
}
ClusterClaimList contains a list of ClusterClaim
func (*ClusterClaimList) DeepCopy ¶
func (in *ClusterClaimList) DeepCopy() *ClusterClaimList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterClaimList.
func (*ClusterClaimList) DeepCopyInto ¶
func (in *ClusterClaimList) DeepCopyInto(out *ClusterClaimList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterClaimList) DeepCopyObject ¶
func (in *ClusterClaimList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterClaimSpec ¶
type ClusterClaimSpec struct {
// +kubebuilder:validation:Required
// The name of the cluster to be created
ClusterName string `json:"clusterName"`
// +kubebuilder:validation:Required
// The version of kubernetes
Version string `json:"version"`
// +kubebuilder:validation:Required
// The version of kubernetes
Provider string `json:"provider"`
// +kubebuilder:validation:Required
// The number of master node
MasterNum int `json:"masterNum"`
// +kubebuilder:validation:Required
// The number of worker node
WorkerNum int `json:"workerNum"`
// +kubebuilder:validation:Required
// Provider AWS spec
ProviderAwsSpec AwsClaimSpec `json:"ProviderAwsSpec,omitempty"`
// +kubebuilder:validation:Required
// Provider vSphere spec
ProviderVsphereSpec VsphereClaimSpec `json:"ProviderVsphereSpec,omitempty"`
}
ClusterClaimSpec defines the desired state of ClusterClaim
func (*ClusterClaimSpec) DeepCopy ¶
func (in *ClusterClaimSpec) DeepCopy() *ClusterClaimSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterClaimSpec.
func (*ClusterClaimSpec) DeepCopyInto ¶
func (in *ClusterClaimSpec) DeepCopyInto(out *ClusterClaimSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterClaimStatus ¶
type ClusterClaimStatus struct {
Message string `json:"message,omitempty" protobuf:"bytes,2,opt,name=message"`
Reason string `json:"reason,omitempty" protobuf:"bytes,3,opt,name=reason"`
// +kubebuilder:validation:Enum=Awaiting;Admitted;Approved;Rejected;Error;ClusterDeleted;
Phase string `json:"phase,omitempty" protobuf:"bytes,4,opt,name=phase"`
}
ClusterClaimStatus defines the observed state of ClusterClaim
func (*ClusterClaimStatus) DeepCopy ¶
func (in *ClusterClaimStatus) DeepCopy() *ClusterClaimStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterClaimStatus.
func (*ClusterClaimStatus) DeepCopyInto ¶
func (in *ClusterClaimStatus) DeepCopyInto(out *ClusterClaimStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VsphereClaimSpec ¶
type VsphereClaimSpec struct {
// +kubebuilder:validation:Required
// The internal IP address cider block for pods
PodCidr string `json:"podCidr,omitempty"`
// +kubebuilder:validation:Required
// The IP address of vCenter Server Application(VCSA)
VcenterIp string `json:"vcenterIp,omitempty"`
// +kubebuilder:validation:Required
// The user id of VCSA
VcenterId string `json:"vcenterId,omitempty"`
// +kubebuilder:validation:Required
// The password of VCSA
VcenterPassword string `json:"vcenterPassword,omitempty"`
// +kubebuilder:validation:Required
// The TLS thumbprint of machine certificate
VcenterThumbprint string `json:"vcenterThumbprint,omitempty"`
// +kubebuilder:validation:Required
// The name of network
VcenterNetwork string `json:"vcenterNetwork,omitempty"`
// +kubebuilder:validation:Required
// The name of data center
VcenterDataCenter string `json:"vcenterDataCenter,omitempty"`
// +kubebuilder:validation:Required
// The name of data store
VcenterDataStore string `json:"vcenterDataStore,omitempty"`
// +kubebuilder:validation:Required
// The name of folder
VcenterFolder string `json:"vcenterFolder,omitempty"`
// +kubebuilder:validation:Required
// The name of resource pool
VcenterResourcePool string `json:"vcenterResourcePool,omitempty"`
// +kubebuilder:validation:Required
// The IP address of control plane for remote cluster(vip)
VcenterKcpIp string `json:"vcenterKcpIp,omitempty"`
// +kubebuilder:validation:Required
// The number of cpus for vm
VcenterCpuNum int `json:"vcenterCpuNum,omitempty"`
// +kubebuilder:validation:Required
// The memory size for vm
VcenterMemSize int `json:"vcenterMemSize,omitempty"`
// +kubebuilder:validation:Required
// The disk size for vm
VcenterDiskSize int `json:"vcenterDiskSize,omitempty"`
// +kubebuilder:validation:Required
// The template name for cloud init
VcenterTemplate string `json:"vcenterTemplate,omitempty"`
}
func (*VsphereClaimSpec) DeepCopy ¶
func (in *VsphereClaimSpec) DeepCopy() *VsphereClaimSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VsphereClaimSpec.
func (*VsphereClaimSpec) DeepCopyInto ¶
func (in *VsphereClaimSpec) DeepCopyInto(out *VsphereClaimSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.