Skip to content

Commit

Permalink
fix import error (#87)
Browse files Browse the repository at this point in the history
This PR fixes an import error at the `middleware.go` file
  • Loading branch information
edeNFed authored Mar 24, 2023
1 parent 7236177 commit f9be8f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoscaler/controllers/gateway/config/middleware.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package config

import (
odigosv1 "github.com/keyval-dev/odigos/api/v1alpha1"
odigosv1 "github.com/keyval-dev/odigos/api/odigos/v1alpha1"
commonconf "github.com/keyval-dev/odigos/autoscaler/controllers/common"
"github.com/keyval-dev/odigos/common"
"sigs.k8s.io/controller-runtime/pkg/log"
Expand All @@ -19,7 +19,7 @@ func (m *Middleware) DestType() common.DestinationType {

func (m *Middleware) ModifyConfig(dest *odigosv1.Destination, currentConfig *commonconf.Config) {
if isTracingEnabled(dest) || isMetricsEnabled(dest) || isLoggingEnabled(dest) {
target, exists := dest.Spec.Data[target]
_, exists := dest.Spec.Data[target]
if !exists {
log.Log.V(0).Info("Middleware target not specified, gateway will not be configured for Middleware")
return
Expand Down

0 comments on commit f9be8f4

Please sign in to comment.