Skip to content

Commit

Permalink
Removed DE dependency from recommend
Browse files Browse the repository at this point in the history
Signed-off-by: PrimalPimmy <[email protected]>
  • Loading branch information
PrimalPimmy committed Jun 12, 2023
1 parent efcde80 commit 97aba4d
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions recommend/imageHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -529,13 +529,14 @@ func imageHandler(namespace, deployment string, labels LabelMap, imageName strin
}
err := initClientConnection(c)
if err != nil {
log.WithError(err).Error("failed to initialize client connection.")
return err
}
err = recommendAdmissionControllerPolicies(img)
if err != nil {
log.WithError(err).Error("failed to recommend admission controller policies.")
return err
log.WithError(err).Error("failed to initialize DE client connection. Won't recommend admission controller policies.")
//return err
} else {
err = recommendAdmissionControllerPolicies(img)
if err != nil {
log.WithError(err).Error("failed to recommend admission controller policies.")
return err
}
}
}

Expand Down

0 comments on commit 97aba4d

Please sign in to comment.