Skip to content

Commit

Permalink
Fix druid for pg
Browse files Browse the repository at this point in the history
Signed-off-by: Tapajit Chandra Paul <[email protected]>
  • Loading branch information
tapojit047 committed Jul 9, 2024
1 parent f806315 commit 1fc1ae3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions apis/kubedb/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -978,6 +978,8 @@ const (
DruidPortRouters = 8888
DruidExporterPort = 9104

DruidMetadataStorageTypePostgres = "Postgres"

// Common Runtime Configurations Properties
// ZooKeeper
DruidZKServiceHost = "druid.zk.service.host"
Expand Down
3 changes: 2 additions & 1 deletion apis/kubedb/v1alpha2/druid_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,8 @@ func (d *Druid) AddDruidExtensionLoadList(druidExtensionLoadList string, extensi
func (d *Druid) GetMetadataStorageType(metadataStorage string) DruidMetadataStorageType {
if metadataStorage == string(DruidMetadataStorageMySQL) || metadataStorage == strings.ToLower(string(DruidMetadataStorageMySQL)) {
return DruidMetadataStorageMySQL
} else if metadataStorage == string(DruidMetadataStoragePostgreSQL) || metadataStorage == strings.ToLower(string(DruidMetadataStoragePostgreSQL)) {
} else if metadataStorage == string(DruidMetadataStoragePostgreSQL) || metadataStorage == strings.ToLower(string(DruidMetadataStoragePostgreSQL)) ||
metadataStorage == kubedb.DruidMetadataStorageTypePostgres || metadataStorage == strings.ToLower(string(kubedb.DruidMetadataStorageTypePostgres)) {
return DruidMetadataStoragePostgreSQL
} else {
panic(fmt.Sprintf("Unknown metadata storage type: %s", metadataStorage))
Expand Down

0 comments on commit 1fc1ae3

Please sign in to comment.