From 6de3205e6f0d0620908288184c6740b1d1af6fab Mon Sep 17 00:00:00 2001 From: Alay Patel Date: Mon, 28 Feb 2022 23:36:11 -0500 Subject: [PATCH] Apply suggestions from code review Co-authored-by: John Strunk --- transfer/rsync/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transfer/rsync/client.go b/transfer/rsync/client.go index 202d9e0..85ca58a 100644 --- a/transfer/rsync/client.go +++ b/transfer/rsync/client.go @@ -179,7 +179,7 @@ func NewClient(ctx context.Context, c ctrlclient.Client, var namespace string namespaces := pvcList.Namespaces() if len(namespaces) > 0 { - namespace = pvcList.Namespaces()[0] + namespace = namespaces[0] } for _, ns := range namespaces { @@ -268,7 +268,7 @@ func (tc *client) reconcilePod(ctx context.Context, c ctrlclient.Client, ns stri { Name: "rsync-communication", VolumeSource: corev1.VolumeSource{ - EmptyDir: &corev1.EmptyDirVolumeSource{Medium: corev1.StorageMediumDefault}, + EmptyDir: &corev1.EmptyDirVolumeSource{Medium: corev1.StorageMediumMemory}, }, }, }