Skip to content

Commit

Permalink
Add: status for replication,sentinel,standalone
Browse files Browse the repository at this point in the history
Signed-off-by: syedsadath-17 <[email protected]>
  • Loading branch information
sadath-12 committed Sep 20, 2023
1 parent 19d1bea commit 79b6c69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion k8sutils/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ func CheckRedisSentinelReady(cr *redisv1beta2.RedisSentinel) bool {
if err != nil {
// Handle error
return false
}
}

if sts.Status.ReadyReplicas == *cr.Spec.Size {
return true
Expand Down
4 changes: 2 additions & 2 deletions k8sutils/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func UpdateRedisSentinelStatus(cr *redisv1beta2.RedisSentinel, status status.Red
gvr := schema.GroupVersionResource{
Group: "redis.redis.opstreelabs.in",
Version: "v1beta2",
Resource: "Redissentinel",
Resource: "redissentinels",
}
unstructuredObj, err := runtime.DefaultUnstructuredConverter.ToUnstructured(cr)
if err != nil {
Expand All @@ -108,7 +108,7 @@ func UpdateRedisReplicationStatus(cr *redisv1beta2.RedisReplication, status stat
gvr := schema.GroupVersionResource{
Group: "redis.redis.opstreelabs.in",
Version: "v1beta2",
Resource: "Redisreplication",
Resource: "redisreplications",
}
unstructuredObj, err := runtime.DefaultUnstructuredConverter.ToUnstructured(cr)
if err != nil {
Expand Down

0 comments on commit 79b6c69

Please sign in to comment.