Skip to content

Commit

Permalink
fixes jaegertracing#2225 by providing default ingressClass using dete…
Browse files Browse the repository at this point in the history
…ctDefaultIngressClass func updated API call to use client.Reader instead of client.Client

Signed-off-by: amerlin <antoniomerlindev@gmail.com>
  • Loading branch information
antoniomerlin committed Jul 10, 2024
1 parent 8a7d5e0 commit 6d27285
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/autodetect/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func (b *Background) detectDefaultIngressClass(ctx context.Context) {
}

ingressClasses := networkingv1.IngressClassList{}
err := b.cl.List(ctx, &ingressClasses)
err := b.clReader.List(ctx, &ingressClasses)
if err != nil {
log.Log.Info("It was not possible to get any IngressClasses from the Kubernetes cluster")
}
Expand Down

0 comments on commit 6d27285

Please sign in to comment.