Allow global configuration options for API roles.

Add options to the PgUser structure, potentially allowing to set
per-role options in the cluster definition as well.

Introduce api_roles_configuration operator option with the default
of log_statement=all
This commit is contained in:
Oleksii Kliukin
2017-11-22 10:43:35 +01:00
parent 6dcd074ea0
commit 415a7fdc4d
6 changed files with 52 additions and 8 deletions
+2
View File
@@ -44,6 +44,7 @@ type syncUserOperation int
const (
PGSyncUserAdd = iota
PGsyncUserAlter
PGSyncAlterSet // handle ALTER ROLE SET parameter = value
)
// PodEvent describes the event for a single Pod
@@ -61,6 +62,7 @@ type PgUser struct {
Password string
Flags []string
MemberOf []string
Parameters map[string]string
}
// PgUserMap maps user names to the definitions.