Documentation
¶
Overview ¶
Package v1 contains API Schema definitions for the db v1 API group +kubebuilder:object:generate=true +groupName=db.payu.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "db.payu.com", Version: "v1"} // 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 RedisCluster ¶
type RedisCluster struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec RedisClusterSpec `json:"spec,omitempty"`
Status RedisClusterStatus `json:"status,omitempty"`
}
RedisCluster is the Schema for the redisclusters API.
func (*RedisCluster) DeepCopy ¶
func (in *RedisCluster) DeepCopy() *RedisCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisCluster.
func (*RedisCluster) DeepCopyInto ¶
func (in *RedisCluster) DeepCopyInto(out *RedisCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RedisCluster) DeepCopyObject ¶
func (in *RedisCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RedisClusterList ¶
type RedisClusterList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []RedisCluster `json:"items"`
}
RedisClusterList contains a list of RedisCluster
func (*RedisClusterList) DeepCopy ¶
func (in *RedisClusterList) DeepCopy() *RedisClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisClusterList.
func (*RedisClusterList) DeepCopyInto ¶
func (in *RedisClusterList) DeepCopyInto(out *RedisClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RedisClusterList) DeepCopyObject ¶
func (in *RedisClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RedisClusterSpec ¶
type RedisClusterSpec struct {
// +kubebuilder:validation:Minimum=3
// The number of leader instances to run.
LeaderCount int `json:"leaderCount,omitempty"`
// +optional
// +kubebuilder:validation:Minimum=0
// The number of followers that each leader will have.
LeaderFollowersCount int `json:"leaderFollowersCount,omitempty"`
// +optional
// Flag that toggles the default affinity rules added by the operator.
// Default is true.
EnableDefaultAffinity bool `json:"enableDefaultAffinity,omitempty"`
// +optional
// Annotations for the Redis pods.
Annotations map[string]string `json:"annotations,omitempty"`
// Labels used by the operator to get the pods that it manages. Added by default
// to the list of labels of the Redis pod.
PodLabelSelector map[string]string `json:"podLabelSelector"`
// +optional
// Labels for the Redis pods.
Labels map[string]string `json:"labels,omitempty"`
// PodSpec for Redis pods.
RedisPodSpec corev1.PodSpec `json:"redisPodSpec"`
}
RedisClusterSpec defines the desired state of RedisCluster.
func (*RedisClusterSpec) DeepCopy ¶
func (in *RedisClusterSpec) DeepCopy() *RedisClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisClusterSpec.
func (*RedisClusterSpec) DeepCopyInto ¶
func (in *RedisClusterSpec) DeepCopyInto(out *RedisClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisClusterStatus ¶
type RedisClusterStatus struct {
// A list of pointers to currently running pods.
// +optional
Pods []corev1.ObjectReference `json:"active,omitempty"`
// The current state of the cluster.
// +optional
ClusterState string `json:"clusterState,omitempty"`
// The total expected pod number when the cluster is ready and stable.
// +optional
TotalExpectedPods int `json:"totalExpectedPods,omitempty"`
}
RedisClusterStatus defines the observed state of RedisCluster
func (*RedisClusterStatus) DeepCopy ¶
func (in *RedisClusterStatus) DeepCopy() *RedisClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisClusterStatus.
func (*RedisClusterStatus) DeepCopyInto ¶
func (in *RedisClusterStatus) DeepCopyInto(out *RedisClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.