Skip to content

Commit

Permalink
test: adjusting for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
nexus49 committed Jan 18, 2025
1 parent 436638a commit ecb2564
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/subroutines/extensions.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,14 +207,10 @@ func getParentAccount(ctx context.Context, cl client.Client, ns string) (*v1alph
func getParentAccountWithKcp(ctx context.Context, cl client.Client) (*v1alpha1.Account, *string, error) {

cluster, ok := kontext.ClusterFrom(ctx)
if !ok {
if !ok || cluster.Empty() {
return nil, nil, fmt.Errorf("no cluster context found, this is a configuration error")
}

if cluster.Empty() {
return nil, nil, fmt.Errorf("no cluster in context is empty")
}

wsCtx := kontext.WithCluster(ctx, "")
list := &tenancyv1alpha1.WorkspaceList{}

Expand Down

0 comments on commit ecb2564

Please sign in to comment.