From 5d65f3c2b68f7ef876a6b47db8329b2c5e348fe9 Mon Sep 17 00:00:00 2001 From: shuangkun Date: Thu, 14 Nov 2024 21:47:00 +0800 Subject: [PATCH] fix: add secret informer. Signed-off-by: shuangkun --- workflow/common/util_test.go | 4 ++-- workflow/controller/controller_test.go | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/workflow/common/util_test.go b/workflow/common/util_test.go index a43c9ff05e640..1a727f54948b8 100644 --- a/workflow/common/util_test.go +++ b/workflow/common/util_test.go @@ -284,8 +284,8 @@ type mockSecretStore struct { getByKey func(key string) (interface{}, bool, error) } -func (cs mockSecretStore) GetByKey(key string) (interface{}, bool, error) { - return cs.getByKey(key) +func (ss mockSecretStore) GetByKey(key string) (interface{}, bool, error) { + return ss.getByKey(key) } func TestOverridableTemplateInputParamsValue(t *testing.T) { diff --git a/workflow/controller/controller_test.go b/workflow/controller/controller_test.go index c7746f4b15fe0..45f9e568e4318 100644 --- a/workflow/controller/controller_test.go +++ b/workflow/controller/controller_test.go @@ -328,6 +328,7 @@ func newController(options ...interface{}) (context.CancelFunc, *WorkflowControl _ = wfc.addWorkflowInformerHandlers(ctx) wfc.podInformer = wfc.newPodInformer(ctx) wfc.configMapInformer = wfc.newConfigMapInformer() + wfc.secretInformer = wfc.newSecretInformer() wfc.createSynchronizationManager(ctx) _ = wfc.initManagers(ctx)