mirror of https://github.com/kubernetes/kops.git
Remove duplicate imports
This commit is contained in:
parent
3b3df48117
commit
af86a55c81
|
@ -24,7 +24,6 @@ import (
|
|||
"os"
|
||||
|
||||
"github.com/blang/semver/v4"
|
||||
"github.com/cert-manager/cert-manager/pkg/client/clientset/versioned"
|
||||
certmanager "github.com/cert-manager/cert-manager/pkg/client/clientset/versioned"
|
||||
"github.com/spf13/cobra"
|
||||
"go.uber.org/multierr"
|
||||
|
@ -120,7 +119,7 @@ func RunApplyChannel(ctx context.Context, f *ChannelsFactory, out io.Writer, opt
|
|||
return applyMenu(ctx, menu, f.VFSContext(), k8sClient, cmClient, dynamicClient, restMapper, options.Yes)
|
||||
}
|
||||
|
||||
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 {
|
||||
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 {
|
||||
// channelVersions is the list of installed addons in the cluster.
|
||||
// It is keyed by <namespace>:<addon name>.
|
||||
channelVersions, err := getChannelVersions(ctx, k8sClient)
|
||||
|
@ -198,7 +197,7 @@ func applyMenu(ctx context.Context, menu *channels.AddonMenu, vfsContext *vfs.VF
|
|||
return merr
|
||||
}
|
||||
|
||||
func getUpdates(ctx context.Context, menu *channels.AddonMenu, k8sClient kubernetes.Interface, cmClient versioned.Interface, channelVersions map[string]*channels.ChannelVersion) ([]*channels.AddonUpdate, []*channels.Addon, error) {
|
||||
func getUpdates(ctx context.Context, menu *channels.AddonMenu, k8sClient kubernetes.Interface, cmClient certmanager.Interface, channelVersions map[string]*channels.ChannelVersion) ([]*channels.AddonUpdate, []*channels.Addon, error) {
|
||||
var updates []*channels.AddonUpdate
|
||||
var needUpdates []*channels.Addon
|
||||
for _, addon := range menu.Addons {
|
||||
|
|
|
@ -36,7 +36,6 @@ import (
|
|||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/klog/v2"
|
||||
"k8s.io/kops/cmd/kops/util"
|
||||
"k8s.io/kops/pkg/apis/kops"
|
||||
kopsapi "k8s.io/kops/pkg/apis/kops"
|
||||
"k8s.io/kops/pkg/validation"
|
||||
"k8s.io/kops/util/pkg/tables"
|
||||
|
@ -63,7 +62,7 @@ var (
|
|||
|
||||
type ValidateClusterOptions struct {
|
||||
ClusterName string
|
||||
InstanceGroupRoles []kops.InstanceGroupRole
|
||||
InstanceGroupRoles []kopsapi.InstanceGroupRole
|
||||
output string
|
||||
wait time.Duration
|
||||
count int
|
||||
|
@ -71,7 +70,7 @@ type ValidateClusterOptions struct {
|
|||
kubeconfig string
|
||||
|
||||
// filterInstanceGroups is a function that returns true if the instance group should be validated
|
||||
filterInstanceGroups func(ig *kops.InstanceGroup) bool
|
||||
filterInstanceGroups func(ig *kopsapi.InstanceGroup) bool
|
||||
|
||||
// filterPodsForValidation is a function that returns true if the pod should be validated
|
||||
filterPodsForValidation func(pod *v1.Pod) bool
|
||||
|
|
|
@ -25,7 +25,6 @@ import (
|
|||
"sync"
|
||||
|
||||
"github.com/aws/aws-sdk-go-v2/aws"
|
||||
awsv2 "github.com/aws/aws-sdk-go-v2/aws"
|
||||
"github.com/aws/aws-sdk-go-v2/aws/arn"
|
||||
autoscalingtypes "github.com/aws/aws-sdk-go-v2/service/autoscaling/types"
|
||||
ec2 "github.com/aws/aws-sdk-go-v2/service/ec2"
|
||||
|
@ -75,7 +74,7 @@ func ValidateRegion(ctx context.Context, region string) error {
|
|||
}
|
||||
|
||||
for _, r := range allRegions {
|
||||
name := awsv2.ToString(r.RegionName)
|
||||
name := aws.ToString(r.RegionName)
|
||||
if name == region {
|
||||
return nil
|
||||
}
|
||||
|
|
|
@ -26,7 +26,6 @@ import (
|
|||
"k8s.io/kops/upup/pkg/fi"
|
||||
"k8s.io/kops/upup/pkg/fi/cloudup/do"
|
||||
"k8s.io/kops/upup/pkg/fi/cloudup/terraform"
|
||||
_ "k8s.io/kops/upup/pkg/fi/cloudup/terraform"
|
||||
"k8s.io/kops/upup/pkg/fi/cloudup/terraformWriter"
|
||||
)
|
||||
|
||||
|
|
|
@ -27,7 +27,6 @@ import (
|
|||
"k8s.io/kops/upup/pkg/fi"
|
||||
"k8s.io/kops/upup/pkg/fi/cloudup/do"
|
||||
"k8s.io/kops/upup/pkg/fi/cloudup/terraform"
|
||||
_ "k8s.io/kops/upup/pkg/fi/cloudup/terraform"
|
||||
"k8s.io/kops/upup/pkg/fi/cloudup/terraformWriter"
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue