Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
ref(*): removes unnecessary namespace check (#4251)
Browse files Browse the repository at this point in the history
This commit removes an unnecessary call to check if the
namespace is monitored which is already checked by
ListMultiClusterServices().

Signed-off-by: Michelle Noorali <[email protected]>
  • Loading branch information
Michelle Noorali authored Oct 14, 2021
1 parent b948ead commit 5e61956
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/config/multiclusterservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ func (c client) ListMultiClusterServices() []v1alpha1.MultiClusterService {
}

func (c client) GetMultiClusterServiceByServiceAccount(serviceAccount, namespace string) []v1alpha1.MultiClusterService {
if !c.kubeController.IsMonitoredNamespace(namespace) {
return nil
}

var services []v1alpha1.MultiClusterService

for _, svc := range c.ListMultiClusterServices() {
Expand Down

0 comments on commit 5e61956

Please sign in to comment.