mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-24 13:38:17 +02:00
zero/bootstrap: reset back to inmem databroker if connection string is empty (#4955)
This commit is contained in:
parent
9d0e727e4d
commit
7edd538be7
2 changed files with 72 additions and 1 deletions
|
@ -83,7 +83,10 @@ func (src *source) notifyListeners(ctx context.Context, cfg *config.Config) {
|
|||
|
||||
func applyBootstrapConfig(dst *config.Options, src *cluster_api.BootstrapConfig) {
|
||||
if src.DatabrokerStorageConnection != nil {
|
||||
dst.DataBrokerStorageType = "postgres"
|
||||
dst.DataBrokerStorageType = config.StoragePostgresName
|
||||
dst.DataBrokerStorageConnectionString = *src.DatabrokerStorageConnection
|
||||
} else {
|
||||
dst.DataBrokerStorageType = config.StorageInMemoryName
|
||||
dst.DataBrokerStorageConnectionString = ""
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue