From 3a8710fd36fc9cc6b230472a7e314af0975b870a Mon Sep 17 00:00:00 2001 From: Shubham Gupta Date: Sat, 11 Nov 2023 05:08:14 +0530 Subject: [PATCH] fix Signed-off-by: Shubham Gupta --- k8sutils/status.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/k8sutils/status.go b/k8sutils/status.go index 3cc32353d..d652ad7c7 100644 --- a/k8sutils/status.go +++ b/k8sutils/status.go @@ -27,6 +27,10 @@ func UpdateRedisClusterStatus(cr *redisv1beta2.RedisCluster, status status.Redis cr.Status.ReadyFollowerReplicas = readyFollowerReplicas client, err := GenerateK8sDynamicClient(GenerateK8sConfig) + if err != nil { + logger.Error(err, "Failed to generate k8s dynamic client") + return err + } gvr := schema.GroupVersionResource{ Group: "redis.redis.opstreelabs.in", Version: "v1beta2",