mirror of
https://github.com/mariadb-operator/mariadb-operator.git
synced 2025-08-15 21:02:38 +00:00
Fixed repl password secret
This commit is contained in:

committed by
Martín Montes

parent
07f1644462
commit
c1027695dd
@ -215,7 +215,7 @@ func (r *ReplicationConfig) reconcilePrimarySql(ctx context.Context) error {
|
||||
func (r *ReplicationConfig) reconcileReplPasswordSecret(ctx context.Context) (string, error) {
|
||||
var existingSecret corev1.Secret
|
||||
if err := r.Get(ctx, replPasswordKey(r.mariadb), &existingSecret); err == nil {
|
||||
return "", nil
|
||||
return string(existingSecret.Data[passwordSecretKey]), nil
|
||||
}
|
||||
password, err := password.Generate(16, 4, 0, false, false)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user