v1alpha1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the mcing v1alpha1 API group +kubebuilder:object:generate=true +groupName=mcing.kmdkuk.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "mcing.kmdkuk.com", 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 Minecraft

type Minecraft struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   MinecraftSpec   `json:"spec,omitempty"`
	Status MinecraftStatus `json:"status,omitempty"`
}

Minecraft is the Schema for the minecrafts API

func (*Minecraft) DeepCopy

func (in *Minecraft) DeepCopy() *Minecraft

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

func (*Minecraft) DeepCopyInto

func (in *Minecraft) DeepCopyInto(out *Minecraft)

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

func (*Minecraft) DeepCopyObject

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

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

func (*Minecraft) Default

func (r *Minecraft) Default()

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

func (*Minecraft) SetupWebhookWithManager

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

func (*Minecraft) ValidateCreate

func (r *Minecraft) ValidateCreate() error

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

func (*Minecraft) ValidateDelete

func (r *Minecraft) ValidateDelete() error

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

func (*Minecraft) ValidateUpdate

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

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

type MinecraftList

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

MinecraftList contains a list of Minecraft

func (*MinecraftList) DeepCopy

func (in *MinecraftList) DeepCopy() *MinecraftList

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

func (*MinecraftList) DeepCopyInto

func (in *MinecraftList) DeepCopyInto(out *MinecraftList)

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

func (*MinecraftList) DeepCopyObject

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

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

type MinecraftSpec

type MinecraftSpec struct {

	// Image for minecraft server
	// +optional
	Image string `json:"image,omitempty"`

	// Environment variable to be set for the container
	// `EULA` is required
	// The server will not start unless EULA=true.
	// +kubebuilder:validation:MinItems=1
	Env []corev1.EnvVar `json:"env"`

	// PersistentVolumeClaimSpec is a specification of `PersistentVolumeClaim` for persisting data in minecraft.
	VolumeClaimSpec corev1.PersistentVolumeClaimSpec `json:"volumeClaimSpec"`
}

MinecraftSpec defines the desired state of Minecraft

func (*MinecraftSpec) DeepCopy

func (in *MinecraftSpec) DeepCopy() *MinecraftSpec

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

func (*MinecraftSpec) DeepCopyInto

func (in *MinecraftSpec) DeepCopyInto(out *MinecraftSpec)

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

type MinecraftStatus

type MinecraftStatus struct {
}

MinecraftStatus defines the observed state of Minecraft

func (*MinecraftStatus) DeepCopy

func (in *MinecraftStatus) DeepCopy() *MinecraftStatus

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

func (*MinecraftStatus) DeepCopyInto

func (in *MinecraftStatus) DeepCopyInto(out *MinecraftStatus)

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