Skip to content

Commit

Permalink
fix: nits around error string
Browse files Browse the repository at this point in the history
Signed-off-by: tanujd11 <[email protected]>
  • Loading branch information
tanujd11 committed Aug 23, 2023
1 parent f84cf2b commit 865aa0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/provider/kubernetes/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,7 @@ func (r *gatewayAPIReconciler) watchResources(ctx context.Context, mgr manager.M
handler.EnqueueRequestsFromMapFunc(r.enqueueClass),
predicate.NewPredicateFuncs(r.validateServiceImportForReconcile)); err != nil {
// ServiceImport is not available in the cluster, skip the watch and not throw error.
r.log.Info("Unable to watch not ServiceImport: %s", err.Error())
r.log.Info("unable to watch ServiceImport: %s", err.Error())
}
}

Expand Down Expand Up @@ -1465,11 +1465,11 @@ func (r *gatewayAPIReconciler) processParamsRef(ctx context.Context, gc *gwapiv1
func (r *gatewayAPIReconciler) serviceImportCRDExists(mgr manager.Manager) bool {
discoveryClient, err := discovery.NewDiscoveryClientForConfig(mgr.GetConfig())
if err != nil {
r.log.Error(err, "Failed to create discovery client")
r.log.Error(err, "failed to create discovery client")
}
apiResourceList, err := discoveryClient.ServerPreferredResources()
if err != nil {
r.log.Error(err, "Failed to get API resource list")
r.log.Error(err, "failed to get API resource list")
}
serviceImportFound := false
for _, list := range apiResourceList {
Expand Down

0 comments on commit 865aa0e

Please sign in to comment.