Skip to content

Commit

Permalink
Merge pull request #331 from PrimalPimmy/rec
Browse files Browse the repository at this point in the history
Removed DE dependency from recommend
  • Loading branch information
nyrahul authored Jun 14, 2023
2 parents 797fb3a + 0b735bc commit c17fdff
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).Info("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 c17fdff

Please sign in to comment.