fix typo addtional
This commit is contained in:
		
							parent
							
								
									78eaae2efc
								
							
						
					
					
						commit
						585fd07c43
					
				|  | @ -39,7 +39,7 @@ type OperatorConfigurationList struct { | ||||||
| type PostgresUsersConfiguration struct { | type PostgresUsersConfiguration struct { | ||||||
| 	SuperUsername                 string   `json:"super_username,omitempty"` | 	SuperUsername                 string   `json:"super_username,omitempty"` | ||||||
| 	ReplicationUsername           string   `json:"replication_username,omitempty"` | 	ReplicationUsername           string   `json:"replication_username,omitempty"` | ||||||
| 	AddtionalOwnerRoles           []string `json:"additional_owner_roles,omitempty"` | 	AdditionalOwnerRoles          []string `json:"additional_owner_roles,omitempty"` | ||||||
| 	EnablePasswordRotation        bool     `json:"enable_password_rotation,omitempty"` | 	EnablePasswordRotation        bool     `json:"enable_password_rotation,omitempty"` | ||||||
| 	PasswordRotationInterval      uint32   `json:"password_rotation_interval,omitempty"` | 	PasswordRotationInterval      uint32   `json:"password_rotation_interval,omitempty"` | ||||||
| 	PasswordRotationUserRetention uint32   `json:"password_rotation_user_retention,omitempty"` | 	PasswordRotationUserRetention uint32   `json:"password_rotation_user_retention,omitempty"` | ||||||
|  |  | ||||||
|  | @ -916,8 +916,8 @@ func (in *PostgresTeamSpec) DeepCopy() *PostgresTeamSpec { | ||||||
| // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
 | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
 | ||||||
| func (in *PostgresUsersConfiguration) DeepCopyInto(out *PostgresUsersConfiguration) { | func (in *PostgresUsersConfiguration) DeepCopyInto(out *PostgresUsersConfiguration) { | ||||||
| 	*out = *in | 	*out = *in | ||||||
| 	if in.AddtionalOwnerRoles != nil { | 	if in.AdditionalOwnerRoles != nil { | ||||||
| 		in, out := &in.AddtionalOwnerRoles, &out.AddtionalOwnerRoles | 		in, out := &in.AdditionalOwnerRoles, &out.AdditionalOwnerRoles | ||||||
| 		*out = make([]string, len(*in)) | 		*out = make([]string, len(*in)) | ||||||
| 		copy(*out, *in) | 		copy(*out, *in) | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|  | @ -1300,7 +1300,7 @@ func (c *Cluster) initRobotUsers() error { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| func (c *Cluster) initAdditionalOwnerRoles() { | func (c *Cluster) initAdditionalOwnerRoles() { | ||||||
| 	for _, additionalOwner := range c.OpConfig.AddtionalOwnerRoles { | 	for _, additionalOwner := range c.OpConfig.AdditionalOwnerRoles { | ||||||
| 		// fetch all database owners the additional should become a member of
 | 		// fetch all database owners the additional should become a member of
 | ||||||
| 		memberOf := make([]string, 0) | 		memberOf := make([]string, 0) | ||||||
| 		for username, pgUser := range c.pgUsers { | 		for username, pgUser := range c.pgUsers { | ||||||
|  |  | ||||||
|  | @ -55,7 +55,7 @@ func (c *Controller) importConfigurationFromCRD(fromCRD *acidv1.OperatorConfigur | ||||||
| 	// user config
 | 	// user config
 | ||||||
| 	result.SuperUsername = util.Coalesce(fromCRD.PostgresUsersConfiguration.SuperUsername, "postgres") | 	result.SuperUsername = util.Coalesce(fromCRD.PostgresUsersConfiguration.SuperUsername, "postgres") | ||||||
| 	result.ReplicationUsername = util.Coalesce(fromCRD.PostgresUsersConfiguration.ReplicationUsername, "standby") | 	result.ReplicationUsername = util.Coalesce(fromCRD.PostgresUsersConfiguration.ReplicationUsername, "standby") | ||||||
| 	result.CronAdminUsername = fromCRD.PostgresUsersConfiguration.CronAdminUsername | 	result.AdditionalOwnerRoles = fromCRD.PostgresUsersConfiguration.AdditionalOwnerRoles | ||||||
| 	result.EnablePasswordRotation = fromCRD.PostgresUsersConfiguration.EnablePasswordRotation | 	result.EnablePasswordRotation = fromCRD.PostgresUsersConfiguration.EnablePasswordRotation | ||||||
| 	result.PasswordRotationInterval = util.CoalesceUInt32(fromCRD.PostgresUsersConfiguration.PasswordRotationInterval, 90) | 	result.PasswordRotationInterval = util.CoalesceUInt32(fromCRD.PostgresUsersConfiguration.PasswordRotationInterval, 90) | ||||||
| 	result.PasswordRotationUserRetention = util.CoalesceUInt32(fromCRD.PostgresUsersConfiguration.DeepCopy().PasswordRotationUserRetention, 180) | 	result.PasswordRotationUserRetention = util.CoalesceUInt32(fromCRD.PostgresUsersConfiguration.DeepCopy().PasswordRotationUserRetention, 180) | ||||||
|  |  | ||||||
|  | @ -101,7 +101,7 @@ type Auth struct { | ||||||
| 	InfrastructureRolesDefs       string                `name:"infrastructure_roles_secrets"` | 	InfrastructureRolesDefs       string                `name:"infrastructure_roles_secrets"` | ||||||
| 	SuperUsername                 string                `name:"super_username" default:"postgres"` | 	SuperUsername                 string                `name:"super_username" default:"postgres"` | ||||||
| 	ReplicationUsername           string                `name:"replication_username" default:"standby"` | 	ReplicationUsername           string                `name:"replication_username" default:"standby"` | ||||||
| 	AddtionalOwnerRoles           []string              `name:"additional_owner_roles" default:""` | 	AdditionalOwnerRoles          []string              `name:"additional_owner_roles" default:""` | ||||||
| 	EnablePasswordRotation        bool                  `name:"enable_password_rotation" default:"false"` | 	EnablePasswordRotation        bool                  `name:"enable_password_rotation" default:"false"` | ||||||
| 	PasswordRotationInterval      uint32                `name:"password_rotation_interval" default:"90"` | 	PasswordRotationInterval      uint32                `name:"password_rotation_interval" default:"90"` | ||||||
| 	PasswordRotationUserRetention uint32                `name:"password_rotation_user_retention" default:"180"` | 	PasswordRotationUserRetention uint32                `name:"password_rotation_user_retention" default:"180"` | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue