Documentation
¶
Overview ¶
Package v1beta2 contains API Schema definitions for the redis v1beta2 API group +kubebuilder:object:generate=true +groupName=redis.redis.opstreelabs.in
Index ¶
- Variables
- type RedisReplication
- func (in *RedisReplication) DeepCopy() *RedisReplication
- func (in *RedisReplication) DeepCopyInto(out *RedisReplication)
- func (in *RedisReplication) DeepCopyObject() runtime.Object
- func (rr *RedisReplication) GetStatefulSetName() string
- func (*RedisReplication) Hub()
- func (r *RedisReplication) SetupWebhookWithManager(mgr ctrl.Manager) error
- type RedisReplicationList
- type RedisReplicationSpec
- type RedisReplicationStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "redis.redis.opstreelabs.in", Version: "v1beta2"} // 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 RedisReplication ¶
type RedisReplication struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RedisReplicationSpec `json:"spec"` Status RedisReplicationStatus `json:"status,omitempty"` }
Redis is the Schema for the redis API
func (*RedisReplication) DeepCopy ¶
func (in *RedisReplication) DeepCopy() *RedisReplication
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisReplication.
func (*RedisReplication) DeepCopyInto ¶
func (in *RedisReplication) DeepCopyInto(out *RedisReplication)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RedisReplication) DeepCopyObject ¶
func (in *RedisReplication) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*RedisReplication) GetStatefulSetName ¶
func (rr *RedisReplication) GetStatefulSetName() string
func (*RedisReplication) Hub ¶
func (*RedisReplication) Hub()
Hub marks this type as a conversion hub.
func (*RedisReplication) SetupWebhookWithManager ¶
func (r *RedisReplication) SetupWebhookWithManager(mgr ctrl.Manager) error
type RedisReplicationList ¶
type RedisReplicationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []RedisReplication `json:"items"` }
RedisList contains a list of Redis
func (*RedisReplicationList) DeepCopy ¶
func (in *RedisReplicationList) DeepCopy() *RedisReplicationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisReplicationList.
func (*RedisReplicationList) DeepCopyInto ¶
func (in *RedisReplicationList) DeepCopyInto(out *RedisReplicationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RedisReplicationList) DeepCopyObject ¶
func (in *RedisReplicationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RedisReplicationSpec ¶
type RedisReplicationSpec struct { Size *int32 `json:"clusterSize"` KubernetesConfig common.KubernetesConfig `json:"kubernetesConfig"` RedisExporter *common.RedisExporter `json:"redisExporter,omitempty"` RedisConfig *common.RedisConfig `json:"redisConfig,omitempty"` Storage *common.Storage `json:"storage,omitempty"` NodeSelector map[string]string `json:"nodeSelector,omitempty"` PodSecurityContext *corev1.PodSecurityContext `json:"podSecurityContext,omitempty"` SecurityContext *corev1.SecurityContext `json:"securityContext,omitempty"` PriorityClassName string `json:"priorityClassName,omitempty"` Affinity *corev1.Affinity `json:"affinity,omitempty"` Tolerations *[]corev1.Toleration `json:"tolerations,omitempty"` TLS *common.TLSConfig `json:"TLS,omitempty"` PodDisruptionBudget *common.RedisPodDisruptionBudget `json:"pdb,omitempty"` ACL *common.ACLConfig `json:"acl,omitempty"` ReadinessProbe *corev1.Probe `json:"readinessProbe,omitempty" protobuf:"bytes,11,opt,name=readinessProbe"` LivenessProbe *corev1.Probe `json:"livenessProbe,omitempty" protobuf:"bytes,12,opt,name=livenessProbe"` InitContainer *common.InitContainer `json:"initContainer,omitempty"` Sidecars *[]common.Sidecar `json:"sidecars,omitempty"` ServiceAccountName *string `json:"serviceAccountName,omitempty"` TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty" protobuf:"varint,4,opt,name=terminationGracePeriodSeconds"` EnvVars *[]corev1.EnvVar `json:"env,omitempty"` TopologySpreadConstrains []corev1.TopologySpreadConstraint `json:"topologySpreadConstraints,omitempty"` HostPort *int `json:"hostPort,omitempty"` }
func (*RedisReplicationSpec) DeepCopy ¶
func (in *RedisReplicationSpec) DeepCopy() *RedisReplicationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisReplicationSpec.
func (*RedisReplicationSpec) DeepCopyInto ¶
func (in *RedisReplicationSpec) DeepCopyInto(out *RedisReplicationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RedisReplicationSpec) GetReplicationCounts ¶
func (cr *RedisReplicationSpec) GetReplicationCounts(t string) int32
type RedisReplicationStatus ¶
type RedisReplicationStatus struct {
MasterNode string `json:"masterNode,omitempty"`
}
RedisStatus defines the observed state of Redis
func (*RedisReplicationStatus) DeepCopy ¶
func (in *RedisReplicationStatus) DeepCopy() *RedisReplicationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisReplicationStatus.
func (*RedisReplicationStatus) DeepCopyInto ¶
func (in *RedisReplicationStatus) DeepCopyInto(out *RedisReplicationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.