Skip to content

Commit

Permalink
code review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Atanas Todorov committed Jan 10, 2025
1 parent 837cb78 commit 6b7365e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions k8s/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,9 @@ func (k8sc *Client) _search(ctx context.Context, groups, categories, kinds, name
if err != nil {
if !errors.IsNotFound(err) {
return nil, err
} else {
logrus.Warnf("failed to list namespaces:%v. Switch to %s", err, "default")
nsNames = append(nsNames, "default")
}
//This is the case when namespace resource does not exist in the cluster.This is KCP case.
//Continue the execution of this function with emtpy namespace list

}
nsList = nsNames
Expand Down

0 comments on commit 6b7365e

Please sign in to comment.