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 ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Dragonfly.
func (*Dragonfly) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Dragonfly) DeepCopyObject ¶
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) Annotations to add to the Dragonfly pods.
// +optional
// +kubebuilder:validation:Optional
Annotations map[string]string `json:"annotations,omitempty"`
// (Optional) Env variables to add to the Dragonfly pods.
// +optional
// +kubebuilder:validation:Optional
Env []corev1.EnvVar `json:"env,omitempty"`
// (Optional) Dragonfly container resource limits. Any container limits
// can be specified.
// +optional
// +kubebuilder:validation:Optional
Resources *corev1.ResourceRequirements `json:"resources,omitempty"`
// (Optional) Dragonfly pod affinity
// +optional
// +kubebuilder:validation:Optional
Affinity *corev1.Affinity `json:"affinity,omitempty"`
// (Optional) Dragonfly pod tolerations
// +optional
// +kubebuilder:validation:Optional
Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
// (Optional) Dragonfly pod service account name
// +optional
// +kubebuilder:validation:Optional
ServiceAccountName string `json:"serviceAccountName,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.