@@ -31,43 +31,38 @@ import (
3131 "strings"
3232 "time"
3333
34- "github.com/arangodb/kube-arangodb/pkg/util/globals"
35-
3634 "github.com/gin-gonic/gin"
37-
38- operatorHTTP "github.com/arangodb/kube-arangodb/pkg/util/http"
39-
40- "github.com/arangodb/kube-arangodb/pkg/version"
41-
42- "github.com/arangodb/kube-arangodb/pkg/operator/scope"
43-
44- "github.com/arangodb/kube-arangodb/pkg/deployment/features"
35+ "github.com/pkg/errors"
36+ "github.com/rs/zerolog"
37+ "github.com/spf13/cobra"
38+ flag "github.com/spf13/pflag"
39+ appsv1 "k8s.io/api/apps/v1"
40+ core "k8s.io/api/core/v1"
41+ meta "k8s.io/apimachinery/pkg/apis/meta/v1"
42+ "k8s.io/apimachinery/pkg/runtime"
43+ "k8s.io/client-go/kubernetes"
44+ typedCore "k8s.io/client-go/kubernetes/typed/core/v1"
45+ "k8s.io/client-go/tools/record"
46+ "k8s.io/klog"
4547
4648 deploymentApi "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1"
4749 "github.com/arangodb/kube-arangodb/pkg/crd"
50+ "github.com/arangodb/kube-arangodb/pkg/deployment/features"
4851 "github.com/arangodb/kube-arangodb/pkg/generated/clientset/versioned/scheme"
4952 "github.com/arangodb/kube-arangodb/pkg/logging"
5053 "github.com/arangodb/kube-arangodb/pkg/operator"
54+ "github.com/arangodb/kube-arangodb/pkg/operator/scope"
5155 "github.com/arangodb/kube-arangodb/pkg/server"
5256 "github.com/arangodb/kube-arangodb/pkg/util"
5357 "github.com/arangodb/kube-arangodb/pkg/util/constants"
5458 utilsError "github.com/arangodb/kube-arangodb/pkg/util/errors"
59+ "github.com/arangodb/kube-arangodb/pkg/util/globals"
60+ operatorHTTP "github.com/arangodb/kube-arangodb/pkg/util/http"
5561 "github.com/arangodb/kube-arangodb/pkg/util/k8sutil"
5662 "github.com/arangodb/kube-arangodb/pkg/util/kclient"
5763 "github.com/arangodb/kube-arangodb/pkg/util/probe"
5864 "github.com/arangodb/kube-arangodb/pkg/util/retry"
59- "github.com/pkg/errors"
60- "github.com/rs/zerolog"
61- "github.com/spf13/cobra"
62- flag "github.com/spf13/pflag"
63- appsv1 "k8s.io/api/apps/v1"
64- core "k8s.io/api/core/v1"
65- meta "k8s.io/apimachinery/pkg/apis/meta/v1"
66- "k8s.io/apimachinery/pkg/runtime"
67- "k8s.io/client-go/kubernetes"
68- v1core "k8s.io/client-go/kubernetes/typed/core/v1"
69- "k8s.io/client-go/tools/record"
70- "k8s.io/klog"
65+ "github.com/arangodb/kube-arangodb/pkg/version"
7166)
7267
7368const (
@@ -477,7 +472,7 @@ func createRecorder(kubecli kubernetes.Interface, name, namespace string) record
477472 eventBroadcaster .StartLogging (func (format string , args ... interface {}) {
478473 eventRecorder .Info (format , args ... )
479474 })
480- eventBroadcaster .StartRecordingToSink (& v1core .EventSinkImpl {Interface : v1core .New (kubecli .CoreV1 ().RESTClient ()).Events (namespace )})
475+ eventBroadcaster .StartRecordingToSink (& typedCore .EventSinkImpl {Interface : typedCore .New (kubecli .CoreV1 ().RESTClient ()).Events (namespace )})
481476 combinedScheme := runtime .NewScheme ()
482477 scheme .AddToScheme (combinedScheme )
483478 core .AddToScheme (combinedScheme )
0 commit comments