From 55c5d4cc96ea4630d51ccdc6301e2f3694d1889a Mon Sep 17 00:00:00 2001 From: Dex Date: Fri, 26 Jan 2024 22:15:35 -0600 Subject: [PATCH 1/2] Update integration.go --- pkg/integration/integration.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/integration/integration.go b/pkg/integration/integration.go index c81b6267..0d4d00af 100644 --- a/pkg/integration/integration.go +++ b/pkg/integration/integration.go @@ -38,7 +38,7 @@ func IsEnabled(ctx context.Context, clientset kubernetes.Interface, namespace st v, ok := secret.Data[integrationEnabledKey] if !ok || len(v) == 0 { - return true, nil + return false, nil } enabled, _ := strconv.ParseBool(string(v)) From d53c88b4691e7d46f3b85117a51d337204b836ed Mon Sep 17 00:00:00 2001 From: divolgin Date: Wed, 11 Dec 2024 09:03:27 -0800 Subject: [PATCH 2/2] Fix unit tests --- pkg/integration/integration_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/integration/integration_test.go b/pkg/integration/integration_test.go index 5d94a719..d87a6c82 100644 --- a/pkg/integration/integration_test.go +++ b/pkg/integration/integration_test.go @@ -136,7 +136,7 @@ func TestIntegration_IsEnabled(t *testing.T) { }, }, }, - want: true, + want: false, wantErr: false, }, { @@ -163,7 +163,7 @@ func TestIntegration_IsEnabled(t *testing.T) { }, }, }, - want: true, + want: false, wantErr: false, }, }