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