func WithNamespaceOrDefault(namespace string) InformerFactoryOption {
	if namespace == "" {
		return WithNamespace(metav1.NamespaceDefault)
	}
	return WithNamespace(namespace)
}
WithNamespaceOrDefault configures the namespace for the informer factory similar to WithNamespace,
except the empty ("") namespace is interpreted as the "default" namespace.
package informers
import (
	"time"
	"github.com/pulumi/pulumi-kubernetes/provider/v3/pkg/clients"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	"k8s.io/client-go/dynamic/dynamicinformer"
)
const defaultResyncInterval = 60 * time.Second
type informerFactoryOptions struct {
	namespace        string
	resyncInterval   time.Duration
	tweakListOptions dynamicinformer.TweakListOptionsFunc
}
type InformerFactoryOption interface {
	apply(*informerFactoryOptions)
}
type applyInformerFactoryOptionFunc func(*informerFactoryOptions)
func (a applyInformerFactoryOptionFunc) apply(o *informerFactoryOptions) {
	a(o)
}
func WithNamespace(namespace string) InformerFactoryOption {
	return applyInformerFactoryOptionFunc(func(o *informerFactoryOptions) {
		o.namespace = namespace
	})
}