From cf1361c2810c6c56ec1a048afbf5087c6364864a Mon Sep 17 00:00:00 2001 From: Sebastiaan Mannem Date: Thu, 12 May 2022 22:09:28 +0200 Subject: [PATCH] Some final changes to make it work --- cmd/keeper/cmd/keeper.go | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/cmd/keeper/cmd/keeper.go b/cmd/keeper/cmd/keeper.go index 0fcde9415..10e554627 100644 --- a/cmd/keeper/cmd/keeper.go +++ b/cmd/keeper/cmd/keeper.go @@ -540,20 +540,22 @@ func NewPostgresKeeper(cfg *config, end chan error) (*PostgresKeeper, error) { dataDir: dataDir, - pgListenAddress: cfg.pgListenAddress, - pgAdvertiseAddress: cfg.pgAdvertiseAddress, - pgPort: cfg.pgPort, - pgAdvertisePort: cfg.pgAdvertisePort, - pgBinPath: cfg.pgBinPath, - pgReplConnType: cfg.pgReplConnType, - pgReplAuthMethod: cfg.pgReplAuthMethod, - pgReplSslMode: cfg.pgReplSslMode, - pgReplUsername: cfg.pgReplUsername, - pgReplPassword: cfg.pgReplPassword, - pgSUConnType: cfg.pgSUConnType, - pgSUAuthMethod: cfg.pgSUAuthMethod, - pgSUUsername: cfg.pgSUUsername, - pgSUPassword: cfg.pgSUPassword, + pgListenAddress: cfg.pgListenAddress, + pgAdvertiseAddress: cfg.pgAdvertiseAddress, + pgPort: cfg.pgPort, + pgAdvertisePort: cfg.pgAdvertisePort, + pgBinPath: cfg.pgBinPath, + pgReplConnType: cfg.pgReplConnType, + pgReplAuthMethod: cfg.pgReplAuthMethod, + pgReplLocalAuthMethod: cfg.pgReplLocalAuthMethod, + pgReplSslMode: cfg.pgReplSslMode, + pgReplUsername: cfg.pgReplUsername, + pgReplPassword: cfg.pgReplPassword, + pgSUConnType: cfg.pgSUConnType, + pgSUAuthMethod: cfg.pgSUAuthMethod, + pgSULocalAuthMethod: cfg.pgSULocalAuthMethod, + pgSUUsername: cfg.pgSUUsername, + pgSUPassword: cfg.pgSUPassword, sleepInterval: cluster.DefaultSleepInterval, requestTimeout: cluster.DefaultRequestTimeout, @@ -1959,6 +1961,7 @@ func keeper(c *cobra.Command, args []string) { validAuthMethods["md5"] = struct{}{} validAuthMethods["cert"] = struct{}{} validAuthMethods["ident"] = struct{}{} + validAuthMethods["peer"] = struct{}{} validConnectionTypes := make(map[string]struct{}) validConnectionTypes["host"] = struct{}{} validConnectionTypes["hostssl"] = struct{}{}