@@ -24,7 +24,6 @@ import (
24
24
"os"
25
25
26
26
"github.com/blang/semver/v4"
27
- "github.com/cert-manager/cert-manager/pkg/client/clientset/versioned"
28
27
certmanager "github.com/cert-manager/cert-manager/pkg/client/clientset/versioned"
29
28
"github.com/spf13/cobra"
30
29
"go.uber.org/multierr"
@@ -120,7 +119,7 @@ func RunApplyChannel(ctx context.Context, f *ChannelsFactory, out io.Writer, opt
120
119
return applyMenu (ctx , menu , f .VFSContext (), k8sClient , cmClient , dynamicClient , restMapper , options .Yes )
121
120
}
122
121
123
- func applyMenu (ctx context.Context , menu * channels.AddonMenu , vfsContext * vfs.VFSContext , k8sClient kubernetes.Interface , cmClient versioned .Interface , dynamicClient dynamic.Interface , restMapper * restmapper.DeferredDiscoveryRESTMapper , apply bool ) error {
122
+ func applyMenu (ctx context.Context , menu * channels.AddonMenu , vfsContext * vfs.VFSContext , k8sClient kubernetes.Interface , cmClient certmanager .Interface , dynamicClient dynamic.Interface , restMapper * restmapper.DeferredDiscoveryRESTMapper , apply bool ) error {
124
123
// channelVersions is the list of installed addons in the cluster.
125
124
// It is keyed by <namespace>:<addon name>.
126
125
channelVersions , err := getChannelVersions (ctx , k8sClient )
@@ -198,7 +197,7 @@ func applyMenu(ctx context.Context, menu *channels.AddonMenu, vfsContext *vfs.VF
198
197
return merr
199
198
}
200
199
201
- func getUpdates (ctx context.Context , menu * channels.AddonMenu , k8sClient kubernetes.Interface , cmClient versioned .Interface , channelVersions map [string ]* channels.ChannelVersion ) ([]* channels.AddonUpdate , []* channels.Addon , error ) {
200
+ func getUpdates (ctx context.Context , menu * channels.AddonMenu , k8sClient kubernetes.Interface , cmClient certmanager .Interface , channelVersions map [string ]* channels.ChannelVersion ) ([]* channels.AddonUpdate , []* channels.Addon , error ) {
202
201
var updates []* channels.AddonUpdate
203
202
var needUpdates []* channels.Addon
204
203
for _ , addon := range menu .Addons {
0 commit comments