func WithNodeLister(n corelisters.NodeLister) Option {
	return optionFn(func(o *options) {
		o.nodeLister = n
	})
}
WithNodeLister configures the node lister.
package podidentity
import (
	"errors"
	corelisters "k8s.io/client-go/listers/core/v1"
	"go.uber.org/zap"
)
type Option interface {
	execute(*options)
}
type options struct {
	logger     *zap.Logger
	nodeLister corelisters.NodeLister
}
type optionFn func(o *options)
func (fn optionFn) execute(o *options) {
	fn(o)
}
func WithLogger(l *zap.Logger) Option {
	return optionFn(func(o *options) {
		o.logger = l
	})
}