Skip to content

Commit

Permalink
add klog wrapper
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Okhlopkov <[email protected]>
  • Loading branch information
Pavel Okhlopkov committed Nov 2, 2024
1 parent 46fdab9 commit d13f895
Show file tree
Hide file tree
Showing 60 changed files with 95 additions and 84 deletions.
12 changes: 6 additions & 6 deletions cmd/shell-operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"gopkg.in/alecthomas/kingpin.v2"

"github.com/deckhouse/deckhouse/go_lib/log"
"github.com/flant/kube-client/klogtologrus"
"github.com/deckhouse/deckhouse/pkg/log"
"github.com/flant/kube-client/klogtolog"
"github.com/flant/shell-operator/pkg/app"
"github.com/flant/shell-operator/pkg/debug"
"github.com/flant/shell-operator/pkg/jq"
Expand All @@ -20,12 +20,15 @@ import (
func main() {
kpApp := kingpin.New(app.AppName, fmt.Sprintf("%s %s: %s", app.AppName, app.Version, app.AppDescription))

logger := log.NewLogger(log.Options{})
log.SetDefault(logger)

// override usage template to reveal additional commands with information about start command
kpApp.UsageTemplate(app.OperatorUsageTemplate(app.AppName))

// Initialize klog wrapper when all values are parsed
kpApp.Action(func(c *kingpin.ParseContext) error {
klogtologrus.InitAdapter(app.DebugKubernetesAPI)
klogtolog.InitAdapter(app.DebugKubernetesAPI, logger.Named("klog"))
return nil
})

Expand All @@ -36,9 +39,6 @@ func main() {
return nil
})

logger := log.NewLogger(log.Options{})
log.SetDefault(logger)

// start main loop
startCmd := kpApp.Command("start", "Start shell-operator.").
Default().
Expand Down
5 changes: 2 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module github.com/flant/shell-operator
go 1.22.8

require (
github.com/deckhouse/deckhouse/go_lib/log v0.0.0-20241031173751-c2c6e864aa6b
github.com/flant/kube-client v1.2.0
github.com/deckhouse/deckhouse/pkg/log v0.0.0-20241102120041-7e44e3e22ab9
github.com/flant/kube-client v0.0.0-20241102115103-02e0839b26f3
github.com/flant/libjq-go v1.6.3-0.20201126171326-c46a40ff22ee // branch: master
github.com/go-chi/chi/v5 v5.1.0
github.com/go-openapi/spec v0.19.8
Expand All @@ -18,7 +18,6 @@ require (
github.com/onsi/gomega v1.34.2
github.com/pkg/errors v0.9.1
github.com/prometheus/client_golang v1.20.5
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/stretchr/testify v1.9.0
golang.org/x/time v0.7.0
gopkg.in/alecthomas/kingpin.v2 v2.2.6
Expand Down
11 changes: 4 additions & 7 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ3
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/deckhouse/deckhouse/go_lib/log v0.0.0-20241031173751-c2c6e864aa6b h1:x0T6FJSCibbVVj2N7ItjENm7h+ISiEZdypjFKVx9G88=
github.com/deckhouse/deckhouse/go_lib/log v0.0.0-20241031173751-c2c6e864aa6b/go.mod h1:h+LOQH/71Rhjj+ws0MjBHduAsgAkVJZsRuhQNjFPLa8=
github.com/deckhouse/deckhouse/pkg/log v0.0.0-20241102120041-7e44e3e22ab9 h1:gCV1iKcaE69x3Knzj8isyVyEtRuG2YI4nmLIzBHBWeQ=
github.com/deckhouse/deckhouse/pkg/log v0.0.0-20241102120041-7e44e3e22ab9/go.mod h1:Mk5HRzkc5pIcDIZ2JJ6DPuuqnwhXVkb3you8M8Mg+4w=
github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
github.com/emicklei/go-restful/v3 v3.11.0 h1:rAQeMHw1c7zTmncogyy8VvRZwtkmkZ4FxERmMY4rD+g=
github.com/emicklei/go-restful/v3 v3.11.0/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc=
github.com/evanphx/json-patch v5.6.0+incompatible h1:jBYDEEiFBPxA0v50tFdvOzQQTCvpL6mnFh5mB2/l16U=
github.com/evanphx/json-patch v5.6.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
github.com/flant/go-openapi-validate v0.19.12-flant.0 h1:xk6kvc9fHKMgUdB6J7kbpbLR5vJOUzKAK8p3nrD7mDk=
github.com/flant/go-openapi-validate v0.19.12-flant.0/go.mod h1:Rzou8hA/CBw8donlS6WNEUQupNvUZ0waH08tGe6kAQ4=
github.com/flant/kube-client v1.2.0 h1:cOjnZgwoJVm4scqsMGcgO6qctJ+Z6wRVTFqvyhoAOiQ=
github.com/flant/kube-client v1.2.0/go.mod h1:qjNvqCqnBqS+kc9Hj+wMBbkFzfdyGyiX4r4teE/0Pm8=
github.com/flant/kube-client v0.0.0-20241102115103-02e0839b26f3 h1:i2FCENEhO2PTuD1Y0RdNe9ZlBpR7J96LwtHai+EBPwk=
github.com/flant/kube-client v0.0.0-20241102115103-02e0839b26f3/go.mod h1:/Ufu7bBvrm1OsBgbzpSL+JXjIoORo+2BhZS+kLDKcMg=
github.com/flant/libjq-go v1.6.3-0.20201126171326-c46a40ff22ee h1:evii83J+/6QGNvyf6tjQ/p27DPY9iftxIBb37ALJRTg=
github.com/flant/libjq-go v1.6.3-0.20201126171326-c46a40ff22ee/go.mod h1:f+REaGl/+pZR97rbTcwHEka/MAipoQQ2Mc0iQUj4ak0=
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
Expand Down Expand Up @@ -259,8 +259,6 @@ github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAm
github.com/sirupsen/logrus v1.4.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q=
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=
github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ=
github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
Expand Down Expand Up @@ -345,7 +343,6 @@ golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.24.0 h1:Twjiwq9dn6R1fQcyiK+wQyHWfaz/BJB+YIpzU/Cv3Xg=
golang.org/x/sys v0.24.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
Expand Down
2 changes: 1 addition & 1 deletion pkg/app/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"gopkg.in/alecthomas/kingpin.v2"

"github.com/deckhouse/deckhouse/go_lib/log"
"github.com/deckhouse/deckhouse/pkg/log"
"github.com/flant/shell-operator/pkg/config"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"sync"
"time"

"github.com/deckhouse/deckhouse/go_lib/log"
"github.com/deckhouse/deckhouse/pkg/log"
)

/**
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"github.com/deckhouse/deckhouse/go_lib/log"
"github.com/deckhouse/deckhouse/pkg/log"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/debug/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/go-chi/chi/v5/middleware"
"gopkg.in/yaml.v3"

"github.com/deckhouse/deckhouse/go_lib/log"
"github.com/deckhouse/deckhouse/pkg/log"
utils "github.com/flant/shell-operator/pkg/utils/file"
structuredLogger "github.com/flant/shell-operator/pkg/utils/structured-logger"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/executor/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"syscall"
"time"

"github.com/deckhouse/deckhouse/go_lib/log"
"github.com/deckhouse/deckhouse/pkg/log"
utils "github.com/flant/shell-operator/pkg/utils/labels"

"github.com/flant/shell-operator/pkg/app"
Expand Down
2 changes: 1 addition & 1 deletion pkg/executor/executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"testing"
"time"

"github.com/deckhouse/deckhouse/go_lib/log"
"github.com/deckhouse/deckhouse/pkg/log"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

Expand Down
2 changes: 1 addition & 1 deletion pkg/hook/binding_context/binding_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package binding_context
import (
"encoding/json"

log "github.com/deckhouse/deckhouse/go_lib/log"
log "github.com/deckhouse/deckhouse/pkg/log"
v1 "k8s.io/api/admission/v1"
apixv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"

Expand Down
2 changes: 1 addition & 1 deletion pkg/hook/controller/admission_bindings_controller.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package controller

import (
log "github.com/deckhouse/deckhouse/go_lib/log"
log "github.com/deckhouse/deckhouse/pkg/log"
v1 "k8s.io/api/admission/v1"

. "github.com/flant/shell-operator/pkg/hook/binding_context"
Expand Down
2 changes: 1 addition & 1 deletion pkg/hook/controller/conversion_bindings_controller.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package controller

import (
log "github.com/deckhouse/deckhouse/go_lib/log"
log "github.com/deckhouse/deckhouse/pkg/log"
v1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"

. "github.com/flant/shell-operator/pkg/hook/binding_context"
Expand Down
2 changes: 1 addition & 1 deletion pkg/hook/controller/hook_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package controller
import (
v1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"

"github.com/deckhouse/deckhouse/go_lib/log"
"github.com/deckhouse/deckhouse/pkg/log"
. "github.com/flant/shell-operator/pkg/hook/binding_context"
. "github.com/flant/shell-operator/pkg/hook/types"
"github.com/flant/shell-operator/pkg/kube_events_manager"
Expand Down
2 changes: 1 addition & 1 deletion pkg/hook/controller/hook_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

"github.com/deckhouse/deckhouse/go_lib/log"
"github.com/deckhouse/deckhouse/pkg/log"
. "github.com/onsi/gomega"

"github.com/flant/kube-client/fake"
Expand Down
2 changes: 1 addition & 1 deletion pkg/hook/controller/kubernetes_bindings_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package controller
import (
"fmt"

"github.com/deckhouse/deckhouse/go_lib/log"
"github.com/deckhouse/deckhouse/pkg/log"

. "github.com/flant/shell-operator/pkg/hook/binding_context"
. "github.com/flant/shell-operator/pkg/hook/types"
Expand Down
2 changes: 1 addition & 1 deletion pkg/hook/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/kennygrant/sanitize"
"golang.org/x/time/rate"

"github.com/deckhouse/deckhouse/go_lib/log"
"github.com/deckhouse/deckhouse/pkg/log"
"github.com/flant/shell-operator/pkg/app"
"github.com/flant/shell-operator/pkg/executor"
. "github.com/flant/shell-operator/pkg/hook/binding_context"
Expand Down
2 changes: 1 addition & 1 deletion pkg/hook/hook_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

v1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"

"github.com/deckhouse/deckhouse/go_lib/log"
"github.com/deckhouse/deckhouse/pkg/log"
"github.com/flant/shell-operator/pkg/executor"
"github.com/flant/shell-operator/pkg/hook/controller"
. "github.com/flant/shell-operator/pkg/hook/types"
Expand Down
2 changes: 1 addition & 1 deletion pkg/hook/hook_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
"testing"

"github.com/deckhouse/deckhouse/go_lib/log"
"github.com/deckhouse/deckhouse/pkg/log"
. "github.com/onsi/gomega"

"github.com/flant/shell-operator/pkg/app"
Expand Down
2 changes: 1 addition & 1 deletion pkg/hook/hook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"github.com/deckhouse/deckhouse/go_lib/log"
"github.com/deckhouse/deckhouse/pkg/log"
. "github.com/onsi/gomega"
"golang.org/x/time/rate"

Expand Down
2 changes: 1 addition & 1 deletion pkg/hook/task_metadata/task_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package task_metadata
import (
"fmt"

log "github.com/deckhouse/deckhouse/go_lib/log"
log "github.com/deckhouse/deckhouse/pkg/log"

"github.com/flant/shell-operator/pkg/hook/binding_context"
"github.com/flant/shell-operator/pkg/hook/types"
Expand Down
2 changes: 1 addition & 1 deletion pkg/kube/object_patch/operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package object_patch
import (
"fmt"

log "github.com/deckhouse/deckhouse/go_lib/log"
log "github.com/deckhouse/deckhouse/pkg/log"
"github.com/hashicorp/go-multierror"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
Expand Down
2 changes: 1 addition & 1 deletion pkg/kube/object_patch/patch.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"time"

"github.com/deckhouse/deckhouse/go_lib/log"
"github.com/deckhouse/deckhouse/pkg/log"
"github.com/hashicorp/go-multierror"
gerror "github.com/pkg/errors"
"k8s.io/apimachinery/pkg/api/equality"
Expand Down
2 changes: 1 addition & 1 deletion pkg/kube/object_patch/patch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"testing"

log "github.com/deckhouse/deckhouse/go_lib/log"
log "github.com/deckhouse/deckhouse/pkg/log"
"github.com/stretchr/testify/require"
v1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/errors"
Expand Down
2 changes: 1 addition & 1 deletion pkg/kube_events_manager/error_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
apierrors "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/client-go/tools/cache"

"github.com/deckhouse/deckhouse/go_lib/log"
"github.com/deckhouse/deckhouse/pkg/log"
"github.com/flant/shell-operator/pkg/metric_storage"
utils "github.com/flant/shell-operator/pkg/utils/labels"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/kube_events_manager/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"sync"
"time"

log "github.com/deckhouse/deckhouse/go_lib/log"
log "github.com/deckhouse/deckhouse/pkg/log"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/util/wait"
Expand Down
2 changes: 1 addition & 1 deletion pkg/kube_events_manager/kube_events_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"runtime/trace"
"sync"

"github.com/deckhouse/deckhouse/go_lib/log"
"github.com/deckhouse/deckhouse/pkg/log"

klient "github.com/flant/kube-client/client"
. "github.com/flant/shell-operator/pkg/kube_events_manager/types"
Expand Down
2 changes: 1 addition & 1 deletion pkg/kube_events_manager/kube_events_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

log "github.com/deckhouse/deckhouse/go_lib/log"
log "github.com/deckhouse/deckhouse/pkg/log"
"github.com/stretchr/testify/assert"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
Expand Down
2 changes: 1 addition & 1 deletion pkg/kube_events_manager/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"sort"

"github.com/deckhouse/deckhouse/go_lib/log"
"github.com/deckhouse/deckhouse/pkg/log"
klient "github.com/flant/kube-client/client"
. "github.com/flant/shell-operator/pkg/kube_events_manager/types"
"github.com/flant/shell-operator/pkg/metric_storage"
Expand Down
2 changes: 1 addition & 1 deletion pkg/kube_events_manager/monitor_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"

"github.com/deckhouse/deckhouse/go_lib/log"
"github.com/deckhouse/deckhouse/pkg/log"
. "github.com/flant/shell-operator/pkg/kube_events_manager/types"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/kube_events_manager/monitor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"testing"

"github.com/deckhouse/deckhouse/go_lib/log"
"github.com/deckhouse/deckhouse/pkg/log"
. "github.com/onsi/gomega"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
2 changes: 1 addition & 1 deletion pkg/kube_events_manager/namespace_informer.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"context"
"fmt"

"github.com/deckhouse/deckhouse/go_lib/log"
"github.com/deckhouse/deckhouse/pkg/log"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/wait"
Expand Down
2 changes: 1 addition & 1 deletion pkg/kube_events_manager/resource_informer.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"sync"
"time"

"github.com/deckhouse/deckhouse/go_lib/log"
"github.com/deckhouse/deckhouse/pkg/log"
"github.com/gofrs/uuid/v5"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
Expand Down
2 changes: 1 addition & 1 deletion pkg/kube_events_manager/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"strings"

log "github.com/deckhouse/deckhouse/go_lib/log"
log "github.com/deckhouse/deckhouse/pkg/log"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/metric_storage/metric_storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"

"github.com/deckhouse/deckhouse/go_lib/log"
"github.com/deckhouse/deckhouse/pkg/log"
"github.com/flant/shell-operator/pkg/metric_storage/operation"
"github.com/flant/shell-operator/pkg/metric_storage/vault"
. "github.com/flant/shell-operator/pkg/utils/labels"
Expand Down
Loading

0 comments on commit d13f895

Please sign in to comment.