Skip to content

Commit

Permalink
fix linters
Browse files Browse the repository at this point in the history
  • Loading branch information
woojoong88 committed Jun 30, 2024
1 parent 5fb6fdc commit 6e56154
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pkg/controller/app/sidecar/injector.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (i *ProxyInjector) InjectDecoder(decoder *admission.Decoder) error {
}

// Handle :
func (i *ProxyInjector) Handle(ctx context.Context, request admission.Request) admission.Response {
func (i *ProxyInjector) Handle(_ context.Context, request admission.Request) admission.Response {
podNamespacedName := types.NamespacedName{
Namespace: request.Namespace,
Name: request.Name,
Expand Down
7 changes: 2 additions & 5 deletions pkg/controller/topo/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,8 @@ func AddControllers(ctx context.Context, mgr manager.Manager) error {
return err
}

if err := mgr.GetFieldIndexer().IndexField(ctx, &v1beta1.Relation{}, "spec.kind.name", func(rawObj client.Object) []string {
return mgr.GetFieldIndexer().IndexField(ctx, &v1beta1.Relation{}, "spec.kind.name", func(rawObj client.Object) []string {
relation := rawObj.(*v1beta1.Relation)
return []string{relation.Spec.Kind.Name}
}); err != nil {
return err
}
return nil
})
}

0 comments on commit 6e56154

Please sign in to comment.