From 2d63a400857143e3739d1370e27f32fc0725b8a7 Mon Sep 17 00:00:00 2001 From: smuu <18609909+smuu@users.noreply.github.com> Date: Fri, 17 May 2024 14:39:06 +0200 Subject: [PATCH] bugfix: replace statefulset (#351) Signed-off-by: Smuu <18609909+Smuu@users.noreply.github.com> --- pkg/k8s/k8s_replicaset.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/k8s/k8s_replicaset.go b/pkg/k8s/k8s_replicaset.go index 76373d6..1194dcd 100644 --- a/pkg/k8s/k8s_replicaset.go +++ b/pkg/k8s/k8s_replicaset.go @@ -136,7 +136,7 @@ func (c *Client) GetFirstPodFromReplicaSet(ctx context.Context, name string) (*v func (c *Client) getReplicaSet(ctx context.Context, name string) (*appv1.ReplicaSet, error) { rs, err := c.clientset.AppsV1().ReplicaSets(c.namespace).Get(ctx, name, metav1.GetOptions{}) if err != nil { - return nil, ErrGettingReplicaSet.WithParams(name).Wrap(err) + return nil, err } return rs, nil