Skip to content

Commit

Permalink
Merge branch 'master' into fix-sdb-constants
Browse files Browse the repository at this point in the history
  • Loading branch information
AshrafulHaqueToni authored Feb 8, 2024
2 parents 7037cb1 + 3a9f337 commit 7594239
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 15 deletions.
41 changes: 27 additions & 14 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 Expand Up @@ -540,7 +548,12 @@ const (
EnvZooKeeperClusterSize = "CLUSTER_SIZE"
EnvZooKeeperUser = "ZK_USER"
EnvZooKeeperPassword = "ZK_PASSWORD"
ZooKeeperSuperUsername = "super"
EnvZooKeeperJaasFilePath = "ZK_JAAS_FILE_PATH"
EnvZooKeeperJVMFLags = "JVMFLAGS"

ZooKeeperSuperUsername = "super"
ZooKeeperSASLAuthLoginConfig = "-Djava.security.auth.login.config"
ZooKeeperJaasFilePath = "/data/jaas.conf"
)

// List of possible condition types for a KubeDB object
Expand Down
9 changes: 8 additions & 1 deletion apis/kubedb/v1alpha2/openapi_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions apis/kubedb/v1alpha2/zookeeper_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ type ZooKeeperSpec struct {
// +optional
Replicas *int32 `json:"replicas"`

// +kubebuilder:default=8080
AdminServerPort int32 `json:"adminServerPort"`

// Storage to specify how storage shall be used.
Storage *core.PersistentVolumeClaimSpec `json:"storage,omitempty"`

Expand Down
5 changes: 5 additions & 0 deletions crds/kubedb.com_zookeepers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ spec:
type: object
spec:
properties:
adminServerPort:
default: 8080
format: int32
type: integer
authSecret:
properties:
externallyManaged:
Expand Down Expand Up @@ -2732,6 +2736,7 @@ spec:
version:
type: string
required:
- adminServerPort
- version
type: object
status:
Expand Down

0 comments on commit 7594239

Please sign in to comment.