Skip to content

Commit

Permalink
Add ZooKeeper SASL auth variables (#1141)
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 07e7be0 commit 3a9f337
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
7 changes: 6 additions & 1 deletion apis/kubedb/v1alpha2/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -548,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 3a9f337

Please sign in to comment.