v1alpha1

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

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

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

	Spec   DragonflySpec   `json:"spec,omitempty"`
	Status DragonflyStatus `json:"status,omitempty"`
}

Dragonfly is the Schema for the dragonflies API

func (*Dragonfly) DeepCopy

func (in *Dragonfly) DeepCopy() *Dragonfly

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

func (*Dragonfly) DeepCopyInto

func (in *Dragonfly) DeepCopyInto(out *Dragonfly)

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

func (*Dragonfly) DeepCopyObject

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

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

type DragonflyList

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

DragonflyList contains a list of Dragonfly

func (*DragonflyList) DeepCopy

func (in *DragonflyList) DeepCopy() *DragonflyList

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

func (*DragonflyList) DeepCopyInto

func (in *DragonflyList) DeepCopyInto(out *DragonflyList)

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

func (*DragonflyList) DeepCopyObject

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

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

type DragonflySpec

type DragonflySpec struct {

	// Replicas is the total number of Dragonfly instances including the master
	Replicas int32 `json:"replicas,omitempty"`

	// Image is the Dragonfly image to use
	Image string `json:"image,omitempty"`

	// (Optional) Dragonfly container args to pass to the container
	// Refer to the Dragonfly documentation for the list of supported args
	// +optional
	// +kubebuilder:validation:Optional
	Args []string `json:"args,omitempty"`

	// (Optional) Dragonfly container resource limits. Any container limits
	// can be specified.
	// +optional
	// +kubebuilder:validation:Optional
	Resources *corev1.ResourceRequirements `json:"resources,omitempty"`
}

DragonflySpec defines the desired state of Dragonfly

func (*DragonflySpec) DeepCopy

func (in *DragonflySpec) DeepCopy() *DragonflySpec

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

func (*DragonflySpec) DeepCopyInto

func (in *DragonflySpec) DeepCopyInto(out *DragonflySpec)

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

type DragonflyStatus

type DragonflyStatus struct {

	// Status of the Dragonfly Instance
	// It can be one of the following:
	// - "ready": The Dragonfly instance is ready to serve requests
	// - "configuring-replication": The controller is updating the master of the Dragonfly instance
	// - "resources-created": The Dragonfly instance resources were created but not yet configured
	Phase string `json:"phase,omitempty"`

	// IsRollingUpdate is true if the Dragonfly instance is being updated
	IsRollingUpdate bool `json:"isRollingUpdate,omitempty"`
}

DragonflyStatus defines the observed state of Dragonfly

func (*DragonflyStatus) DeepCopy

func (in *DragonflyStatus) DeepCopy() *DragonflyStatus

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

func (*DragonflyStatus) DeepCopyInto

func (in *DragonflyStatus) DeepCopyInto(out *DragonflyStatus)

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