From 0da69ecf18022b406ee9a4f21ba56569b67abea6 Mon Sep 17 00:00:00 2001 From: Lee Briggs Date: Mon, 5 May 2025 12:59:28 -0700 Subject: [PATCH] cmd/k8s-operator: reset the svc account name in test Signed-off-by: Lee Briggs --- cmd/k8s-operator/tsrecorder_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/k8s-operator/tsrecorder_test.go b/cmd/k8s-operator/tsrecorder_test.go index 72b8ffd69..4928a4769 100644 --- a/cmd/k8s-operator/tsrecorder_test.go +++ b/cmd/k8s-operator/tsrecorder_test.go @@ -87,6 +87,9 @@ func TestRecorder(t *testing.T) { expectMissing[corev1.ServiceAccount](t, fc, tsNamespace, updated.Name) + // reset the service account name + updated.Spec.StatefulSet.Pod.ServiceAccountName = "" + }) t.Run("invalid spec gives an error condition", func(t *testing.T) {