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)) 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, }, }