Fix tls-hash generation
@@ -114,7 +114,7 @@ func (r *ReconcilePerconaXtraDBCluster) getTLSHash(cr *api.PerconaXtraDBCluster,
if err != nil {
return "", err
}
- secretString := fmt.Sprintln(secretObj)
+ secretString := fmt.Sprintln(secretObj.Data)
hash := fmt.Sprintf("%x", md5.Sum([]byte(secretString)))
return hash, nil
