1
0
mirror of https://github.com/rancher/rke.git synced 2025-04-26 19:00:53 +00:00

Remove references to rancher/types

This commit is contained in:
Darren Shepherd 2020-07-11 09:24:19 -07:00
parent e38ebc3798
commit c405e6ea1b
49 changed files with 57 additions and 54 deletions

View File

@ -6,7 +6,7 @@ import (
"github.com/go-ini/ini"
"github.com/rancher/types/apis/management.cattle.io/v3"
v3 "github.com/rancher/rke/types"
)
const (

View File

@ -4,7 +4,7 @@ import (
"encoding/json"
"fmt"
"github.com/rancher/types/apis/management.cattle.io/v3"
v3 "github.com/rancher/rke/types"
)
const (

View File

@ -6,7 +6,7 @@ import (
"github.com/rancher/rke/cloudprovider/custom"
"github.com/rancher/rke/cloudprovider/openstack"
"github.com/rancher/rke/cloudprovider/vsphere"
"github.com/rancher/types/apis/management.cattle.io/v3"
v3 "github.com/rancher/rke/types"
)
type CloudProvider interface {

View File

@ -1,6 +1,6 @@
package custom
import "github.com/rancher/types/apis/management.cattle.io/v3"
import v3 "github.com/rancher/rke/types"
type CloudProvider struct {
Name string

View File

@ -5,7 +5,7 @@ import (
"fmt"
"github.com/go-ini/ini"
"github.com/rancher/types/apis/management.cattle.io/v3"
v3 "github.com/rancher/rke/types"
)
const (

View File

@ -4,7 +4,7 @@ import (
"fmt"
"github.com/rancher/rke/templates"
"github.com/rancher/types/apis/management.cattle.io/v3"
v3 "github.com/rancher/rke/types"
)
const (

View File

@ -18,9 +18,9 @@ import (
"github.com/rancher/rke/log"
"github.com/rancher/rke/services"
"github.com/rancher/rke/templates"
v3 "github.com/rancher/rke/types"
"github.com/rancher/rke/types/kdm"
"github.com/rancher/rke/util"
v3 "github.com/rancher/types/apis/management.cattle.io/v3"
"github.com/rancher/types/kdm"
"github.com/sirupsen/logrus"
"gopkg.in/yaml.v2"
appsv1 "k8s.io/api/apps/v1"

View File

@ -22,8 +22,8 @@ import (
"github.com/rancher/rke/pki"
"github.com/rancher/rke/pki/cert"
"github.com/rancher/rke/services"
v3 "github.com/rancher/rke/types"
"github.com/rancher/rke/util"
v3 "github.com/rancher/types/apis/management.cattle.io/v3"
"github.com/sirupsen/logrus"
"golang.org/x/sync/errgroup"
"gopkg.in/yaml.v2"

View File

@ -15,8 +15,8 @@ import (
"github.com/rancher/rke/metadata"
"github.com/rancher/rke/services"
"github.com/rancher/rke/templates"
v3 "github.com/rancher/rke/types"
"github.com/rancher/rke/util"
v3 "github.com/rancher/types/apis/management.cattle.io/v3"
"github.com/sirupsen/logrus"
appsv1 "k8s.io/api/apps/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"

View File

@ -17,8 +17,8 @@ import (
"github.com/rancher/rke/log"
"github.com/rancher/rke/services"
"github.com/rancher/rke/templates"
v3 "github.com/rancher/rke/types"
"github.com/rancher/rke/util"
v3 "github.com/rancher/types/apis/management.cattle.io/v3"
v1 "k8s.io/api/core/v1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/runtime"

View File

@ -9,7 +9,7 @@ import (
"github.com/rancher/rke/docker"
"github.com/rancher/rke/hosts"
"github.com/rancher/rke/log"
v3 "github.com/rancher/types/apis/management.cattle.io/v3"
v3 "github.com/rancher/rke/types"
"github.com/sirupsen/logrus"
)

View File

@ -10,8 +10,8 @@ import (
"github.com/rancher/rke/log"
"github.com/rancher/rke/pki"
"github.com/rancher/rke/services"
v3 "github.com/rancher/rke/types"
"github.com/rancher/rke/util"
v3 "github.com/rancher/types/apis/management.cattle.io/v3"
"github.com/sirupsen/logrus"
"golang.org/x/sync/errgroup"
"k8s.io/apiserver/pkg/apis/apiserver/v1alpha1"

View File

@ -3,7 +3,7 @@ package cluster
import (
"github.com/rancher/rke/metadata"
"github.com/rancher/rke/services"
"github.com/rancher/types/apis/management.cattle.io/v3"
v3 "github.com/rancher/rke/types"
)
func GetLocalRKEConfig() *v3.RancherKubernetesEngineConfig {

View File

@ -14,8 +14,8 @@ import (
"github.com/rancher/rke/log"
"github.com/rancher/rke/pki"
"github.com/rancher/rke/templates"
v3 "github.com/rancher/rke/types"
"github.com/rancher/rke/util"
"github.com/rancher/types/apis/management.cattle.io/v3"
"github.com/sirupsen/logrus"
"golang.org/x/sync/errgroup"
appsv1 "k8s.io/api/apps/v1"

View File

@ -18,8 +18,8 @@ import (
"github.com/rancher/rke/metadata"
"github.com/rancher/rke/pki"
"github.com/rancher/rke/services"
v3 "github.com/rancher/rke/types"
"github.com/rancher/rke/util"
v3 "github.com/rancher/types/apis/management.cattle.io/v3"
"github.com/sirupsen/logrus"
)

View File

@ -12,7 +12,7 @@ import (
"github.com/rancher/rke/pki"
"github.com/rancher/rke/pki/cert"
"github.com/rancher/rke/services"
v3 "github.com/rancher/types/apis/management.cattle.io/v3"
v3 "github.com/rancher/rke/types"
"github.com/sirupsen/logrus"
"k8s.io/client-go/kubernetes"
)

View File

@ -8,8 +8,8 @@ import (
"github.com/rancher/rke/log"
"github.com/rancher/rke/pki"
"github.com/rancher/rke/services"
v3 "github.com/rancher/rke/types"
"github.com/rancher/rke/util"
v3 "github.com/rancher/types/apis/management.cattle.io/v3"
"golang.org/x/sync/errgroup"
)

View File

@ -17,7 +17,7 @@ import (
"github.com/rancher/rke/k8s"
"github.com/rancher/rke/log"
"github.com/rancher/rke/pki"
v3 "github.com/rancher/types/apis/management.cattle.io/v3"
v3 "github.com/rancher/rke/types"
"github.com/sirupsen/logrus"
"gopkg.in/yaml.v2"
v1 "k8s.io/api/core/v1"

View File

@ -12,7 +12,7 @@ import (
"github.com/rancher/rke/pki"
"github.com/rancher/rke/pki/cert"
"github.com/rancher/rke/services"
v3 "github.com/rancher/types/apis/management.cattle.io/v3"
v3 "github.com/rancher/rke/types"
"github.com/sirupsen/logrus"
"github.com/urfave/cli"
)

View File

@ -12,8 +12,8 @@ import (
"github.com/rancher/rke/hosts"
"github.com/rancher/rke/log"
"github.com/rancher/rke/pki"
v3 "github.com/rancher/rke/types"
"github.com/rancher/rke/util"
"github.com/rancher/types/apis/management.cattle.io/v3"
"github.com/sirupsen/logrus"
"github.com/urfave/cli"
)

View File

@ -15,7 +15,7 @@ import (
"github.com/rancher/rke/cluster"
"github.com/rancher/rke/pki"
"github.com/rancher/rke/services"
"github.com/rancher/types/apis/management.cattle.io/v3"
v3 "github.com/rancher/rke/types"
"github.com/sirupsen/logrus"
"github.com/urfave/cli"
"gopkg.in/yaml.v2"

View File

@ -8,7 +8,7 @@ import (
"github.com/rancher/rke/hosts"
"github.com/rancher/rke/log"
"github.com/rancher/rke/pki"
"github.com/rancher/types/apis/management.cattle.io/v3"
v3 "github.com/rancher/rke/types"
"github.com/sirupsen/logrus"
"github.com/urfave/cli"
)

View File

@ -12,7 +12,7 @@ import (
"github.com/rancher/rke/hosts"
"github.com/rancher/rke/log"
"github.com/rancher/rke/pki"
v3 "github.com/rancher/types/apis/management.cattle.io/v3"
v3 "github.com/rancher/rke/types"
"github.com/sirupsen/logrus"
"github.com/urfave/cli"
)

View File

@ -12,7 +12,7 @@ import (
"github.com/rancher/rke/hosts"
"github.com/rancher/rke/log"
"github.com/rancher/rke/pki"
v3 "github.com/rancher/types/apis/management.cattle.io/v3"
v3 "github.com/rancher/rke/types"
"github.com/sirupsen/logrus"
"github.com/urfave/cli"
)

View File

@ -14,7 +14,7 @@ import (
"github.com/rancher/rke/log"
"github.com/rancher/rke/pki"
"github.com/rancher/rke/pki/cert"
v3 "github.com/rancher/types/apis/management.cattle.io/v3"
v3 "github.com/rancher/rke/types"
"github.com/urfave/cli"
)

View File

@ -21,7 +21,7 @@ import (
"github.com/docker/docker/pkg/stdcopy"
"github.com/rancher/rke/log"
"github.com/rancher/rke/metadata"
v3 "github.com/rancher/types/apis/management.cattle.io/v3"
v3 "github.com/rancher/rke/types"
"github.com/sirupsen/logrus"
"k8s.io/apimachinery/pkg/util/sets"
)

View File

@ -3,7 +3,7 @@ package docker
import (
"testing"
v3 "github.com/rancher/types/apis/management.cattle.io/v3"
v3 "github.com/rancher/rke/types"
"github.com/stretchr/testify/assert"
)

View File

@ -2,13 +2,14 @@ package hosts
import (
"fmt"
"k8s.io/client-go/transport"
"net"
"net/http"
"strings"
"time"
"github.com/rancher/types/apis/management.cattle.io/v3"
"k8s.io/client-go/transport"
v3 "github.com/rancher/rke/types"
"golang.org/x/crypto/ssh"
)

View File

@ -14,7 +14,7 @@ import (
"github.com/rancher/rke/docker"
"github.com/rancher/rke/k8s"
"github.com/rancher/rke/log"
v3 "github.com/rancher/types/apis/management.cattle.io/v3"
v3 "github.com/rancher/rke/types"
apierrors "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/client-go/kubernetes"
)

View File

@ -1,3 +1,4 @@
//go:generate go run ./vendor/k8s.io/gengo/examples/deepcopy-gen --go-header-file ./scripts/boilerplate.go.txt --input-dirs ./types --input-dirs ./types/kdm --output-file-base zz_generated_deepcopy
//go:generate go run ./codegen/codegen.go
//go:generate go run ./vendor/github.com/go-bindata/go-bindata/go-bindata -o ./data/bindata.go -ignore bindata.go -pkg data -modtime 1557785965 -mode 0644 ./data/
package main

View File

@ -15,8 +15,8 @@ import (
mVersion "github.com/mcuadros/go-version"
"github.com/rancher/rke/data"
v3 "github.com/rancher/types/apis/management.cattle.io/v3"
"github.com/rancher/types/kdm"
v3 "github.com/rancher/rke/types"
"github.com/rancher/rke/types/kdm"
)
const (

View File

@ -15,7 +15,7 @@ import (
"github.com/rancher/rke/hosts"
"github.com/rancher/rke/log"
"github.com/rancher/rke/pki/cert"
v3 "github.com/rancher/types/apis/management.cattle.io/v3"
v3 "github.com/rancher/rke/types"
"github.com/sirupsen/logrus"
)

View File

@ -14,7 +14,7 @@ import (
"github.com/rancher/rke/docker"
"github.com/rancher/rke/hosts"
"github.com/rancher/rke/log"
"github.com/rancher/types/apis/management.cattle.io/v3"
v3 "github.com/rancher/rke/types"
)
type CertificatePKI struct {

View File

@ -7,7 +7,7 @@ import (
"net"
"testing"
"github.com/rancher/types/apis/management.cattle.io/v3"
v3 "github.com/rancher/rke/types"
)
const (

View File

@ -11,7 +11,7 @@ import (
"github.com/rancher/rke/hosts"
"github.com/rancher/rke/log"
"github.com/rancher/rke/pki/cert"
v3 "github.com/rancher/types/apis/management.cattle.io/v3"
v3 "github.com/rancher/rke/types"
"github.com/sirupsen/logrus"
)

View File

@ -2,11 +2,12 @@ package pki
import (
"context"
"github.com/rancher/rke/hosts"
v3 "github.com/rancher/types/apis/management.cattle.io/v3"
"github.com/stretchr/testify/assert"
"reflect"
"testing"
"github.com/rancher/rke/hosts"
v3 "github.com/rancher/rke/types"
"github.com/stretchr/testify/assert"
)
func TestDeleteUnusedCerts(t *testing.T) {

View File

@ -21,7 +21,7 @@ import (
"github.com/rancher/rke/hosts"
"github.com/rancher/rke/pki/cert"
v3 "github.com/rancher/types/apis/management.cattle.io/v3"
v3 "github.com/rancher/rke/types"
"github.com/sirupsen/logrus"
)

View File

@ -12,8 +12,8 @@ import (
"github.com/rancher/rke/k8s"
"github.com/rancher/rke/log"
"github.com/rancher/rke/pki"
v3 "github.com/rancher/rke/types"
"github.com/rancher/rke/util"
v3 "github.com/rancher/types/apis/management.cattle.io/v3"
"github.com/sirupsen/logrus"
"golang.org/x/sync/errgroup"
"k8s.io/client-go/kubernetes"

View File

@ -16,8 +16,8 @@ import (
"github.com/rancher/rke/log"
"github.com/rancher/rke/pki"
"github.com/rancher/rke/pki/cert"
v3 "github.com/rancher/rke/types"
"github.com/rancher/rke/util"
v3 "github.com/rancher/types/apis/management.cattle.io/v3"
"github.com/sirupsen/logrus"
"golang.org/x/sync/errgroup"
)

View File

@ -7,7 +7,7 @@ import (
"github.com/rancher/rke/hosts"
"github.com/rancher/rke/log"
"github.com/rancher/rke/pki"
"github.com/rancher/types/apis/management.cattle.io/v3"
v3 "github.com/rancher/rke/types"
"github.com/sirupsen/logrus"
)

View File

@ -5,7 +5,7 @@ import (
"github.com/rancher/rke/docker"
"github.com/rancher/rke/hosts"
"github.com/rancher/types/apis/management.cattle.io/v3"
v3 "github.com/rancher/rke/types"
)
func runKubeController(ctx context.Context, host *hosts.Host, df hosts.DialerFactory, prsMap map[string]v3.PrivateRegistry, controllerProcess v3.Process, alpineImage string) error {

View File

@ -6,7 +6,7 @@ import (
"github.com/rancher/rke/docker"
"github.com/rancher/rke/hosts"
"github.com/rancher/rke/pki"
"github.com/rancher/types/apis/management.cattle.io/v3"
v3 "github.com/rancher/rke/types"
)
func runKubelet(ctx context.Context, host *hosts.Host, df hosts.DialerFactory, prsMap map[string]v3.PrivateRegistry, kubeletProcess v3.Process, certMap map[string]pki.CertificatePKI, alpineImage string) error {

View File

@ -5,7 +5,7 @@ import (
"github.com/rancher/rke/docker"
"github.com/rancher/rke/hosts"
"github.com/rancher/types/apis/management.cattle.io/v3"
v3 "github.com/rancher/rke/types"
)
func runKubeproxy(ctx context.Context, host *hosts.Host, df hosts.DialerFactory, prsMap map[string]v3.PrivateRegistry, kubeProxyProcess v3.Process, alpineImage string) error {

View File

@ -9,9 +9,9 @@ import (
"github.com/rancher/rke/hosts"
"github.com/rancher/rke/k8s"
v3 "github.com/rancher/types/apis/management.cattle.io/v3"
v3 "github.com/rancher/rke/types"
"github.com/sirupsen/logrus"
"k8s.io/api/core/v1"
v1 "k8s.io/api/core/v1"
k8sutil "k8s.io/apimachinery/pkg/util/intstr"
"k8s.io/client-go/kubernetes"
"k8s.io/kubectl/pkg/drain"

View File

@ -5,7 +5,7 @@ import (
"github.com/rancher/rke/docker"
"github.com/rancher/rke/hosts"
"github.com/rancher/types/apis/management.cattle.io/v3"
v3 "github.com/rancher/rke/types"
)
const (

View File

@ -5,7 +5,7 @@ import (
"github.com/rancher/rke/docker"
"github.com/rancher/rke/hosts"
"github.com/rancher/types/apis/management.cattle.io/v3"
v3 "github.com/rancher/rke/types"
)
func runScheduler(ctx context.Context, host *hosts.Host, df hosts.DialerFactory, prsMap map[string]v3.PrivateRegistry, schedulerProcess v3.Process, alpineImage string) error {

View File

@ -9,8 +9,8 @@ import (
"github.com/rancher/rke/docker"
"github.com/rancher/rke/hosts"
"github.com/rancher/rke/log"
v3 "github.com/rancher/rke/types"
"github.com/rancher/rke/util"
v3 "github.com/rancher/types/apis/management.cattle.io/v3"
"github.com/sirupsen/logrus"
)

View File

@ -12,8 +12,8 @@ import (
"github.com/rancher/rke/k8s"
"github.com/rancher/rke/log"
"github.com/rancher/rke/pki"
v3 "github.com/rancher/rke/types"
"github.com/rancher/rke/util"
v3 "github.com/rancher/types/apis/management.cattle.io/v3"
"github.com/sirupsen/logrus"
"golang.org/x/sync/errgroup"
apierrors "k8s.io/apimachinery/pkg/api/errors"

View File

@ -12,7 +12,7 @@ import (
"github.com/ghodss/yaml"
"github.com/rancher/norman/types/convert"
"github.com/rancher/rke/metadata"
"github.com/rancher/types/kdm"
"github.com/rancher/rke/types/kdm"
"github.com/sirupsen/logrus"
)