Skip to content

Commit

Permalink
Add global label selector log when enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Feb 21, 2024
1 parent c90ba7f commit 53716e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/controllers/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (

"github.com/rancher/lasso/pkg/cache"
"github.com/rancher/lasso/pkg/controller"
"github.com/sirupsen/logrus"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/rest"
)
Expand Down Expand Up @@ -53,6 +54,7 @@ func defaultTweakListOptions() cache.TweakListOptionsFunc {
if globalLabelSelector == "" {
return func(*v1.ListOptions) {}
}
logrus.Infof("Applying global label selector: %s", globalLabelSelector)
return func(opts *v1.ListOptions) {
opts.LabelSelector = globalLabelSelector
}
Expand Down

0 comments on commit 53716e9

Please sign in to comment.