Rename the option
This commit is contained in:
		
							parent
							
								
									83ef5ff5b6
								
							
						
					
					
						commit
						ed6e028b21
					
				|  | @ -365,7 +365,7 @@ key. | ||||||
|   role name to grant to team members created from the Teams API. The default is |   role name to grant to team members created from the Teams API. The default is | ||||||
|   `admin`, that role is created by Spilo as a `NOLOGIN` role. |   `admin`, that role is created by Spilo as a `NOLOGIN` role. | ||||||
| 
 | 
 | ||||||
| * **add_admin_flag_to_robot_roles** | * **enable_admin_role_for_users** | ||||||
|    if `true`, the `team_admin_role` will have the rights to grant roles coming from PG manifests. Such roles will be created as in "CREATE ROLE 'role_from_manifest' ... ADMIN 'team_admin_role'". The default is `true`. |    if `true`, the `team_admin_role` will have the rights to grant roles coming from PG manifests. Such roles will be created as in "CREATE ROLE 'role_from_manifest' ... ADMIN 'team_admin_role'". The default is `true`. | ||||||
| 
 | 
 | ||||||
| * **pam_role_name** | * **pam_role_name** | ||||||
|  |  | ||||||
|  | @ -19,6 +19,7 @@ data: | ||||||
|   # postgres_superuser_teams: "postgres_superusers" |   # postgres_superuser_teams: "postgres_superusers" | ||||||
|   # enable_team_superuser: "false" |   # enable_team_superuser: "false" | ||||||
|   # team_admin_role: "admin" |   # team_admin_role: "admin" | ||||||
|  |   # enable_admin_role_for_users: "true" | ||||||
|   # teams_api_url: http://fake-teams-api.default.svc.cluster.local |   # teams_api_url: http://fake-teams-api.default.svc.cluster.local | ||||||
|   # team_api_role_configuration: "log_statement:all" |   # team_api_role_configuration: "log_statement:all" | ||||||
|   # infrastructure_roles_secret_name: postgresql-infrastructure-roles |   # infrastructure_roles_secret_name: postgresql-infrastructure-roles | ||||||
|  |  | ||||||
|  | @ -710,7 +710,7 @@ func (c *Cluster) initRobotUsers() error { | ||||||
| 			return fmt.Errorf("invalid flags for user %q: %v", username, err) | 			return fmt.Errorf("invalid flags for user %q: %v", username, err) | ||||||
| 		} | 		} | ||||||
| 		adminRole := "" | 		adminRole := "" | ||||||
| 		if c.OpConfig.AddAdminFlagToRobotRoles { | 		if c.OpConfig.EnableAdminRoleForUsers { | ||||||
| 			adminRole = c.OpConfig.TeamAdminRole | 			adminRole = c.OpConfig.TeamAdminRole | ||||||
| 		} | 		} | ||||||
| 		newRole := spec.PgUser{ | 		newRole := spec.PgUser{ | ||||||
|  |  | ||||||
|  | @ -89,7 +89,7 @@ type Config struct { | ||||||
| 	EnableTeamsAPI                         bool   `name:"enable_teams_api" default:"true"` | 	EnableTeamsAPI                         bool   `name:"enable_teams_api" default:"true"` | ||||||
| 	EnableTeamSuperuser                    bool   `name:"enable_team_superuser" default:"false"` | 	EnableTeamSuperuser                    bool   `name:"enable_team_superuser" default:"false"` | ||||||
| 	TeamAdminRole                          string `name:"team_admin_role" default:"admin"` | 	TeamAdminRole                          string `name:"team_admin_role" default:"admin"` | ||||||
| 	AddAdminFlagToRobotRoles               bool   `name:"add_admin_flag_to_robot_roles" default:"true"` | 	EnableAdminRoleForUsers                bool   `name:"enable_admin_role_for_users" default:"true"` | ||||||
| 	EnableMasterLoadBalancer               bool   `name:"enable_master_load_balancer" default:"true"` | 	EnableMasterLoadBalancer               bool   `name:"enable_master_load_balancer" default:"true"` | ||||||
| 	EnableReplicaLoadBalancer              bool   `name:"enable_replica_load_balancer" default:"false"` | 	EnableReplicaLoadBalancer              bool   `name:"enable_replica_load_balancer" default:"false"` | ||||||
| 	// deprecated and kept for backward compatibility
 | 	// deprecated and kept for backward compatibility
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue