Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaushik-Vijayakumar-1 committed May 14, 2024
1 parent d010b1e commit d95f426
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
8 changes: 0 additions & 8 deletions operator/redisfailover/service/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,19 +141,11 @@ func (r *RedisFailoverChecker) CheckAllSlavesFromMaster(master string, rf *redis
if err != nil {
return err
}
err = r.setMasterAnnotationIfNecessary(rf.Namespace, rp)
if err != nil {
return err
}
} else {
err = r.setSlaveLabelIfNecessary(rf.Namespace, rp)
if err != nil {
return err
}
err = r.setSlaveAnnotationIfNecessary(rf.Namespace, rp)
if err != nil {
return err
}
}

slave, err := r.redisClient.GetSlaveOf(rp.Status.PodIP, rport, password)
Expand Down
17 changes: 0 additions & 17 deletions operator/redisfailover/service/heal.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,6 @@ func (r *RedisFailoverHealer) MakeMaster(ip string, rf *redisfailoverv1.RedisFai
if err != nil {
return err
}
err = r.setMasterAnnotationIfNecessary(rf.Namespace, rp)
if err != nil {
return err
}
}
}
return nil
Expand Down Expand Up @@ -148,10 +144,6 @@ func (r *RedisFailoverHealer) SetOldestAsMaster(rf *redisfailoverv1.RedisFailove
if err != nil {
return err
}
err = r.setMasterAnnotationIfNecessary(rf.Namespace, pod)
if err != nil {
return err
}

newMasterIP = pod.Status.PodIP
} else {
Expand All @@ -164,11 +156,6 @@ func (r *RedisFailoverHealer) SetOldestAsMaster(rf *redisfailoverv1.RedisFailove
if err != nil {
return err
}

err = r.setSlaveAnnotationIfNecessary(rf.Namespace, pod)
if err != nil {
return err
}
}
}
if newMasterIP == "" {
Expand Down Expand Up @@ -211,10 +198,6 @@ func (r *RedisFailoverHealer) SetMasterOnAll(masterIP string, rf *redisfailoverv
if err != nil {
return err
}
err = r.setSlaveAnnotationIfNecessary(rf.Namespace, pod)
if err != nil {
return err
}
}
}
return nil
Expand Down

0 comments on commit d95f426

Please sign in to comment.