diff --git a/go.mod b/go.mod index 2f2a75ed..f32678d7 100644 --- a/go.mod +++ b/go.mod @@ -11,9 +11,9 @@ require ( github.com/Azure/go-autorest/autorest/to v0.4.1-0.20210111195520-9fc88b15294e github.com/onsi/ginkgo/v2 v2.8.1 github.com/onsi/gomega v1.27.1 - github.com/rancher/lasso v0.0.0-20221202205459-e7138f16489c + github.com/rancher/lasso v0.0.0-20221227210133-6ea88ca2fbcc github.com/rancher/machine v0.15.0-rancher98 - github.com/rancher/wrangler v1.0.2 + github.com/rancher/wrangler v1.0.1-0.20230131212012-76adc44fca0c github.com/rancher/wrangler-api v0.6.1-0.20200427172631-a7c2f09b783e github.com/sirupsen/logrus v1.9.0 github.com/stretchr/testify v1.8.1 diff --git a/go.sum b/go.sum index 1fb6634a..f2c8811c 100644 --- a/go.sum +++ b/go.sum @@ -644,8 +644,8 @@ github.com/rancher/gke-operator v1.1.5 h1:XHNrM67enwDkqYG5C4s1HVgfJGmfwtVYGfl9Tg github.com/rancher/gke-operator v1.1.5/go.mod h1:ZApFZ7iCuyzwX/+aCSdEqkbAPtOYcTH7/BeLoI/Mz9Y= github.com/rancher/lasso v0.0.0-20200427171700-e0509f89f319/go.mod h1:6Dw19z1lDIpL887eelVjyqH/mna1hfR61ddCFOG78lw= github.com/rancher/lasso v0.0.0-20210616224652-fc3ebd901c08/go.mod h1:9qZd/S8DqWzfKtjKGgSoHqGEByYmUE3qRaBaaAHwfEM= -github.com/rancher/lasso v0.0.0-20221202205459-e7138f16489c h1:RKGa+6plIHqyfBcC+lnCs3oe7A8wSFkUPBtqWBAi/1E= -github.com/rancher/lasso v0.0.0-20221202205459-e7138f16489c/go.mod h1:Qewwr/xGzhtG7WCxhubrKZrdAobv5yqAIuHbDoxThZQ= +github.com/rancher/lasso v0.0.0-20221227210133-6ea88ca2fbcc h1:29VHrInLV4qSevvcvhBj5UhQWkPShxrxv4AahYg2Scw= +github.com/rancher/lasso v0.0.0-20221227210133-6ea88ca2fbcc/go.mod h1:dEfC9eFQigj95lv/JQ8K5e7+qQCacWs1aIA6nLxKzT8= github.com/rancher/machine v0.15.0-rancher98 h1:3QzZEwarcGNSRjtt/kwwJbOZE3NoQJ0wgelp1oriYyw= github.com/rancher/machine v0.15.0-rancher98/go.mod h1:rwF2JgIwaIqHthd9ByUQAZohCROaUP807Zsx1DLKo84= github.com/rancher/norman v0.0.0-20221205184727-32ef2e185b99 h1:+Oob+DG+SZoX8hnKBWpZfVwxx6K84hMou9nbBOTux7w= @@ -656,8 +656,8 @@ github.com/rancher/rke v1.4.3-rc3 h1:yY1WHNr53SHxhqt4Mez9Vn0MhxQvqumJUB57ziKxPkw github.com/rancher/rke v1.4.3-rc3/go.mod h1:0s8+XfiyC9Ff3KLaQ4Z5mDNI+taSb/hma13xOpW6slg= github.com/rancher/wrangler v0.6.2-0.20200427172034-da9b142ae061/go.mod h1:n5Du/gGD7WoiqnEo0SHnPirDIp1V9Zu+6guc8lXS2dk= github.com/rancher/wrangler v0.8.10/go.mod h1:Lte9WjPtGYxYacIWeiS9qawvu2R4NujFU9xuXWJvc/0= -github.com/rancher/wrangler v1.0.2 h1:0JGv62gF2OkYUoR0fsr99Za63fquFeKTHE2z9kAFVsE= -github.com/rancher/wrangler v1.0.2/go.mod h1:Blhan9LdaIJjC9w+xGteSrHHEiIFIdPEHEMrtx82dPk= +github.com/rancher/wrangler v1.0.1-0.20230131212012-76adc44fca0c h1:KlUxzuRkMTIal+OuhATLy7UqtVkDr8QKszzvqzc+pKw= +github.com/rancher/wrangler v1.0.1-0.20230131212012-76adc44fca0c/go.mod h1:lQorqAAIMkNWteece1GiuwZTmMqkaVTXL5qjiiPVDxQ= github.com/rancher/wrangler-api v0.6.1-0.20200427172631-a7c2f09b783e h1:UJpGtw6IKs0dHPTF+6Wd12lskeCZZAejl8/ie/fc1+0= github.com/rancher/wrangler-api v0.6.1-0.20200427172631-a7c2f09b783e/go.mod h1:2lcWR98q8HU3U4mVETnXc8quNG0uXxrt8vKd6cAa/30= github.com/remyoudompheng/bigfft v0.0.0-20170806203942-52369c62f446/go.mod h1:uYEyJGbgTkfkS4+E/PavXkNJcbFIpEtjt2B0KDQ5+9M= diff --git a/pkg/generated/controllers/aks.cattle.io/factory.go b/pkg/generated/controllers/aks.cattle.io/factory.go index 641a5a60..f5e9666c 100644 --- a/pkg/generated/controllers/aks.cattle.io/factory.go +++ b/pkg/generated/controllers/aks.cattle.io/factory.go @@ -19,6 +19,7 @@ limitations under the License. package aks import ( + "github.com/rancher/lasso/pkg/controller" "github.com/rancher/wrangler/pkg/generic" "k8s.io/client-go/rest" ) @@ -65,3 +66,7 @@ func NewFactoryFromConfigWithOptionsOrDie(config *rest.Config, opts *FactoryOpti func (c *Factory) Aks() Interface { return New(c.ControllerFactory()) } + +func (c *Factory) WithAgent(userAgent string) Interface { + return New(controller.NewSharedControllerFactoryWithAgent(userAgent, c.ControllerFactory())) +} diff --git a/pkg/generated/controllers/core/factory.go b/pkg/generated/controllers/core/factory.go index 58c171e2..8584707a 100644 --- a/pkg/generated/controllers/core/factory.go +++ b/pkg/generated/controllers/core/factory.go @@ -19,6 +19,7 @@ limitations under the License. package core import ( + "github.com/rancher/lasso/pkg/controller" "github.com/rancher/wrangler/pkg/generic" "k8s.io/client-go/rest" ) @@ -65,3 +66,7 @@ func NewFactoryFromConfigWithOptionsOrDie(config *rest.Config, opts *FactoryOpti func (c *Factory) Core() Interface { return New(c.ControllerFactory()) } + +func (c *Factory) WithAgent(userAgent string) Interface { + return New(controller.NewSharedControllerFactoryWithAgent(userAgent, c.ControllerFactory())) +}