diff --git a/internal/controller/impersonatorconfig/impersonator_config_test.go b/internal/controller/impersonatorconfig/impersonator_config_test.go index 89a990de4..c7f7767a9 100644 --- a/internal/controller/impersonatorconfig/impersonator_config_test.go +++ b/internal/controller/impersonatorconfig/impersonator_config_test.go @@ -2207,8 +2207,7 @@ func TestImpersonatorConfigControllerSync(t *testing.T) { it.Before(func() { addNodeWithRoleToTracker("control-plane", kubeAPIClient) addSecretToTrackers(newEmptySecret(tlsSecretName), kubeInformerClient) - configMapYAML := fmt.Sprintf("{mode: disabled}") - addImpersonatorConfigMapToTracker(configMapResourceName, configMapYAML, kubeInformerClient) + addImpersonatorConfigMapToTracker(configMapResourceName, "{mode: disabled}", kubeInformerClient) }) it("does not pass the not found error through", func() {