mirror of
https://github.com/YuzuZensai/Minikura.git
synced 2026-09-13 10:49:21 +00:00
✨ feat: add plugin registry and server operations
This commit is contained in:
@@ -60,13 +60,16 @@ type JVMOptions struct {
|
||||
|
||||
// +kubebuilder:validation:Minimum=1
|
||||
// +kubebuilder:validation:Maximum=100
|
||||
// +kubebuilder:default=80
|
||||
// +kubebuilder:default=60
|
||||
HeapPercent int32 `json:"heapPercent,omitempty"`
|
||||
}
|
||||
|
||||
type MinecraftServerSpec struct {
|
||||
Type ServerKind `json:"type"`
|
||||
|
||||
// +kubebuilder:default=true
|
||||
Running *bool `json:"running,omitempty"`
|
||||
|
||||
// +optional
|
||||
Description string `json:"description,omitempty"`
|
||||
|
||||
|
||||
@@ -132,6 +132,11 @@ func (in *MinecraftServerList) DeepCopyObject() runtime.Object {
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *MinecraftServerSpec) DeepCopyInto(out *MinecraftServerSpec) {
|
||||
*out = *in
|
||||
if in.Running != nil {
|
||||
in, out := &in.Running, &out.Running
|
||||
*out = new(bool)
|
||||
**out = **in
|
||||
}
|
||||
out.Resources = in.Resources
|
||||
out.JVM = in.JVM
|
||||
in.Properties.DeepCopyInto(&out.Properties)
|
||||
|
||||
Reference in New Issue
Block a user