cmd/k8s-operator: reset the svc account name in test

Signed-off-by: Lee Briggs <lee@leebriggs.co.uk>
This commit is contained in:
Lee Briggs 2025-05-05 12:59:28 -07:00
parent bd99a3601b
commit 0da69ecf18
No known key found for this signature in database
GPG Key ID: A4D09B96FDFEB505

View File

@ -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) {