Skip to content

Commit

Permalink
Fix go vet errors
Browse files Browse the repository at this point in the history
Signed-off-by: Fabian von Feilitzsch <fabian@fabianism.us>
  • Loading branch information
fabianvf committed Apr 27, 2021
1 parent 2f21571 commit c556bbb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions internal/ansible/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,9 @@ func addWatchToController(owner kubeconfig.NamespacedOwnerReference, cMap *contr
log.Info("Watching child resource", "kind", resource.GroupVersionKind(),
"enqueue_kind", u.GroupVersionKind())
err := contents.Controller.Watch(&source.Kind{Type: resource},
&handler.LoggingEnqueueRequestForOwner{crHandler.EnqueueRequestForOwner{OwnerType: u}}, predicate.DependentPredicate{})
&handler.LoggingEnqueueRequestForOwner{
EnqueueRequestForOwner: crHandler.EnqueueRequestForOwner{OwnerType: u},
}, predicate.DependentPredicate{})
// Store watch in map
if err != nil {
log.Error(err, "Failed to watch child resource",
Expand All @@ -263,7 +265,9 @@ func addWatchToController(owner kubeconfig.NamespacedOwnerReference, cMap *contr
log.Info("Watching child resource", "kind", resource.GroupVersionKind(),
"enqueue_annotation_type", ownerGK.String())
err = contents.Controller.Watch(&source.Kind{Type: resource},
&handler.LoggingEnqueueRequestForAnnotation{libhandler.EnqueueRequestForAnnotation{Type: ownerGK}}, predicate.DependentPredicate{})
&handler.LoggingEnqueueRequestForAnnotation{
EnqueueRequestForAnnotation: libhandler.EnqueueRequestForAnnotation{Type: ownerGK},
}, predicate.DependentPredicate{})
if err != nil {
log.Error(err, "Failed to watch child resource",
"kind", resource.GroupVersionKind(), "enqueue_kind", u.GroupVersionKind())
Expand Down

0 comments on commit c556bbb

Please sign in to comment.