v1alpha1

package
v0.0.0-...-b6f1f74 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
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

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

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

func (*MinecraftProxyDeploymentList) DeepCopyInto

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

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

func (*MinecraftProxyDeploymentSpec) DeepCopyInto

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

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

func (*MinecraftProxyDeploymentStatus) DeepCopyInto

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

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

func (*MinecraftProxyGroupSelector) DeepCopyInto

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

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

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

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

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

func (*MinecraftServerDeployment) DeepCopyInto

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

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

func (*MinecraftServerDeploymentList) DeepCopyInto

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

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

func (*MinecraftServerDeploymentSpec) DeepCopyInto

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

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

func (*MinecraftServerDeploymentStatus) DeepCopyInto

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

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.

Jump to

Keyboard shortcuts

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