*: move all imports to github.com/kubernetes-sigs/prometheus-adapter

Signed-off-by: paulfantom <pawel@krupa.net.pl>
This commit is contained in:
paulfantom 2021-02-22 15:26:02 +01:00
parent dd841a6e5e
commit cd55a67b89
No known key found for this signature in database
GPG key ID: 12AE0185401674E7
24 changed files with 50 additions and 50 deletions

View file

@ -20,7 +20,7 @@ import (
"context"
"fmt"
prom "github.com/directxman12/k8s-prometheus-adapter/pkg/client"
prom "github.com/kubernetes-sigs/prometheus-adapter/pkg/client"
pmodel "github.com/prometheus/common/model"
)

View file

@ -22,7 +22,7 @@ import (
"github.com/prometheus/client_golang/prometheus"
"github.com/directxman12/k8s-prometheus-adapter/pkg/client"
"github.com/kubernetes-sigs/prometheus-adapter/pkg/client"
)
var (

View file

@ -37,8 +37,8 @@ import (
"k8s.io/klog/v2"
"k8s.io/metrics/pkg/apis/custom_metrics"
prom "github.com/directxman12/k8s-prometheus-adapter/pkg/client"
"github.com/directxman12/k8s-prometheus-adapter/pkg/naming"
prom "github.com/kubernetes-sigs/prometheus-adapter/pkg/client"
"github.com/kubernetes-sigs/prometheus-adapter/pkg/naming"
)
// Runnable represents something that can be run until told to stop.

View file

@ -25,10 +25,10 @@ import (
"k8s.io/apimachinery/pkg/runtime/schema"
fakedyn "k8s.io/client-go/dynamic/fake"
config "github.com/directxman12/k8s-prometheus-adapter/cmd/config-gen/utils"
prom "github.com/directxman12/k8s-prometheus-adapter/pkg/client"
fakeprom "github.com/directxman12/k8s-prometheus-adapter/pkg/client/fake"
"github.com/directxman12/k8s-prometheus-adapter/pkg/naming"
config "github.com/kubernetes-sigs/prometheus-adapter/cmd/config-gen/utils"
prom "github.com/kubernetes-sigs/prometheus-adapter/pkg/client"
fakeprom "github.com/kubernetes-sigs/prometheus-adapter/pkg/client/fake"
"github.com/kubernetes-sigs/prometheus-adapter/pkg/naming"
pmodel "github.com/prometheus/common/model"
)

View file

@ -24,8 +24,8 @@ import (
apimeta "k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/labels"
prom "github.com/directxman12/k8s-prometheus-adapter/pkg/client"
"github.com/directxman12/k8s-prometheus-adapter/pkg/naming"
prom "github.com/kubernetes-sigs/prometheus-adapter/pkg/client"
"github.com/kubernetes-sigs/prometheus-adapter/pkg/naming"
pmodel "github.com/prometheus/common/model"
"k8s.io/klog/v2"
)

View file

@ -31,9 +31,9 @@ import (
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/selection"
config "github.com/directxman12/k8s-prometheus-adapter/cmd/config-gen/utils"
prom "github.com/directxman12/k8s-prometheus-adapter/pkg/client"
"github.com/directxman12/k8s-prometheus-adapter/pkg/naming"
config "github.com/kubernetes-sigs/prometheus-adapter/cmd/config-gen/utils"
prom "github.com/kubernetes-sigs/prometheus-adapter/pkg/client"
"github.com/kubernetes-sigs/prometheus-adapter/pkg/naming"
)
// restMapper creates a RESTMapper with just the types we need for

View file

@ -24,8 +24,8 @@ import (
pmodel "github.com/prometheus/common/model"
"k8s.io/klog/v2"
prom "github.com/directxman12/k8s-prometheus-adapter/pkg/client"
"github.com/directxman12/k8s-prometheus-adapter/pkg/naming"
prom "github.com/kubernetes-sigs/prometheus-adapter/pkg/client"
"github.com/kubernetes-sigs/prometheus-adapter/pkg/naming"
)
// Runnable represents something that can be run until told to stop.

View file

@ -20,8 +20,8 @@ import (
"k8s.io/apimachinery/pkg/labels"
"k8s.io/klog/v2"
prom "github.com/directxman12/k8s-prometheus-adapter/pkg/client"
"github.com/directxman12/k8s-prometheus-adapter/pkg/naming"
prom "github.com/kubernetes-sigs/prometheus-adapter/pkg/client"
"github.com/kubernetes-sigs/prometheus-adapter/pkg/naming"
)
// ExternalSeriesRegistry acts as the top-level converter for transforming Kubernetes requests

View file

@ -17,8 +17,8 @@ import (
"errors"
"fmt"
prom "github.com/directxman12/k8s-prometheus-adapter/pkg/client"
"github.com/kubernetes-sigs/custom-metrics-apiserver/pkg/provider"
prom "github.com/kubernetes-sigs/prometheus-adapter/pkg/client"
"github.com/prometheus/common/model"
"k8s.io/apimachinery/pkg/api/resource"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

View file

@ -17,7 +17,7 @@ import (
"testing"
"time"
prom "github.com/directxman12/k8s-prometheus-adapter/pkg/client"
prom "github.com/kubernetes-sigs/prometheus-adapter/pkg/client"
"github.com/stretchr/testify/require"
)

View file

@ -29,8 +29,8 @@ import (
"k8s.io/apimachinery/pkg/labels"
"k8s.io/metrics/pkg/apis/external_metrics"
prom "github.com/directxman12/k8s-prometheus-adapter/pkg/client"
"github.com/directxman12/k8s-prometheus-adapter/pkg/naming"
prom "github.com/kubernetes-sigs/prometheus-adapter/pkg/client"
"github.com/kubernetes-sigs/prometheus-adapter/pkg/naming"
)
type externalPrometheusProvider struct {

View file

@ -24,8 +24,8 @@ import (
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/runtime/schema"
prom "github.com/directxman12/k8s-prometheus-adapter/pkg/client"
"github.com/directxman12/k8s-prometheus-adapter/pkg/config"
prom "github.com/kubernetes-sigs/prometheus-adapter/pkg/client"
"github.com/kubernetes-sigs/prometheus-adapter/pkg/config"
)
// MetricNamer knows how to convert Prometheus series names and label names to

View file

@ -27,7 +27,7 @@ import (
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/selection"
prom "github.com/directxman12/k8s-prometheus-adapter/pkg/client"
prom "github.com/kubernetes-sigs/prometheus-adapter/pkg/client"
)
// MetricsQuery represents a compiled metrics query for some set of

View file

@ -20,7 +20,7 @@ import (
"fmt"
"testing"
prom "github.com/directxman12/k8s-prometheus-adapter/pkg/client"
prom "github.com/kubernetes-sigs/prometheus-adapter/pkg/client"
pmodel "github.com/prometheus/common/model"
labels "k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/runtime/schema"

View file

@ -21,7 +21,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/directxman12/k8s-prometheus-adapter/pkg/config"
"github.com/kubernetes-sigs/prometheus-adapter/pkg/config"
)
func TestReMatcherIs(t *testing.T) {

View file

@ -26,9 +26,9 @@ import (
apimeta "k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/runtime/schema"
prom "github.com/directxman12/k8s-prometheus-adapter/pkg/client"
"github.com/directxman12/k8s-prometheus-adapter/pkg/config"
"github.com/kubernetes-sigs/custom-metrics-apiserver/pkg/provider"
prom "github.com/kubernetes-sigs/prometheus-adapter/pkg/client"
"github.com/kubernetes-sigs/prometheus-adapter/pkg/config"
pmodel "github.com/prometheus/common/model"
"k8s.io/klog/v2"
)

View file

@ -32,9 +32,9 @@ import (
metrics "k8s.io/metrics/pkg/apis/metrics"
"sigs.k8s.io/metrics-server/pkg/api"
"github.com/directxman12/k8s-prometheus-adapter/pkg/client"
"github.com/directxman12/k8s-prometheus-adapter/pkg/config"
"github.com/directxman12/k8s-prometheus-adapter/pkg/naming"
"github.com/kubernetes-sigs/prometheus-adapter/pkg/client"
"github.com/kubernetes-sigs/prometheus-adapter/pkg/config"
"github.com/kubernetes-sigs/prometheus-adapter/pkg/naming"
pmodel "github.com/prometheus/common/model"
)

View file

@ -30,9 +30,9 @@ import (
"k8s.io/metrics/pkg/apis/metrics"
"sigs.k8s.io/metrics-server/pkg/api"
config "github.com/directxman12/k8s-prometheus-adapter/cmd/config-gen/utils"
prom "github.com/directxman12/k8s-prometheus-adapter/pkg/client"
fakeprom "github.com/directxman12/k8s-prometheus-adapter/pkg/client/fake"
config "github.com/kubernetes-sigs/prometheus-adapter/cmd/config-gen/utils"
prom "github.com/kubernetes-sigs/prometheus-adapter/pkg/client"
fakeprom "github.com/kubernetes-sigs/prometheus-adapter/pkg/client/fake"
pmodel "github.com/prometheus/common/model"
)