Skip to content

Commit

Permalink
Add Redis Init Constants (#1148)
Browse files Browse the repository at this point in the history
Signed-off-by: Shaad7 <[email protected]>
  • Loading branch information
AbdullahAlShaad authored Feb 8, 2024
1 parent aa33c6e commit 07e7be0
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions apis/kubedb/v1alpha2/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -437,17 +437,20 @@ const (
// =========================== Redis Constants ============================
RedisConfigKey = "redis.conf" // RedisConfigKey is going to create for the customize redis configuration
// DefaultConfigKey is going to create for the default redis configuration
RedisContainerName = ResourceSingularRedis
RedisSentinelContainerName = "redissentinel"
DefaultConfigKey = "default.conf"
RedisShardKey = RedisKey + "/shard"
RedisDatabasePortName = "db"
RedisPrimaryServicePortName = "primary"
RedisDatabasePort = 6379
RedisSentinelPort = 26379
RedisGossipPortName = "gossip"
RedisGossipPort = 16379
RedisSentinelPortName = "sentinel"
RedisContainerName = ResourceSingularRedis
RedisSentinelContainerName = "redissentinel"
DefaultConfigKey = "default.conf"
RedisShardKey = RedisKey + "/shard"
RedisDatabasePortName = "db"
RedisPrimaryServicePortName = "primary"
RedisDatabasePort = 6379
RedisSentinelPort = 26379
RedisGossipPortName = "gossip"
RedisGossipPort = 16379
RedisSentinelPortName = "sentinel"
RedisInitContainerName = "redis-init"
RedisCoordinatorContainerName = "rd-coordinator"
RedisSentinelInitContainerName = "sentinel-init"

RedisScriptVolumeName = "script-vol"
RedisScriptVolumePath = "/scripts"
Expand All @@ -460,6 +463,8 @@ const (
RedisSentinelTLSVolumePath = "/sentinel-certs"
RedisConfigVolumeName = "redis-config"
RedisConfigVolumePath = "/usr/local/etc/redis/"
RedisInitVolumeName = "init-volume"
RedisInitVolumePath = "/init"

RedisNodeFlagMaster = "master"
RedisNodeFlagNoAddr = "noaddr"
Expand All @@ -468,8 +473,11 @@ const (
RedisKeyFileSecretSuffix = "key"
RedisPEMSecretSuffix = "pem"
RedisRootUsername = "default"
EnvRedisUser = "USERNAME"
EnvRedisPassword = "REDISCLI_AUTH"

EnvRedisUser = "USERNAME"
EnvRedisPassword = "REDISCLI_AUTH"
EnvRedisMode = "REDIS_MODE"
EnvRedisMajorRedisVersion = "MAJOR_REDIS_VERSION"

// =========================== PgBouncer Constants ============================
PgBouncerUpstreamServerCA = "upstream-server-ca.crt"
Expand Down

0 comments on commit 07e7be0

Please sign in to comment.