Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/integration/integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
4 changes: 2 additions & 2 deletions pkg/integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func TestIntegration_IsEnabled(t *testing.T) {
},
},
},
want: true,
want: false,
wantErr: false,
},
{
Expand All @@ -163,7 +163,7 @@ func TestIntegration_IsEnabled(t *testing.T) {
},
},
},
want: true,
want: false,
wantErr: false,
},
}
Expand Down
Loading