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 Phase
- type RedisBackup
- type RedisBackupStorage
- type RedisBackupTarget
- type RedisExporter
- type RedisExpose
- type RedisFailover
- 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 RedisRestore
- type RedisServiceMonitorSpec
- type RedisSettings
- type RedisStatusInstance
- type RedisStatusInstanceRedis
- type RedisStatusInstanceSentinel
- type RedisStatusMaster
- type RedisStatusMasterStatus
- type RedisStorage
- type S3Option
- type Schedule
- type SentinelExporter
- type SentinelSettings
Constants ¶
const ( PhaseFail Phase = "Fail" PhaseCreating Phase = "Creating" PhasePending Phase = "Pending" PhaseReady Phase = "Ready" PhaseWaitingPodReady Phase = "WaitingPodReady" PhasePaused Phase = "Paused" 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 { // SecretName is the name of the secret containing the auth credentials. 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 RedisBackup ¶
type RedisBackup struct { // Image is the Redis backup image to run. Image string `json:"image,omitempty"` // Schedule is the backup schedule. Schedule []Schedule `json:"schedule,omitempty"` }
RedisBackup defines the structure used to backup the Redis Data
func (*RedisBackup) DeepCopy ¶
func (in *RedisBackup) DeepCopy() *RedisBackup
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisBackup.
func (*RedisBackup) DeepCopyInto ¶
func (in *RedisBackup) DeepCopyInto(out *RedisBackup)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisBackupStorage ¶
type RedisBackupStorage struct { // StorageClassName is the name of the StorageClass to use for the PersistentVolumeClaim. StorageClassName string `json:"storageClassName,omitempty"` // Size is the size of the PersistentVolumeClaim. Size resource.Quantity `json:"size,omitempty"` }
RedisBackupStorage
func (*RedisBackupStorage) DeepCopy ¶
func (in *RedisBackupStorage) DeepCopy() *RedisBackupStorage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisBackupStorage.
func (*RedisBackupStorage) DeepCopyInto ¶
func (in *RedisBackupStorage) DeepCopyInto(out *RedisBackupStorage)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisBackupTarget ¶
type RedisBackupTarget struct { // S3Option is the S3 backup target configuration. S3Option S3Option `json:"s3Option,omitempty"` }
RedisBackupTarget
func (*RedisBackupTarget) DeepCopy ¶
func (in *RedisBackupTarget) DeepCopy() *RedisBackupTarget
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisBackupTarget.
func (*RedisBackupTarget) DeepCopyInto ¶
func (in *RedisBackupTarget) DeepCopyInto(out *RedisBackupTarget)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisExporter ¶
type RedisExporter struct { // Enabled is the flag to enable redis exporter Enabled bool `json:"enabled,omitempty"` // Image exporter image Image string `json:"image,omitempty"` // ImagePullPolicy image pull policy. ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,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 RedisExpose ¶
type RedisExpose struct { // EnableNodePort enable nodeport EnableNodePort bool `json:"enableNodePort,omitempty"` // ExposeImage expose image ExposeImage string `json:"exposeImage,omitempty"` // AccessPort lb service access port AccessPort int32 `json:"accessPort,omitempty"` // DataStorageNodePortSequence redis port list separated by commas DataStorageNodePortSequence string `json:"dataStorageNodePortSequence,omitempty"` // DataStorageNodePortMap redis port map referred by pod name DataStorageNodePortMap map[string]int32 `json:"dataStorageNodePortMap,omitempty"` }
RedisExpose for nodeport
func (*RedisExpose) DeepCopy ¶
func (in *RedisExpose) DeepCopy() *RedisExpose
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisExpose.
func (*RedisExpose) DeepCopyInto ¶
func (in *RedisExpose) DeepCopyInto(out *RedisExpose)
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
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 redis data node settings Redis RedisSettings `json:"redis,omitempty"` // Sentinel sentinel node settings Sentinel SentinelSettings `json:"sentinel,omitempty"` // Auth default user auth settings Auth AuthSettings `json:"auth,omitempty"` // LabelWhitelist is a list of label names that are allowed to be present on a pod LabelWhitelist []string `json:"labelWhitelist,omitempty"` // EnableTLS enable TLS for Redis EnableTLS bool `json:"enableTLS,omitempty"` // ServiceMonitor service monitor for prometheus ServiceMonitor RedisServiceMonitorSpec `json:"serviceMonitor,omitempty"` // Expose service access configuration Expose RedisExpose `json:"expose,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 { // The last time this condition was updated. LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"` // Last time the condition transitioned from one status to another. LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` // Message Message string `json:"message,omitempty"` // Creating, Pending, Fail, Ready Phase Phase `json:"phase,omitempty"` // Instance Instance RedisStatusInstance `json:"instance,omitempty"` // Master master status Master RedisStatusMaster `json:"master,omitempty"` // Version Version string `json:"version,omitempty"` }
RedisFailoverStatus defines the observed state of RedisFailover
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 RedisRestore ¶
type RedisRestore struct { // Image is the Redis restore image to run. Image string `json:"image,omitempty"` // ImagePullPolicy is the Image pull policy. ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"` // BackupName is the backup cr name to restore. BackupName string `json:"backupName,omitempty"` }
RedisBackup defines the structure used to restore the Redis Data
func (*RedisRestore) DeepCopy ¶
func (in *RedisRestore) DeepCopy() *RedisRestore
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisRestore.
func (*RedisRestore) DeepCopyInto ¶
func (in *RedisRestore) DeepCopyInto(out *RedisRestore)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisServiceMonitorSpec ¶
type RedisServiceMonitorSpec struct { // CustomMetricRelabelings custom metric relabelings CustomMetricRelabelings bool `json:"customMetricRelabelings,omitempty"` // MetricRelabelConfigs metric relabel configs MetricRelabelConfigs []*smv1.RelabelConfig `json:"metricRelabelings,omitempty"` // Interval Interval string `json:"interval,omitempty"` // ScrapeTimeout ScrapeTimeout string `json:"scrapeTimeout,omitempty"` }
RedisServiceMonitorSpec
func (*RedisServiceMonitorSpec) DeepCopy ¶
func (in *RedisServiceMonitorSpec) DeepCopy() *RedisServiceMonitorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisServiceMonitorSpec.
func (*RedisServiceMonitorSpec) DeepCopyInto ¶
func (in *RedisServiceMonitorSpec) DeepCopyInto(out *RedisServiceMonitorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisSettings ¶
type RedisSettings struct { // Image is the Redis image to run. Image string `json:"image,omitempty"` // ImagePullPolicy is the Image pull policy. ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"` // Replicas is the number of Redis replicas to run. // +kubebuilder:validation:Minimum=0 // +kubebuilder:validation:Maximum=5 Replicas int32 `json:"replicas,omitempty"` // Resources is the resource requirements for the Redis container. Resources corev1.ResourceRequirements `json:"resources,omitempty"` // CustomConfig is a map of custom Redis configuration options. CustomConfig map[string]string `json:"customConfig,omitempty"` // Storage redis data persistence settings. Storage RedisStorage `json:"storage,omitempty"` // Exporter prometheus exporter settings. Exporter RedisExporter `json:"exporter,omitempty"` // Affinity is the affinity settings for the Redis pods. Affinity *corev1.Affinity `json:"affinity,omitempty"` // SecurityContext is the security context for the Redis pods. SecurityContext *corev1.PodSecurityContext `json:"securityContext,omitempty"` // ImagePullSecrets is the list of secrets used to pull the Redis image from a private registry. ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"` // Tolerations is the list of tolerations for the Redis pods. Tolerations []corev1.Toleration `json:"tolerations,omitempty"` // NodeSelector is the node selector for the Redis pods. NodeSelector map[string]string `json:"nodeSelector,omitempty"` // PodAnnotations is the annotations for the Redis pods. PodAnnotations map[string]string `json:"podAnnotations,omitempty"` // ServiceAnnotations is the annotations for the Redis service. ServiceAnnotations map[string]string `json:"serviceAnnotations,omitempty"` // HostNetwork is the host network settings for the Redis pods. HostNetwork bool `json:"hostNetwork,omitempty"` // DNSPolicy is the DNS policy for the Redis pods. DNSPolicy corev1.DNSPolicy `json:"dnsPolicy,omitempty"` // Backup schedule backup configuration. Backup RedisBackup `json:"backup,omitempty"` // Restore restore redis instance from backup. Restore RedisRestore `json:"restore,omitempty"` // IPFamily represents the IP Family (IPv4 or IPv6). This type is used to express the family of an IP expressed by a type (e.g. service.spec.ipFamilies). // +kubebuilder:validation:Enum=IPv4;IPv6 IPFamilyPrefer corev1.IPFamily `json:"ipFamilyPrefer,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 RedisStatusInstanceSentinel `json:"sentinel,omitempty"` }
RedisStatusInstance
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"` }
RedisStatusInstanceRedis
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"` }
RedisStatusInstanceSentinel
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 master pod name Name string `json:"name"` // Status master service status Status RedisStatusMasterStatus `json:"status"` // Address master access ip:port Address string `json:"address"` }
RedisStatusMaster
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 master is online RedisStatusMasterOK RedisStatusMasterStatus = "ok" // RedisStatusMasterDown master is offline RedisStatusMasterDown RedisStatusMasterStatus = "down" )
type RedisStorage ¶
type RedisStorage struct { // KeepAfterDeletion is the flag to keep the data after the RedisFailover is deleted. KeepAfterDeletion bool `json:"keepAfterDeletion,omitempty"` // PersistentVolumeClaim is the PVC volume source. 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 S3Option ¶
type S3Option struct { // S3Secret s3 storage access secret S3Secret string `json:"s3Secret,omitempty"` // Bucket s3 storage bucket Bucket string `json:"bucket,omitempty"` // Dir s3 storage dir Dir string `json:"dir,omitempty"` }
S3Option
func (*S3Option) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3Option.
func (*S3Option) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Schedule ¶
type Schedule struct { // Name is the scheduled backup name. Name string `json:"name,omitempty"` // Schedule crontab like schedule. Schedule string `json:"schedule"` // Keep is the number of backups to keep. // +kubebuilder:validation:Minimum=1 Keep int32 `json:"keep"` // KeepAfterDeletion is the flag to keep the data after the RedisFailover is deleted. KeepAfterDeletion bool `json:"keepAfterDeletion,omitempty"` // Storage is the backup storage configuration. Storage RedisBackupStorage `json:"storage"` // Target is the backup target configuration. Target RedisBackupTarget `json:"target,omitempty"` }
Schedule
func (*Schedule) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Schedule.
func (*Schedule) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SentinelExporter ¶
type SentinelExporter struct { // Enabled is the flag to enable sentinel exporter Enabled bool `json:"enabled,omitempty"` // Image exporter image Image string `json:"image,omitempty"` // ImagePullPolicy image pull policy. 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 SentinelSettings ¶
type SentinelSettings struct { // Image is the Redis image to run. Image string `json:"image,omitempty"` // ImagePullPolicy is the Image pull policy. ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"` // Replicas is the number of Redis replicas to run. // +kubebuilder:validation:Minimum=3 Replicas int32 `json:"replicas,omitempty"` // Resources is the resource requirements for the Redis container. Resources corev1.ResourceRequirements `json:"resources,omitempty"` // CustomConfig sentinel configuration options. CustomConfig map[string]string `json:"customConfig,omitempty"` // Command startup commands Command []string `json:"command,omitempty"` // Affinity is the affinity settings for the Redis pods. Affinity *corev1.Affinity `json:"affinity,omitempty"` // SecurityContext is the security context for the Redis pods. SecurityContext *corev1.PodSecurityContext `json:"securityContext,omitempty"` // ImagePullSecrets is the list of secrets used to pull the Redis image from a private registry. ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"` // Tolerations is the list of tolerations for the Redis pods. Tolerations []corev1.Toleration `json:"tolerations,omitempty"` // NodeSelector is the node selector for the Redis pods. NodeSelector map[string]string `json:"nodeSelector,omitempty"` // PodAnnotations is the annotations for the Redis pods. PodAnnotations map[string]string `json:"podAnnotations,omitempty"` // ServiceAnnotations is the annotations for the Redis service. ServiceAnnotations map[string]string `json:"serviceAnnotations,omitempty"` // Exporter prometheus exporter settings. Exporter SentinelExporter `json:"exporter,omitempty"` // HostNetwork is the host network settings for the Redis pods. HostNetwork bool `json:"hostNetwork,omitempty"` // DNSPolicy is the DNS policy for the Redis pods. DNSPolicy corev1.DNSPolicy `json:"dnsPolicy,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.