Skip to content

Commit

Permalink
Pgpool auth problem
Browse files Browse the repository at this point in the history
Signed-off-by: MobarakHsn <[email protected]>
  • Loading branch information
MobarakHsn committed Jan 18, 2024
1 parent dc133e5 commit 63f2127
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions pgpool/kubedb_client_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ func (o *KubeDBClientBuilder) getPgpoolAuthCredentials() (string, string, error)
return "", "", fmt.Errorf("DB root user is not set")
}
pass, ok := secret.Data[core.BasicAuthPasswordKey]
fmt.Println("Here is the password used in pgpool: ", string(pass))
if !ok {
return "", "", fmt.Errorf("DB root password is not set")
}
Expand Down
2 changes: 2 additions & 0 deletions postgres/kubedb_client_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ func (o *KubeDBClientBuilder) getPostgresAuthCredentials() (string, string, erro
if err != nil {
return "", "", err
}
pass := string(secret.Data[core.BasicAuthPasswordKey])
fmt.Println("Here is the password used in postgres: ", pass)
return string(secret.Data[core.BasicAuthUsernameKey]), string(secret.Data[core.BasicAuthPasswordKey]), nil
}

Expand Down

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

0 comments on commit 63f2127

Please sign in to comment.