mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-09-30 09:51:47 +02:00
allow in place pw rotation of system users (#1953)
* allow in place pw rotation of system users * block postgres user from rotation * mark pooler pods for replacement * adding podsGetter where pooler is synced in unit tests * move rotation code in extra function
This commit is contained in:
+3
-2
@@ -32,7 +32,8 @@ const (
|
||||
RoleOriginTeamsAPI
|
||||
RoleOriginSystem
|
||||
RoleOriginBootstrap
|
||||
RoleConnectionPooler
|
||||
RoleOriginConnectionPooler
|
||||
RoleOriginStream
|
||||
)
|
||||
|
||||
type syncUserOperation int
|
||||
@@ -194,7 +195,7 @@ func (r RoleOrigin) String() string {
|
||||
return "system role"
|
||||
case RoleOriginBootstrap:
|
||||
return "bootstrapped role"
|
||||
case RoleConnectionPooler:
|
||||
case RoleOriginConnectionPooler:
|
||||
return "connection pooler role"
|
||||
default:
|
||||
panic(fmt.Sprintf("bogus role origin value %d", r))
|
||||
|
||||
Reference in New Issue
Block a user