Documentation
¶
Overview ¶
Package v1 contains API Schema definitions for the databases v1 API group +kubebuilder:object:generate=true +groupName=databases.spotahome.com
Index ¶
- Constants
- Variables
- type AuthSettings
- type Authorization
- type FailoverPolicy
- type MonitorStatus
- type Phase
- type RedisExporter
- type RedisFailover
- type RedisFailoverDetailedStatus
- type RedisFailoverList
- type RedisFailoverSpec
- type RedisFailoverStatus
- func (in *RedisFailoverStatus) DeepCopy() *RedisFailoverStatus
- func (in *RedisFailoverStatus) DeepCopyInto(out *RedisFailoverStatus)
- func (r *RedisFailoverStatus) IsPaused() bool
- func (r *RedisFailoverStatus) IsWaitingPodReady() bool
- func (r *RedisFailoverStatus) SetFailedPhase(message string)
- func (r *RedisFailoverStatus) SetMasterDown(ip string, port string)
- func (r *RedisFailoverStatus) SetMasterOK(ip string, port string)
- func (r *RedisFailoverStatus) SetPausedPhase(message string)
- func (r *RedisFailoverStatus) SetReady(message string)
- func (r *RedisFailoverStatus) SetWaitingPodReady(message string)
- type RedisSentinel
- type RedisSentinelList
- type RedisSentinelSpec
- type RedisSentinelStatus
- type RedisSettings
- type RedisStatusInstance
- type RedisStatusInstanceRedis
- type RedisStatusInstanceSentinel
- type RedisStatusMaster
- type RedisStatusMasterStatus
- type RedisStorage
- type SentinelExporter
- type SentinelMonitorNode
- type SentinelPhase
- type SentinelReference
- type SentinelSettings
Constants ¶
const (
DefaultRedisPort string = "6379"
)
const (
DefaultSentinelNumber = 3
)
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "databases.spotahome.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 AuthSettings ¶
type AuthSettings struct {
SecretPath string `json:"secretPath,omitempty"`
}
AuthSettings contains settings about auth
func (*AuthSettings) DeepCopy ¶
func (in *AuthSettings) DeepCopy() *AuthSettings
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthSettings.
func (*AuthSettings) DeepCopyInto ¶
func (in *AuthSettings) DeepCopyInto(out *AuthSettings)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Authorization ¶
type Authorization struct { // Username the username for redis Username string `json:"username,omitempty"` // PasswordSecret the password secret for redis PasswordSecret string `json:"passwordSecret,omitempty"` // TLSSecret the tls secret TLSSecret string `json:"tlsSecret,omitempty"` }
Authorization defines the authorization settings for redis
func (*Authorization) DeepCopy ¶
func (in *Authorization) DeepCopy() *Authorization
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Authorization.
func (*Authorization) DeepCopyInto ¶
func (in *Authorization) DeepCopyInto(out *Authorization)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FailoverPolicy ¶
type FailoverPolicy string
const ( SentinelFailoverPolicy FailoverPolicy = "sentinel" ManualFailoverPolicy FailoverPolicy = "manual" )
type MonitorStatus ¶
type MonitorStatus struct { // Policy the failover policy Policy FailoverPolicy `json:"policy,omitempty"` // Name monitor name Name string `json:"name,omitempty"` // Username sentinel username Username string `json:"username,omitempty"` // PasswordSecret PasswordSecret string `json:"passwordSecret,omitempty"` // OldPasswordSecret OldPasswordSecret string `json:"oldPasswordSecret,omitempty"` // TLSSecret the tls secret TLSSecret string `json:"tlsSecret,omitempty"` // Nodes the sentinel monitor nodes Nodes []SentinelMonitorNode `json:"nodes,omitempty"` }
func (*MonitorStatus) DeepCopy ¶
func (in *MonitorStatus) DeepCopy() *MonitorStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitorStatus.
func (*MonitorStatus) DeepCopyInto ¶
func (in *MonitorStatus) DeepCopyInto(out *MonitorStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisExporter ¶
type RedisExporter struct { Enabled bool `json:"enabled,omitempty"` Image string `json:"image,omitempty"` ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"` Resources corev1.ResourceRequirements `json:"resources,omitempty"` }
RedisExporter defines the specification for the redis exporter
func (*RedisExporter) DeepCopy ¶
func (in *RedisExporter) DeepCopy() *RedisExporter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisExporter.
func (*RedisExporter) DeepCopyInto ¶
func (in *RedisExporter) DeepCopyInto(out *RedisExporter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisFailover ¶
type RedisFailover struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RedisFailoverSpec `json:"spec,omitempty"` Status RedisFailoverStatus `json:"status,omitempty"` }
RedisFailover is the Schema for the redisfailovers API
func (*RedisFailover) DeepCopy ¶
func (in *RedisFailover) DeepCopy() *RedisFailover
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisFailover.
func (*RedisFailover) DeepCopyInto ¶
func (in *RedisFailover) DeepCopyInto(out *RedisFailover)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RedisFailover) DeepCopyObject ¶
func (in *RedisFailover) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*RedisFailover) Validate ¶
func (r *RedisFailover) Validate() error
Validate set the values by default if not defined and checks if the values given are valid TODO: remove this validation and use the kubebuilder validation
type RedisFailoverDetailedStatus ¶
type RedisFailoverDetailedStatus struct { // Phase Phase Phase `json:"phase,omitempty"` // Message the status message Message string `json:"message,omitempty"` // Nodes the redis cluster nodes Nodes []core.RedisDetailedNode `json:"nodes,omitempty"` }
RedisFailoverDetailedStatus
func (*RedisFailoverDetailedStatus) DeepCopy ¶
func (in *RedisFailoverDetailedStatus) DeepCopy() *RedisFailoverDetailedStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisFailoverDetailedStatus.
func (*RedisFailoverDetailedStatus) DeepCopyInto ¶
func (in *RedisFailoverDetailedStatus) DeepCopyInto(out *RedisFailoverDetailedStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisFailoverList ¶
type RedisFailoverList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []RedisFailover `json:"items"` }
RedisFailoverList contains a list of RedisFailover
func (*RedisFailoverList) DeepCopy ¶
func (in *RedisFailoverList) DeepCopy() *RedisFailoverList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisFailoverList.
func (*RedisFailoverList) DeepCopyInto ¶
func (in *RedisFailoverList) DeepCopyInto(out *RedisFailoverList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RedisFailoverList) DeepCopyObject ¶
func (in *RedisFailoverList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RedisFailoverSpec ¶
type RedisFailoverSpec struct { Redis RedisSettings `json:"redis,omitempty"` Sentinel *SentinelSettings `json:"sentinel,omitempty"` // Auth Auth AuthSettings `json:"auth,omitempty"` // TODO: remove this field in 3.20, which not used // +kubebuilder:deprecatedversion:warning=not supported anymore LabelWhitelist []string `json:"labelWhitelist,omitempty"` // EnableActiveRedis enable active-active model for Redis EnableActiveRedis bool `json:"enableActiveRedis,omitempty"` // ServiceID the service id for activeredis // +kubebuilder:validation:Minimum=0 // +kubebuilder:validation:Maximum=15 ServiceID *int32 `json:"serviceID,omitempty"` }
RedisFailoverSpec represents a Redis failover spec
func (*RedisFailoverSpec) DeepCopy ¶
func (in *RedisFailoverSpec) DeepCopy() *RedisFailoverSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisFailoverSpec.
func (*RedisFailoverSpec) DeepCopyInto ¶
func (in *RedisFailoverSpec) DeepCopyInto(out *RedisFailoverSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisFailoverStatus ¶
type RedisFailoverStatus struct { // Phase Phase Phase `json:"phase,omitempty"` // Message the status message Message string `json:"message,omitempty"` // Instance the redis instance replica info Instance RedisStatusInstance `json:"instance,omitempty"` // Master the redis master access info Master RedisStatusMaster `json:"master,omitempty"` // Nodes the redis cluster nodes Nodes []core.RedisNode `json:"nodes,omitempty"` // Version // TODO: remove this field in 3.20, which not used Version string `json:"version,omitempty"` // TLSSecret the tls secret TLSSecret string `json:"tlsSecret,omitempty"` // Monitor the monitor status Monitor MonitorStatus `json:"monitor,omitempty"` // DetailedStatusRef detailed status resource ref DetailedStatusRef *corev1.ObjectReference `json:"detailedStatusRef,omitempty"` }
RedisFailoverStatus
func (*RedisFailoverStatus) DeepCopy ¶
func (in *RedisFailoverStatus) DeepCopy() *RedisFailoverStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisFailoverStatus.
func (*RedisFailoverStatus) DeepCopyInto ¶
func (in *RedisFailoverStatus) DeepCopyInto(out *RedisFailoverStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RedisFailoverStatus) IsPaused ¶
func (r *RedisFailoverStatus) IsPaused() bool
func (*RedisFailoverStatus) IsWaitingPodReady ¶
func (r *RedisFailoverStatus) IsWaitingPodReady() bool
func (*RedisFailoverStatus) SetFailedPhase ¶
func (r *RedisFailoverStatus) SetFailedPhase(message string)
func (*RedisFailoverStatus) SetMasterDown ¶
func (r *RedisFailoverStatus) SetMasterDown(ip string, port string)
func (*RedisFailoverStatus) SetMasterOK ¶
func (r *RedisFailoverStatus) SetMasterOK(ip string, port string)
func (*RedisFailoverStatus) SetPausedPhase ¶
func (r *RedisFailoverStatus) SetPausedPhase(message string)
func (*RedisFailoverStatus) SetReady ¶
func (r *RedisFailoverStatus) SetReady(message string)
func (*RedisFailoverStatus) SetWaitingPodReady ¶
func (r *RedisFailoverStatus) SetWaitingPodReady(message string)
type RedisSentinel ¶
type RedisSentinel struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RedisSentinelSpec `json:"spec,omitempty"` Status RedisSentinelStatus `json:"status,omitempty"` }
RedisSentinel is the Schema for the redissentinels API
func (*RedisSentinel) DeepCopy ¶
func (in *RedisSentinel) DeepCopy() *RedisSentinel
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisSentinel.
func (*RedisSentinel) DeepCopyInto ¶
func (in *RedisSentinel) DeepCopyInto(out *RedisSentinel)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RedisSentinel) DeepCopyObject ¶
func (in *RedisSentinel) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RedisSentinelList ¶
type RedisSentinelList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []RedisSentinel `json:"items"` }
RedisSentinelList contains a list of RedisSentinel
func (*RedisSentinelList) DeepCopy ¶
func (in *RedisSentinelList) DeepCopy() *RedisSentinelList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisSentinelList.
func (*RedisSentinelList) DeepCopyInto ¶
func (in *RedisSentinelList) DeepCopyInto(out *RedisSentinelList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RedisSentinelList) DeepCopyObject ¶
func (in *RedisSentinelList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RedisSentinelSpec ¶
type RedisSentinelSpec struct { // Image the redis sentinel image Image string `json:"image,omitempty"` // ImagePullPolicy the image pull policy ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"` // ImagePullSecrets the image pull secrets ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"` // Replicas the number of sentinel replicas // +kubebuilder:validation:Minimum=3 Replicas int32 `json:"replicas,omitempty"` // Resources the resources for sentinel Resources corev1.ResourceRequirements `json:"resources,omitempty"` // Config the config for sentinel CustomConfig map[string]string `json:"customConfig,omitempty"` // Exporter defines the specification for the sentinel exporter Exporter *SentinelExporter `json:"exporter,omitempty"` // Expose Expose core.InstanceAccess `json:"expose,omitempty"` // PasswordSecret PasswordSecret string `json:"passwordSecret,omitempty"` // EnableTLS enable TLS for redis EnableTLS bool `json:"enableTLS,omitempty"` // ExternalTLSSecret the external TLS secret to use, if not provided, the operator will create one ExternalTLSSecret string `json:"externalTLSSecret,omitempty"` Affinity *corev1.Affinity `json:"affinity,omitempty"` SecurityContext *corev1.PodSecurityContext `json:"securityContext,omitempty"` Tolerations []corev1.Toleration `json:"tolerations,omitempty"` NodeSelector map[string]string `json:"nodeSelector,omitempty"` PodAnnotations map[string]string `json:"podAnnotations,omitempty"` ServiceAnnotations map[string]string `json:"serviceAnnotations,omitempty"` }
RedisSentinelSpec defines the desired state of RedisSentinel
func (*RedisSentinelSpec) DeepCopy ¶
func (in *RedisSentinelSpec) DeepCopy() *RedisSentinelSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisSentinelSpec.
func (*RedisSentinelSpec) DeepCopyInto ¶
func (in *RedisSentinelSpec) DeepCopyInto(out *RedisSentinelSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisSentinelStatus ¶
type RedisSentinelStatus struct { // Phase the status phase Phase SentinelPhase `json:"phase,omitempty"` // Message the status message Message string `json:"message,omitempty"` // Nodes the redis cluster nodes Nodes []core.RedisNode `json:"nodes,omitempty"` // TLSSecret the tls secret TLSSecret string `json:"tlsSecret,omitempty"` }
RedisSentinelStatus defines the observed state of RedisSentinel
func (*RedisSentinelStatus) DeepCopy ¶
func (in *RedisSentinelStatus) DeepCopy() *RedisSentinelStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisSentinelStatus.
func (*RedisSentinelStatus) DeepCopyInto ¶
func (in *RedisSentinelStatus) DeepCopyInto(out *RedisSentinelStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisSettings ¶
type RedisSettings struct { Image string `json:"image,omitempty"` ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"` ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"` Replicas int32 `json:"replicas,omitempty"` Resources corev1.ResourceRequirements `json:"resources,omitempty"` // CustomConfig custom redis configuration CustomConfig map[string]string `json:"customConfig,omitempty"` Storage RedisStorage `json:"storage,omitempty"` // Exporter Exporter RedisExporter `json:"exporter,omitempty"` // Expose Expose core.InstanceAccess `json:"expose,omitempty"` // EnableTLS enable TLS for Redis EnableTLS bool `json:"enableTLS,omitempty"` Affinity *corev1.Affinity `json:"affinity,omitempty"` SecurityContext *corev1.PodSecurityContext `json:"securityContext,omitempty"` Tolerations []corev1.Toleration `json:"tolerations,omitempty"` NodeSelector map[string]string `json:"nodeSelector,omitempty"` PodAnnotations map[string]string `json:"podAnnotations,omitempty"` ServiceAnnotations map[string]string `json:"serviceAnnotations,omitempty"` Backup core.RedisBackup `json:"backup,omitempty"` Restore core.RedisRestore `json:"restore,omitempty"` }
RedisSettings defines the specification of the redis cluster
func (*RedisSettings) DeepCopy ¶
func (in *RedisSettings) DeepCopy() *RedisSettings
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisSettings.
func (*RedisSettings) DeepCopyInto ¶
func (in *RedisSettings) DeepCopyInto(out *RedisSettings)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisStatusInstance ¶
type RedisStatusInstance struct { Redis RedisStatusInstanceRedis `json:"redis,omitempty"` // Sentinel the sentinel instance info // +kubebuilder:deprecatedversion:warning=will deprecated in 3.22 Sentinel *RedisStatusInstanceSentinel `json:"sentinel,omitempty"` }
func (*RedisStatusInstance) DeepCopy ¶
func (in *RedisStatusInstance) DeepCopy() *RedisStatusInstance
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisStatusInstance.
func (*RedisStatusInstance) DeepCopyInto ¶
func (in *RedisStatusInstance) DeepCopyInto(out *RedisStatusInstance)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisStatusInstanceRedis ¶
type RedisStatusInstanceRedis struct { Size int32 `json:"size,omitempty"` Ready int32 `json:"ready,omitempty"` }
func (*RedisStatusInstanceRedis) DeepCopy ¶
func (in *RedisStatusInstanceRedis) DeepCopy() *RedisStatusInstanceRedis
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisStatusInstanceRedis.
func (*RedisStatusInstanceRedis) DeepCopyInto ¶
func (in *RedisStatusInstanceRedis) DeepCopyInto(out *RedisStatusInstanceRedis)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisStatusInstanceSentinel ¶
type RedisStatusInstanceSentinel struct { Size int32 `json:"size,omitempty"` Ready int32 `json:"ready,omitempty"` Service string `json:"service,omitempty"` ClusterIP string `json:"clusterIp,omitempty"` Port string `json:"port,omitempty"` }
func (*RedisStatusInstanceSentinel) DeepCopy ¶
func (in *RedisStatusInstanceSentinel) DeepCopy() *RedisStatusInstanceSentinel
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisStatusInstanceSentinel.
func (*RedisStatusInstanceSentinel) DeepCopyInto ¶
func (in *RedisStatusInstanceSentinel) DeepCopyInto(out *RedisStatusInstanceSentinel)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisStatusMaster ¶
type RedisStatusMaster struct { Name string `json:"name"` Status RedisStatusMasterStatus `json:"status"` Address string `json:"address"` }
func (*RedisStatusMaster) DeepCopy ¶
func (in *RedisStatusMaster) DeepCopy() *RedisStatusMaster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisStatusMaster.
func (*RedisStatusMaster) DeepCopyInto ¶
func (in *RedisStatusMaster) DeepCopyInto(out *RedisStatusMaster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisStatusMasterStatus ¶
type RedisStatusMasterStatus string
const ( RedisStatusMasterOK RedisStatusMasterStatus = "ok" RedisStatusMasterDown RedisStatusMasterStatus = "down" )
type RedisStorage ¶
type RedisStorage struct { KeepAfterDeletion bool `json:"keepAfterDeletion,omitempty"` EmptyDir *corev1.EmptyDirVolumeSource `json:"emptyDir,omitempty"` PersistentVolumeClaim *corev1.PersistentVolumeClaim `json:"persistentVolumeClaim,omitempty"` }
RedisStorage defines the structure used to store the Redis Data
func (*RedisStorage) DeepCopy ¶
func (in *RedisStorage) DeepCopy() *RedisStorage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisStorage.
func (*RedisStorage) DeepCopyInto ¶
func (in *RedisStorage) DeepCopyInto(out *RedisStorage)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SentinelExporter ¶
type SentinelExporter struct { Enabled bool `json:"enabled,omitempty"` Image string `json:"image,omitempty"` ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"` }
SentinelExporter defines the specification for the sentinel exporter
func (*SentinelExporter) DeepCopy ¶
func (in *SentinelExporter) DeepCopy() *SentinelExporter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SentinelExporter.
func (*SentinelExporter) DeepCopyInto ¶
func (in *SentinelExporter) DeepCopyInto(out *SentinelExporter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SentinelMonitorNode ¶
type SentinelMonitorNode struct { // IP the sentinel node ip IP string `json:"ip,omitempty"` // Port the sentinel node port Port int32 `json:"port,omitempty"` // Flags Flags string `json:"flags,omitempty"` }
func (*SentinelMonitorNode) DeepCopy ¶
func (in *SentinelMonitorNode) DeepCopy() *SentinelMonitorNode
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SentinelMonitorNode.
func (*SentinelMonitorNode) DeepCopyInto ¶
func (in *SentinelMonitorNode) DeepCopyInto(out *SentinelMonitorNode)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SentinelPhase ¶
type SentinelPhase string
SentinelPhase
const ( // SentinelCreating the sentinel creating phase SentinelCreating SentinelPhase = "Creating" // SentinelPaused the sentinel paused phase SentinelPaused SentinelPhase = "Paused" // SentinelReady the sentinel ready phase SentinelReady SentinelPhase = "Ready" // SentinelFail the sentinel fail phase SentinelFail SentinelPhase = "Fail" )
type SentinelReference ¶
type SentinelReference struct { // Addresses the sentinel addresses // +kubebuilder:validation:MinItems=3 Nodes []SentinelMonitorNode `json:"nodes,omitempty"` // Auth the sentinel auth Auth Authorization `json:"auth,omitempty"` }
SentinelReference defines the sentinel reference
func (*SentinelReference) DeepCopy ¶
func (in *SentinelReference) DeepCopy() *SentinelReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SentinelReference.
func (*SentinelReference) DeepCopyInto ¶
func (in *SentinelReference) DeepCopyInto(out *SentinelReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SentinelSettings ¶
type SentinelSettings struct { RedisSentinelSpec `json:",inline"` // SentinelReference the sentinel reference SentinelReference *SentinelReference `json:"sentinelReference,omitempty"` // MonitorConfig configs for sentinel to monitor this replication, including: // - down-after-milliseconds // - failover-timeout // - parallel-syncs MonitorConfig map[string]string `json:"monitorConfig,omitempty"` // Quorum the number of Sentinels that need to agree about the fact the master is not reachable, // in order to really mark the master as failing, and eventually start a failover procedure if possible. // If not specified, the default value is the majority of the Sentinels. Quorum *int32 `json:"quorum,omitempty"` }
SentinelSettings defines the specification of the sentinel cluster
func (*SentinelSettings) DeepCopy ¶
func (in *SentinelSettings) DeepCopy() *SentinelSettings
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SentinelSettings.
func (*SentinelSettings) DeepCopyInto ¶
func (in *SentinelSettings) DeepCopyInto(out *SentinelSettings)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.