Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the minecraft v1alpha1 API group +kubebuilder:object:generate=true +groupName=minecraft.minestack.io
Index ¶
- Variables
- type MinecraftProxyDeployment
- func (in *MinecraftProxyDeployment) DeepCopy() *MinecraftProxyDeployment
- func (in *MinecraftProxyDeployment) DeepCopyInto(out *MinecraftProxyDeployment)
- func (in *MinecraftProxyDeployment) DeepCopyObject() runtime.Object
- func (r *MinecraftProxyDeployment) Default()
- func (r *MinecraftProxyDeployment) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *MinecraftProxyDeployment) ValidateCreate() error
- func (r *MinecraftProxyDeployment) ValidateDelete() error
- func (r *MinecraftProxyDeployment) ValidateUpdate(old runtime.Object) error
- type MinecraftProxyDeploymentList
- type MinecraftProxyDeploymentSpec
- type MinecraftProxyDeploymentStatus
- type MinecraftProxyGroupSelector
- type MinecraftProxyServer
- type MinecraftProxySidecar
- type MinecraftProxySpec
- type MinecraftProxyTemplate
- type MinecraftServerDeployment
- func (in *MinecraftServerDeployment) DeepCopy() *MinecraftServerDeployment
- func (in *MinecraftServerDeployment) DeepCopyInto(out *MinecraftServerDeployment)
- func (in *MinecraftServerDeployment) DeepCopyObject() runtime.Object
- func (r *MinecraftServerDeployment) Default()
- func (r *MinecraftServerDeployment) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *MinecraftServerDeployment) ValidateCreate() error
- func (r *MinecraftServerDeployment) ValidateDelete() error
- func (r *MinecraftServerDeployment) ValidateUpdate(old runtime.Object) error
- type MinecraftServerDeploymentList
- type MinecraftServerDeploymentSpec
- type MinecraftServerDeploymentStatus
- type MinecraftServerSpec
- type MinecraftServerTemplate
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "minecraft.minestack.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 MinecraftProxyDeployment ¶
type MinecraftProxyDeployment struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:validation:Required Spec MinecraftProxyDeploymentSpec `json:"spec,omitempty"` // +kubebuilder:validation:Optional Status MinecraftProxyDeploymentStatus `json:"status,omitempty"` }
MinecraftProxyDeployment is the Schema for the minecraftproxydeployments API
func (*MinecraftProxyDeployment) DeepCopy ¶
func (in *MinecraftProxyDeployment) DeepCopy() *MinecraftProxyDeployment
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MinecraftProxyDeployment.
func (*MinecraftProxyDeployment) DeepCopyInto ¶
func (in *MinecraftProxyDeployment) DeepCopyInto(out *MinecraftProxyDeployment)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MinecraftProxyDeployment) DeepCopyObject ¶
func (in *MinecraftProxyDeployment) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*MinecraftProxyDeployment) Default ¶
func (r *MinecraftProxyDeployment) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*MinecraftProxyDeployment) SetupWebhookWithManager ¶
func (r *MinecraftProxyDeployment) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*MinecraftProxyDeployment) ValidateCreate ¶
func (r *MinecraftProxyDeployment) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*MinecraftProxyDeployment) ValidateDelete ¶
func (r *MinecraftProxyDeployment) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*MinecraftProxyDeployment) ValidateUpdate ¶
func (r *MinecraftProxyDeployment) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type MinecraftProxyDeploymentList ¶
type MinecraftProxyDeploymentList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []MinecraftProxyDeployment `json:"items"` }
MinecraftProxyDeploymentList contains a list of MinecraftProxyDeployment
func (*MinecraftProxyDeploymentList) DeepCopy ¶
func (in *MinecraftProxyDeploymentList) DeepCopy() *MinecraftProxyDeploymentList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MinecraftProxyDeploymentList.
func (*MinecraftProxyDeploymentList) DeepCopyInto ¶
func (in *MinecraftProxyDeploymentList) DeepCopyInto(out *MinecraftProxyDeploymentList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MinecraftProxyDeploymentList) DeepCopyObject ¶
func (in *MinecraftProxyDeploymentList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MinecraftProxyDeploymentSpec ¶
type MinecraftProxyDeploymentSpec struct { // +kubebuilder:validation:Required // +kubebuilder:validation:Minimum:=0 Replicas int32 `json:"replicas"` // +kubebuilder:validation:Required Selector *metav1.LabelSelector `json:"selector"` // +kubebuilder:validation:Required Template MinecraftProxyTemplate `json:"template"` }
MinecraftProxyDeploymentSpec defines the desired state of MinecraftProxyDeployment
func (*MinecraftProxyDeploymentSpec) DeepCopy ¶
func (in *MinecraftProxyDeploymentSpec) DeepCopy() *MinecraftProxyDeploymentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MinecraftProxyDeploymentSpec.
func (*MinecraftProxyDeploymentSpec) DeepCopyInto ¶
func (in *MinecraftProxyDeploymentSpec) DeepCopyInto(out *MinecraftProxyDeploymentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MinecraftProxyDeploymentStatus ¶
type MinecraftProxyDeploymentStatus struct { // +kubebuilder:validation:Optional AvailableReplicas int32 `json:"availableReplicas"` // +kubebuilder:validation:Optional ReadyReplicas int32 `json:"readyReplicas"` // +kubebuilder:validation:Optional Replicas int32 `json:"replicas"` // +kubebuilder:validation:Optional UpdatedReplicas int32 `json:"updatedReplicas"` }
MinecraftProxyDeploymentStatus defines the observed state of MinecraftProxyDeployment
func (*MinecraftProxyDeploymentStatus) DeepCopy ¶
func (in *MinecraftProxyDeploymentStatus) DeepCopy() *MinecraftProxyDeploymentStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MinecraftProxyDeploymentStatus.
func (*MinecraftProxyDeploymentStatus) DeepCopyInto ¶
func (in *MinecraftProxyDeploymentStatus) DeepCopyInto(out *MinecraftProxyDeploymentStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MinecraftProxyGroupSelector ¶
type MinecraftProxyGroupSelector struct { // +kubebuilder:validation:Required // +kubebuilder:validation:MinLength:=1 // +kubebuilder:validation:MaxLength:=256 // +kubebuilder:validation:Pattern:=`^([a-z]+)$` Name string `json:"name"` // +kubebuilder:validation:Required Selector *metav1.LabelSelector `json:"selector"` }
func (*MinecraftProxyGroupSelector) DeepCopy ¶
func (in *MinecraftProxyGroupSelector) DeepCopy() *MinecraftProxyGroupSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MinecraftProxyGroupSelector.
func (*MinecraftProxyGroupSelector) DeepCopyInto ¶
func (in *MinecraftProxyGroupSelector) DeepCopyInto(out *MinecraftProxyGroupSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MinecraftProxyServer ¶
type MinecraftProxyServer struct { // +kubebuilder:validation:Required // +kubebuilder:validation:MinLength:=1 Image string `json:"image"` // +kubebuilder:validation:Required Resources corev1.ResourceRequirements `json:"resources"` // +kubebuilder:validation:Required JVMHeap resource.Quantity `json:"JVMHeap"` // +kubebuilder:validation:Optional JavaArgs string `json:"javaArgs"` // +kubebuilder:validation:Optional // +nullable VolumeMounts []corev1.VolumeMount `json:"volumeMounts"` }
func (*MinecraftProxyServer) DeepCopy ¶
func (in *MinecraftProxyServer) DeepCopy() *MinecraftProxyServer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MinecraftProxyServer.
func (*MinecraftProxyServer) DeepCopyInto ¶
func (in *MinecraftProxyServer) DeepCopyInto(out *MinecraftProxyServer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MinecraftProxySidecar ¶
type MinecraftProxySidecar struct { // +kubebuilder:validation:Required // +kubebuilder:validation:MinLength:=1 Image string `json:"image"` // +kubebuilder:validation:Required Resources corev1.ResourceRequirements `json:"resources"` }
func (*MinecraftProxySidecar) DeepCopy ¶
func (in *MinecraftProxySidecar) DeepCopy() *MinecraftProxySidecar
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MinecraftProxySidecar.
func (*MinecraftProxySidecar) DeepCopyInto ¶
func (in *MinecraftProxySidecar) DeepCopyInto(out *MinecraftProxySidecar)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MinecraftProxySpec ¶
type MinecraftProxySpec struct { // +kubebuilder:validation:Required Server MinecraftProxyServer `json:"server"` // +kubebuilder:validation:Required Sidecar MinecraftProxySidecar `json:"sidecar"` // +kubebuilder:validation:Optional // +nullable Volumes []corev1.Volume `json:"volumes"` // +kubebuilder:validation:Required ServerGroups []MinecraftProxyGroupSelector `json:"serverGroups"` }
func (*MinecraftProxySpec) DeepCopy ¶
func (in *MinecraftProxySpec) DeepCopy() *MinecraftProxySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MinecraftProxySpec.
func (*MinecraftProxySpec) DeepCopyInto ¶
func (in *MinecraftProxySpec) DeepCopyInto(out *MinecraftProxySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MinecraftProxyTemplate ¶
type MinecraftProxyTemplate struct { metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:validation:Required Spec MinecraftProxySpec `json:"spec"` }
func (*MinecraftProxyTemplate) DeepCopy ¶
func (in *MinecraftProxyTemplate) DeepCopy() *MinecraftProxyTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MinecraftProxyTemplate.
func (*MinecraftProxyTemplate) DeepCopyInto ¶
func (in *MinecraftProxyTemplate) DeepCopyInto(out *MinecraftProxyTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MinecraftServerDeployment ¶
type MinecraftServerDeployment struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:validation:Required Spec MinecraftServerDeploymentSpec `json:"spec,omitempty"` // +kubebuilder:validation:Optional Status MinecraftServerDeploymentStatus `json:"status,omitempty"` }
MinecraftServerDeployment is the Schema for the minecraftserverdeployments API
func (*MinecraftServerDeployment) DeepCopy ¶
func (in *MinecraftServerDeployment) DeepCopy() *MinecraftServerDeployment
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MinecraftServerDeployment.
func (*MinecraftServerDeployment) DeepCopyInto ¶
func (in *MinecraftServerDeployment) DeepCopyInto(out *MinecraftServerDeployment)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MinecraftServerDeployment) DeepCopyObject ¶
func (in *MinecraftServerDeployment) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*MinecraftServerDeployment) Default ¶
func (r *MinecraftServerDeployment) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*MinecraftServerDeployment) SetupWebhookWithManager ¶
func (r *MinecraftServerDeployment) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*MinecraftServerDeployment) ValidateCreate ¶
func (r *MinecraftServerDeployment) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*MinecraftServerDeployment) ValidateDelete ¶
func (r *MinecraftServerDeployment) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*MinecraftServerDeployment) ValidateUpdate ¶
func (r *MinecraftServerDeployment) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type MinecraftServerDeploymentList ¶
type MinecraftServerDeploymentList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []MinecraftServerDeployment `json:"items"` }
MinecraftServerDeploymentList contains a list of MinecraftServerDeployment
func (*MinecraftServerDeploymentList) DeepCopy ¶
func (in *MinecraftServerDeploymentList) DeepCopy() *MinecraftServerDeploymentList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MinecraftServerDeploymentList.
func (*MinecraftServerDeploymentList) DeepCopyInto ¶
func (in *MinecraftServerDeploymentList) DeepCopyInto(out *MinecraftServerDeploymentList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MinecraftServerDeploymentList) DeepCopyObject ¶
func (in *MinecraftServerDeploymentList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MinecraftServerDeploymentSpec ¶
type MinecraftServerDeploymentSpec struct { // +kubebuilder:validation:Required // +kubebuilder:validation:Minimum:=0 // +kubebuilder:validation:Maximum:=999 Replicas int32 `json:"replicas"` // +kubebuilder:validation:Optional Ordinals bool `json:"ordinals"` // +kubebuilder:validation:Required Selector *metav1.LabelSelector `json:"selector"` // +kubebuilder:validation:Required Template MinecraftServerTemplate `json:"template"` }
MinecraftServerDeploymentSpec defines the desired state of MinecraftServerDeployment
func (*MinecraftServerDeploymentSpec) DeepCopy ¶
func (in *MinecraftServerDeploymentSpec) DeepCopy() *MinecraftServerDeploymentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MinecraftServerDeploymentSpec.
func (*MinecraftServerDeploymentSpec) DeepCopyInto ¶
func (in *MinecraftServerDeploymentSpec) DeepCopyInto(out *MinecraftServerDeploymentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MinecraftServerDeploymentStatus ¶
type MinecraftServerDeploymentStatus struct { // +kubebuilder:validation:Optional AvailableReplicas int32 `json:"availableReplicas"` // +kubebuilder:validation:Optional ReadyReplicas int32 `json:"readyReplicas"` // +kubebuilder:validation:Optional Replicas int32 `json:"replicas"` // +kubebuilder:validation:Optional UpdatedReplicas int32 `json:"updatedReplicas"` }
MinecraftServerDeploymentStatus defines the observed state of MinecraftServerDeployment
func (*MinecraftServerDeploymentStatus) DeepCopy ¶
func (in *MinecraftServerDeploymentStatus) DeepCopy() *MinecraftServerDeploymentStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MinecraftServerDeploymentStatus.
func (*MinecraftServerDeploymentStatus) DeepCopyInto ¶
func (in *MinecraftServerDeploymentStatus) DeepCopyInto(out *MinecraftServerDeploymentStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MinecraftServerSpec ¶
type MinecraftServerSpec struct { // +kubebuilder:validation:Required // +kubebuilder:validation:MinLength:=1 Image string `json:"image"` // +kubebuilder:validation:Required Resources corev1.ResourceRequirements `json:"resources"` // +kubebuilder:validation:Required JVMHeap resource.Quantity `json:"JVMHeap"` // +kubebuilder:validation:Optional JavaArgs string `json:"javaArgs"` // +kubebuilder:validation:Optional // +nullable VolumeMounts []corev1.VolumeMount `json:"volumeMounts"` // +kubebuilder:validation:Optional // +nullable Volumes []corev1.Volume `json:"volumes"` }
func (*MinecraftServerSpec) DeepCopy ¶
func (in *MinecraftServerSpec) DeepCopy() *MinecraftServerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MinecraftServerSpec.
func (*MinecraftServerSpec) DeepCopyInto ¶
func (in *MinecraftServerSpec) DeepCopyInto(out *MinecraftServerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MinecraftServerTemplate ¶
type MinecraftServerTemplate struct { metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:validation:Required Spec MinecraftServerSpec `json:"spec"` }
func (*MinecraftServerTemplate) DeepCopy ¶
func (in *MinecraftServerTemplate) DeepCopy() *MinecraftServerTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MinecraftServerTemplate.
func (*MinecraftServerTemplate) DeepCopyInto ¶
func (in *MinecraftServerTemplate) DeepCopyInto(out *MinecraftServerTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.