Migrate pkg to use the knative.dev/pkg import path (#489)

* Manual changes.

* scripted changes.
This commit is contained in:
Matt Moore 2019-06-26 13:02:06 -07:00 committed by Knative Prow Robot
parent b30961a891
commit 222dd25986
226 changed files with 518 additions and 518 deletions

View File

@ -46,7 +46,7 @@ export PATH="${PATH}:${GOPATH}/bin"
### Checkout your fork
The Go tools require that you clone the repository to the
`src/github.com/knative/pkg` directory in your
`src/knative.dev/pkg` directory in your
[`GOPATH`](https://github.com/golang/go/wiki/SettingGOPATH).
To check out this repository:
@ -56,8 +56,8 @@ To check out this repository:
1. Clone it to your machine:
```shell
mkdir -p ${GOPATH}/src/github.com/knative
cd ${GOPATH}/src/github.com/knative
mkdir -p ${GOPATH}/src/knative.dev
cd ${GOPATH}/src/knative.dev
git clone git@github.com:${YOUR_GITHUB_USERNAME}/pkg.git
cd pkg
git remote add upstream git@github.com:knative/pkg.git

View File

@ -21,9 +21,9 @@ import (
"strings"
"testing"
"github.com/knative/pkg/apis"
"github.com/knative/pkg/ptr"
. "github.com/knative/pkg/testing"
"knative.dev/pkg/apis"
"knative.dev/pkg/ptr"
. "knative.dev/pkg/testing"
)
func TestCheckDeprecated(t *testing.T) {

View File

@ -24,7 +24,7 @@ import (
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"github.com/knative/pkg/apis/duck"
"knative.dev/pkg/apis/duck"
)
// PodSpecable is implemented by types containing a PodTemplateSpec

View File

@ -22,7 +22,7 @@ import (
appsv1 "k8s.io/api/apps/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"github.com/knative/pkg/apis/duck"
"knative.dev/pkg/apis/duck"
)
type Scalable struct {

View File

@ -29,7 +29,7 @@ import (
"k8s.io/client-go/dynamic"
"k8s.io/client-go/tools/cache"
"github.com/knative/pkg/apis"
"knative.dev/pkg/apis"
)
// TypedInformerFactory implements InformerFactory such that the elements

View File

@ -30,9 +30,9 @@ import (
"k8s.io/apimachinery/pkg/watch"
"k8s.io/client-go/dynamic/fake"
"github.com/knative/pkg/apis/duck"
duckv1alpha1 "github.com/knative/pkg/apis/duck/v1alpha1"
. "github.com/knative/pkg/testing"
"knative.dev/pkg/apis/duck"
duckv1alpha1 "knative.dev/pkg/apis/duck/v1alpha1"
. "knative.dev/pkg/testing"
)
func TestSimpleList(t *testing.T) {

View File

@ -20,9 +20,9 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"github.com/knative/pkg/apis"
"github.com/knative/pkg/apis/duck"
"github.com/knative/pkg/apis/duck/v1beta1"
"knative.dev/pkg/apis"
"knative.dev/pkg/apis/duck"
"knative.dev/pkg/apis/duck/v1beta1"
)
// Addressable provides a generic mechanism for a custom resource

View File

@ -19,8 +19,8 @@ package v1alpha1
import (
"testing"
"github.com/knative/pkg/apis"
"github.com/knative/pkg/apis/duck/v1beta1"
"knative.dev/pkg/apis"
"knative.dev/pkg/apis/duck/v1beta1"
)
func TestGetURL(t *testing.T) {

View File

@ -23,7 +23,7 @@ import (
"fmt"
"github.com/knative/pkg/apis"
"knative.dev/pkg/apis"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

View File

@ -22,7 +22,7 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/knative/pkg/apis"
"knative.dev/pkg/apis"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/equality"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

View File

@ -24,7 +24,7 @@ import (
"time"
"github.com/google/go-cmp/cmp"
"github.com/knative/pkg/apis"
"knative.dev/pkg/apis"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

View File

@ -23,8 +23,8 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"github.com/knative/pkg/apis"
"github.com/knative/pkg/apis/duck"
"knative.dev/pkg/apis"
"knative.dev/pkg/apis/duck"
)
// Conditions is the schema for the conditions portion of the payload

View File

@ -19,8 +19,8 @@ package v1alpha1
import (
"testing"
"github.com/knative/pkg/apis/duck"
"github.com/knative/pkg/apis/duck/v1beta1"
"knative.dev/pkg/apis/duck"
"knative.dev/pkg/apis/duck/v1beta1"
)
func TestTypesImplements(t *testing.T) {

View File

@ -20,8 +20,8 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"github.com/knative/pkg/apis"
"github.com/knative/pkg/apis/duck"
"knative.dev/pkg/apis"
"knative.dev/pkg/apis/duck"
)
// LegacyTargetable left around until we migrate to Addressable in the

View File

@ -17,7 +17,7 @@ limitations under the License.
package v1alpha1
import (
"github.com/knative/pkg/apis/duck"
"knative.dev/pkg/apis/duck"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"

View File

@ -20,8 +20,8 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"github.com/knative/pkg/apis"
"github.com/knative/pkg/apis/duck"
"knative.dev/pkg/apis"
"knative.dev/pkg/apis/duck"
)
// Targetable is an earlier version of the Callable interface.

View File

@ -20,8 +20,8 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"github.com/knative/pkg/apis"
"github.com/knative/pkg/apis/duck"
"knative.dev/pkg/apis"
"knative.dev/pkg/apis/duck"
)
// Addressable provides a generic mechanism for a custom resource

View File

@ -19,7 +19,7 @@ package v1beta1
import (
"testing"
"github.com/knative/pkg/apis/duck"
"knative.dev/pkg/apis/duck"
)
func TestTypesImplements(t *testing.T) {

View File

@ -17,7 +17,7 @@ limitations under the License.
package v1beta1
import (
"github.com/knative/pkg/apis/duck"
"knative.dev/pkg/apis/duck"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"

View File

@ -24,8 +24,8 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"github.com/knative/pkg/apis"
"github.com/knative/pkg/apis/duck"
"knative.dev/pkg/apis"
"knative.dev/pkg/apis/duck"
)
// Conditions is a simple wrapper around apis.Conditions to implement duck.Implementable.

View File

@ -21,7 +21,7 @@ import (
"testing"
"github.com/google/go-cmp/cmp"
"github.com/knative/pkg/apis"
"knative.dev/pkg/apis"
corev1 "k8s.io/api/core/v1"
)

View File

@ -21,8 +21,8 @@ limitations under the License.
package v1beta1
import (
apis "github.com/knative/pkg/apis"
runtime "k8s.io/apimachinery/pkg/runtime"
apis "knative.dev/pkg/apis"
)
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

View File

@ -20,7 +20,7 @@ import (
"encoding/json"
"fmt"
"github.com/knative/pkg/kmp"
"knative.dev/pkg/kmp"
)
// Implementable is implemented by the Fooable duck type that consumers

View File

@ -21,7 +21,7 @@ import (
"sort"
"strings"
"github.com/knative/pkg/kmp"
"knative.dev/pkg/kmp"
)
// CurrentField is a constant to supply as a fieldPath for when there is

View File

@ -17,7 +17,7 @@ limitations under the License.
package v1alpha1
import (
"github.com/knative/pkg/apis/istio/common/v1alpha1"
"knative.dev/pkg/apis/istio/common/v1alpha1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

View File

@ -17,7 +17,7 @@ limitations under the License.
package v1alpha1
import (
"github.com/knative/pkg/apis/istio/authentication"
"knative.dev/pkg/apis/istio/authentication"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"

View File

@ -21,8 +21,8 @@ limitations under the License.
package v1alpha1
import (
commonv1alpha1 "github.com/knative/pkg/apis/istio/common/v1alpha1"
runtime "k8s.io/apimachinery/pkg/runtime"
commonv1alpha1 "knative.dev/pkg/apis/istio/common/v1alpha1"
)
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

View File

@ -17,7 +17,7 @@ limitations under the License.
package v1alpha3
import (
"github.com/knative/pkg/apis/istio"
"knative.dev/pkg/apis/istio"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"

View File

@ -17,7 +17,7 @@ limitations under the License.
package v1alpha3
import (
"github.com/knative/pkg/apis/istio/common/v1alpha1"
"knative.dev/pkg/apis/istio/common/v1alpha1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

View File

@ -21,8 +21,8 @@ limitations under the License.
package v1alpha3
import (
v1alpha1 "github.com/knative/pkg/apis/istio/common/v1alpha1"
runtime "k8s.io/apimachinery/pkg/runtime"
v1alpha1 "knative.dev/pkg/apis/istio/common/v1alpha1"
)
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

View File

@ -19,8 +19,8 @@ import (
"fmt"
"testing"
"github.com/knative/pkg/apis"
duckv1b1 "github.com/knative/pkg/apis/duck/v1beta1"
"knative.dev/pkg/apis"
duckv1b1 "knative.dev/pkg/apis/duck/v1beta1"
corev1 "k8s.io/api/core/v1"
)

View File

@ -19,11 +19,11 @@ limitations under the License.
package versioned
import (
authenticationv1alpha1 "github.com/knative/pkg/client/clientset/versioned/typed/authentication/v1alpha1"
networkingv1alpha3 "github.com/knative/pkg/client/clientset/versioned/typed/istio/v1alpha3"
discovery "k8s.io/client-go/discovery"
rest "k8s.io/client-go/rest"
flowcontrol "k8s.io/client-go/util/flowcontrol"
authenticationv1alpha1 "knative.dev/pkg/client/clientset/versioned/typed/authentication/v1alpha1"
networkingv1alpha3 "knative.dev/pkg/client/clientset/versioned/typed/istio/v1alpha3"
)
type Interface interface {

View File

@ -19,16 +19,16 @@ limitations under the License.
package fake
import (
clientset "github.com/knative/pkg/client/clientset/versioned"
authenticationv1alpha1 "github.com/knative/pkg/client/clientset/versioned/typed/authentication/v1alpha1"
fakeauthenticationv1alpha1 "github.com/knative/pkg/client/clientset/versioned/typed/authentication/v1alpha1/fake"
networkingv1alpha3 "github.com/knative/pkg/client/clientset/versioned/typed/istio/v1alpha3"
fakenetworkingv1alpha3 "github.com/knative/pkg/client/clientset/versioned/typed/istio/v1alpha3/fake"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/watch"
"k8s.io/client-go/discovery"
fakediscovery "k8s.io/client-go/discovery/fake"
"k8s.io/client-go/testing"
clientset "knative.dev/pkg/client/clientset/versioned"
authenticationv1alpha1 "knative.dev/pkg/client/clientset/versioned/typed/authentication/v1alpha1"
fakeauthenticationv1alpha1 "knative.dev/pkg/client/clientset/versioned/typed/authentication/v1alpha1/fake"
networkingv1alpha3 "knative.dev/pkg/client/clientset/versioned/typed/istio/v1alpha3"
fakenetworkingv1alpha3 "knative.dev/pkg/client/clientset/versioned/typed/istio/v1alpha3/fake"
)
// NewSimpleClientset returns a clientset that will respond with the provided objects.

View File

@ -19,13 +19,13 @@ limitations under the License.
package fake
import (
authenticationv1alpha1 "github.com/knative/pkg/apis/istio/authentication/v1alpha1"
networkingv1alpha3 "github.com/knative/pkg/apis/istio/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
schema "k8s.io/apimachinery/pkg/runtime/schema"
serializer "k8s.io/apimachinery/pkg/runtime/serializer"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
authenticationv1alpha1 "knative.dev/pkg/apis/istio/authentication/v1alpha1"
networkingv1alpha3 "knative.dev/pkg/apis/istio/v1alpha3"
)
var scheme = runtime.NewScheme()

View File

@ -19,13 +19,13 @@ limitations under the License.
package scheme
import (
authenticationv1alpha1 "github.com/knative/pkg/apis/istio/authentication/v1alpha1"
networkingv1alpha3 "github.com/knative/pkg/apis/istio/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
schema "k8s.io/apimachinery/pkg/runtime/schema"
serializer "k8s.io/apimachinery/pkg/runtime/serializer"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
authenticationv1alpha1 "knative.dev/pkg/apis/istio/authentication/v1alpha1"
networkingv1alpha3 "knative.dev/pkg/apis/istio/v1alpha3"
)
var Scheme = runtime.NewScheme()

View File

@ -19,10 +19,10 @@ limitations under the License.
package v1alpha1
import (
v1alpha1 "github.com/knative/pkg/apis/istio/authentication/v1alpha1"
"github.com/knative/pkg/client/clientset/versioned/scheme"
serializer "k8s.io/apimachinery/pkg/runtime/serializer"
rest "k8s.io/client-go/rest"
v1alpha1 "knative.dev/pkg/apis/istio/authentication/v1alpha1"
"knative.dev/pkg/client/clientset/versioned/scheme"
)
type AuthenticationV1alpha1Interface interface {

View File

@ -19,9 +19,9 @@ limitations under the License.
package fake
import (
v1alpha1 "github.com/knative/pkg/client/clientset/versioned/typed/authentication/v1alpha1"
rest "k8s.io/client-go/rest"
testing "k8s.io/client-go/testing"
v1alpha1 "knative.dev/pkg/client/clientset/versioned/typed/authentication/v1alpha1"
)
type FakeAuthenticationV1alpha1 struct {

View File

@ -19,13 +19,13 @@ limitations under the License.
package fake
import (
v1alpha1 "github.com/knative/pkg/apis/istio/authentication/v1alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
schema "k8s.io/apimachinery/pkg/runtime/schema"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
v1alpha1 "knative.dev/pkg/apis/istio/authentication/v1alpha1"
)
// FakePolicies implements PolicyInterface

View File

@ -19,12 +19,12 @@ limitations under the License.
package v1alpha1
import (
v1alpha1 "github.com/knative/pkg/apis/istio/authentication/v1alpha1"
scheme "github.com/knative/pkg/client/clientset/versioned/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
rest "k8s.io/client-go/rest"
v1alpha1 "knative.dev/pkg/apis/istio/authentication/v1alpha1"
scheme "knative.dev/pkg/client/clientset/versioned/scheme"
)
// PoliciesGetter has a method to return a PolicyInterface.

View File

@ -19,12 +19,12 @@ limitations under the License.
package v1alpha3
import (
v1alpha3 "github.com/knative/pkg/apis/istio/v1alpha3"
scheme "github.com/knative/pkg/client/clientset/versioned/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
rest "k8s.io/client-go/rest"
v1alpha3 "knative.dev/pkg/apis/istio/v1alpha3"
scheme "knative.dev/pkg/client/clientset/versioned/scheme"
)
// DestinationRulesGetter has a method to return a DestinationRuleInterface.

View File

@ -19,13 +19,13 @@ limitations under the License.
package fake
import (
v1alpha3 "github.com/knative/pkg/apis/istio/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
schema "k8s.io/apimachinery/pkg/runtime/schema"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
v1alpha3 "knative.dev/pkg/apis/istio/v1alpha3"
)
// FakeDestinationRules implements DestinationRuleInterface

View File

@ -19,13 +19,13 @@ limitations under the License.
package fake
import (
v1alpha3 "github.com/knative/pkg/apis/istio/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
schema "k8s.io/apimachinery/pkg/runtime/schema"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
v1alpha3 "knative.dev/pkg/apis/istio/v1alpha3"
)
// FakeGateways implements GatewayInterface

View File

@ -19,9 +19,9 @@ limitations under the License.
package fake
import (
v1alpha3 "github.com/knative/pkg/client/clientset/versioned/typed/istio/v1alpha3"
rest "k8s.io/client-go/rest"
testing "k8s.io/client-go/testing"
v1alpha3 "knative.dev/pkg/client/clientset/versioned/typed/istio/v1alpha3"
)
type FakeNetworkingV1alpha3 struct {

View File

@ -19,13 +19,13 @@ limitations under the License.
package fake
import (
v1alpha3 "github.com/knative/pkg/apis/istio/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
schema "k8s.io/apimachinery/pkg/runtime/schema"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
v1alpha3 "knative.dev/pkg/apis/istio/v1alpha3"
)
// FakeVirtualServices implements VirtualServiceInterface

View File

@ -19,12 +19,12 @@ limitations under the License.
package v1alpha3
import (
v1alpha3 "github.com/knative/pkg/apis/istio/v1alpha3"
scheme "github.com/knative/pkg/client/clientset/versioned/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
rest "k8s.io/client-go/rest"
v1alpha3 "knative.dev/pkg/apis/istio/v1alpha3"
scheme "knative.dev/pkg/client/clientset/versioned/scheme"
)
// GatewaysGetter has a method to return a GatewayInterface.

View File

@ -19,10 +19,10 @@ limitations under the License.
package v1alpha3
import (
v1alpha3 "github.com/knative/pkg/apis/istio/v1alpha3"
"github.com/knative/pkg/client/clientset/versioned/scheme"
serializer "k8s.io/apimachinery/pkg/runtime/serializer"
rest "k8s.io/client-go/rest"
v1alpha3 "knative.dev/pkg/apis/istio/v1alpha3"
"knative.dev/pkg/client/clientset/versioned/scheme"
)
type NetworkingV1alpha3Interface interface {

View File

@ -19,12 +19,12 @@ limitations under the License.
package v1alpha3
import (
v1alpha3 "github.com/knative/pkg/apis/istio/v1alpha3"
scheme "github.com/knative/pkg/client/clientset/versioned/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
rest "k8s.io/client-go/rest"
v1alpha3 "knative.dev/pkg/apis/istio/v1alpha3"
scheme "knative.dev/pkg/client/clientset/versioned/scheme"
)
// VirtualServicesGetter has a method to return a VirtualServiceInterface.

View File

@ -19,8 +19,8 @@ limitations under the License.
package authentication
import (
v1alpha1 "github.com/knative/pkg/client/informers/externalversions/authentication/v1alpha1"
internalinterfaces "github.com/knative/pkg/client/informers/externalversions/internalinterfaces"
v1alpha1 "knative.dev/pkg/client/informers/externalversions/authentication/v1alpha1"
internalinterfaces "knative.dev/pkg/client/informers/externalversions/internalinterfaces"
)
// Interface provides access to each of this group's versions.

View File

@ -19,7 +19,7 @@ limitations under the License.
package v1alpha1
import (
internalinterfaces "github.com/knative/pkg/client/informers/externalversions/internalinterfaces"
internalinterfaces "knative.dev/pkg/client/informers/externalversions/internalinterfaces"
)
// Interface provides access to all the informers in this group version.

View File

@ -21,14 +21,14 @@ package v1alpha1
import (
time "time"
authenticationv1alpha1 "github.com/knative/pkg/apis/istio/authentication/v1alpha1"
versioned "github.com/knative/pkg/client/clientset/versioned"
internalinterfaces "github.com/knative/pkg/client/informers/externalversions/internalinterfaces"
v1alpha1 "github.com/knative/pkg/client/listers/authentication/v1alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
cache "k8s.io/client-go/tools/cache"
authenticationv1alpha1 "knative.dev/pkg/apis/istio/authentication/v1alpha1"
versioned "knative.dev/pkg/client/clientset/versioned"
internalinterfaces "knative.dev/pkg/client/informers/externalversions/internalinterfaces"
v1alpha1 "knative.dev/pkg/client/listers/authentication/v1alpha1"
)
// PolicyInformer provides access to a shared informer and lister for

View File

@ -23,14 +23,14 @@ import (
sync "sync"
time "time"
versioned "github.com/knative/pkg/client/clientset/versioned"
authentication "github.com/knative/pkg/client/informers/externalversions/authentication"
internalinterfaces "github.com/knative/pkg/client/informers/externalversions/internalinterfaces"
istio "github.com/knative/pkg/client/informers/externalversions/istio"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
schema "k8s.io/apimachinery/pkg/runtime/schema"
cache "k8s.io/client-go/tools/cache"
versioned "knative.dev/pkg/client/clientset/versioned"
authentication "knative.dev/pkg/client/informers/externalversions/authentication"
internalinterfaces "knative.dev/pkg/client/informers/externalversions/internalinterfaces"
istio "knative.dev/pkg/client/informers/externalversions/istio"
)
// SharedInformerOption defines the functional option type for SharedInformerFactory.

View File

@ -21,10 +21,10 @@ package externalversions
import (
"fmt"
v1alpha1 "github.com/knative/pkg/apis/istio/authentication/v1alpha1"
v1alpha3 "github.com/knative/pkg/apis/istio/v1alpha3"
schema "k8s.io/apimachinery/pkg/runtime/schema"
cache "k8s.io/client-go/tools/cache"
v1alpha1 "knative.dev/pkg/apis/istio/authentication/v1alpha1"
v1alpha3 "knative.dev/pkg/apis/istio/v1alpha3"
)
// GenericInformer is type of SharedIndexInformer which will locate and delegate to other

View File

@ -21,10 +21,10 @@ package internalinterfaces
import (
time "time"
versioned "github.com/knative/pkg/client/clientset/versioned"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
cache "k8s.io/client-go/tools/cache"
versioned "knative.dev/pkg/client/clientset/versioned"
)
type NewInformerFunc func(versioned.Interface, time.Duration) cache.SharedIndexInformer

View File

@ -19,8 +19,8 @@ limitations under the License.
package networking
import (
internalinterfaces "github.com/knative/pkg/client/informers/externalversions/internalinterfaces"
v1alpha3 "github.com/knative/pkg/client/informers/externalversions/istio/v1alpha3"
internalinterfaces "knative.dev/pkg/client/informers/externalversions/internalinterfaces"
v1alpha3 "knative.dev/pkg/client/informers/externalversions/istio/v1alpha3"
)
// Interface provides access to each of this group's versions.

View File

@ -21,14 +21,14 @@ package v1alpha3
import (
time "time"
istiov1alpha3 "github.com/knative/pkg/apis/istio/v1alpha3"
versioned "github.com/knative/pkg/client/clientset/versioned"
internalinterfaces "github.com/knative/pkg/client/informers/externalversions/internalinterfaces"
v1alpha3 "github.com/knative/pkg/client/listers/istio/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
cache "k8s.io/client-go/tools/cache"
istiov1alpha3 "knative.dev/pkg/apis/istio/v1alpha3"
versioned "knative.dev/pkg/client/clientset/versioned"
internalinterfaces "knative.dev/pkg/client/informers/externalversions/internalinterfaces"
v1alpha3 "knative.dev/pkg/client/listers/istio/v1alpha3"
)
// DestinationRuleInformer provides access to a shared informer and lister for

View File

@ -21,14 +21,14 @@ package v1alpha3
import (
time "time"
istiov1alpha3 "github.com/knative/pkg/apis/istio/v1alpha3"
versioned "github.com/knative/pkg/client/clientset/versioned"
internalinterfaces "github.com/knative/pkg/client/informers/externalversions/internalinterfaces"
v1alpha3 "github.com/knative/pkg/client/listers/istio/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
cache "k8s.io/client-go/tools/cache"
istiov1alpha3 "knative.dev/pkg/apis/istio/v1alpha3"
versioned "knative.dev/pkg/client/clientset/versioned"
internalinterfaces "knative.dev/pkg/client/informers/externalversions/internalinterfaces"
v1alpha3 "knative.dev/pkg/client/listers/istio/v1alpha3"
)
// GatewayInformer provides access to a shared informer and lister for

View File

@ -19,7 +19,7 @@ limitations under the License.
package v1alpha3
import (
internalinterfaces "github.com/knative/pkg/client/informers/externalversions/internalinterfaces"
internalinterfaces "knative.dev/pkg/client/informers/externalversions/internalinterfaces"
)
// Interface provides access to all the informers in this group version.

View File

@ -21,14 +21,14 @@ package v1alpha3
import (
time "time"
istiov1alpha3 "github.com/knative/pkg/apis/istio/v1alpha3"
versioned "github.com/knative/pkg/client/clientset/versioned"
internalinterfaces "github.com/knative/pkg/client/informers/externalversions/internalinterfaces"
v1alpha3 "github.com/knative/pkg/client/listers/istio/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
cache "k8s.io/client-go/tools/cache"
istiov1alpha3 "knative.dev/pkg/apis/istio/v1alpha3"
versioned "knative.dev/pkg/client/clientset/versioned"
internalinterfaces "knative.dev/pkg/client/informers/externalversions/internalinterfaces"
v1alpha3 "knative.dev/pkg/client/listers/istio/v1alpha3"
)
// VirtualServiceInformer provides access to a shared informer and lister for

View File

@ -21,10 +21,10 @@ package client
import (
"context"
versioned "github.com/knative/pkg/client/clientset/versioned"
injection "github.com/knative/pkg/injection"
logging "github.com/knative/pkg/logging"
rest "k8s.io/client-go/rest"
versioned "knative.dev/pkg/client/clientset/versioned"
injection "knative.dev/pkg/injection"
logging "knative.dev/pkg/logging"
)
func init() {

View File

@ -21,12 +21,12 @@ package fake
import (
"context"
fake "github.com/knative/pkg/client/clientset/versioned/fake"
client "github.com/knative/pkg/client/injection/client"
injection "github.com/knative/pkg/injection"
logging "github.com/knative/pkg/logging"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/client-go/rest"
fake "knative.dev/pkg/client/clientset/versioned/fake"
client "knative.dev/pkg/client/injection/client"
injection "knative.dev/pkg/injection"
logging "knative.dev/pkg/logging"
)
func init() {

View File

@ -21,11 +21,11 @@ package authenticationfactory
import (
"context"
externalversions "github.com/knative/pkg/client/informers/externalversions"
client "github.com/knative/pkg/client/injection/client"
controller "github.com/knative/pkg/controller"
injection "github.com/knative/pkg/injection"
logging "github.com/knative/pkg/logging"
externalversions "knative.dev/pkg/client/informers/externalversions"
client "knative.dev/pkg/client/injection/client"
controller "knative.dev/pkg/controller"
injection "knative.dev/pkg/injection"
logging "knative.dev/pkg/logging"
)
func init() {

View File

@ -21,11 +21,11 @@ package fake
import (
"context"
externalversions "github.com/knative/pkg/client/informers/externalversions"
fake "github.com/knative/pkg/client/injection/client/fake"
factory "github.com/knative/pkg/client/injection/informers/authentication/factory"
controller "github.com/knative/pkg/controller"
injection "github.com/knative/pkg/injection"
externalversions "knative.dev/pkg/client/informers/externalversions"
fake "knative.dev/pkg/client/injection/client/fake"
factory "knative.dev/pkg/client/injection/informers/authentication/factory"
controller "knative.dev/pkg/controller"
injection "knative.dev/pkg/injection"
)
var Get = factory.Get

View File

@ -21,10 +21,10 @@ package fake
import (
"context"
fake "github.com/knative/pkg/client/injection/informers/authentication/factory/fake"
policy "github.com/knative/pkg/client/injection/informers/authentication/v1alpha1/policy"
controller "github.com/knative/pkg/controller"
injection "github.com/knative/pkg/injection"
fake "knative.dev/pkg/client/injection/informers/authentication/factory/fake"
policy "knative.dev/pkg/client/injection/informers/authentication/v1alpha1/policy"
controller "knative.dev/pkg/controller"
injection "knative.dev/pkg/injection"
)
var Get = policy.Get

View File

@ -21,11 +21,11 @@ package policy
import (
"context"
v1alpha1 "github.com/knative/pkg/client/informers/externalversions/authentication/v1alpha1"
factory "github.com/knative/pkg/client/injection/informers/authentication/factory"
controller "github.com/knative/pkg/controller"
injection "github.com/knative/pkg/injection"
logging "github.com/knative/pkg/logging"
v1alpha1 "knative.dev/pkg/client/informers/externalversions/authentication/v1alpha1"
factory "knative.dev/pkg/client/injection/informers/authentication/factory"
controller "knative.dev/pkg/controller"
injection "knative.dev/pkg/injection"
logging "knative.dev/pkg/logging"
)
func init() {

View File

@ -21,11 +21,11 @@ package fake
import (
"context"
externalversions "github.com/knative/pkg/client/informers/externalversions"
fake "github.com/knative/pkg/client/injection/client/fake"
factory "github.com/knative/pkg/client/injection/informers/istio/factory"
controller "github.com/knative/pkg/controller"
injection "github.com/knative/pkg/injection"
externalversions "knative.dev/pkg/client/informers/externalversions"
fake "knative.dev/pkg/client/injection/client/fake"
factory "knative.dev/pkg/client/injection/informers/istio/factory"
controller "knative.dev/pkg/controller"
injection "knative.dev/pkg/injection"
)
var Get = factory.Get

View File

@ -21,11 +21,11 @@ package istiofactory
import (
"context"
externalversions "github.com/knative/pkg/client/informers/externalversions"
client "github.com/knative/pkg/client/injection/client"
controller "github.com/knative/pkg/controller"
injection "github.com/knative/pkg/injection"
logging "github.com/knative/pkg/logging"
externalversions "knative.dev/pkg/client/informers/externalversions"
client "knative.dev/pkg/client/injection/client"
controller "knative.dev/pkg/controller"
injection "knative.dev/pkg/injection"
logging "knative.dev/pkg/logging"
)
func init() {

View File

@ -21,11 +21,11 @@ package destinationrule
import (
"context"
v1alpha3 "github.com/knative/pkg/client/informers/externalversions/istio/v1alpha3"
factory "github.com/knative/pkg/client/injection/informers/istio/factory"
controller "github.com/knative/pkg/controller"
injection "github.com/knative/pkg/injection"
logging "github.com/knative/pkg/logging"
v1alpha3 "knative.dev/pkg/client/informers/externalversions/istio/v1alpha3"
factory "knative.dev/pkg/client/injection/informers/istio/factory"
controller "knative.dev/pkg/controller"
injection "knative.dev/pkg/injection"
logging "knative.dev/pkg/logging"
)
func init() {

View File

@ -21,10 +21,10 @@ package fake
import (
"context"
fake "github.com/knative/pkg/client/injection/informers/istio/factory/fake"
destinationrule "github.com/knative/pkg/client/injection/informers/istio/v1alpha3/destinationrule"
controller "github.com/knative/pkg/controller"
injection "github.com/knative/pkg/injection"
fake "knative.dev/pkg/client/injection/informers/istio/factory/fake"
destinationrule "knative.dev/pkg/client/injection/informers/istio/v1alpha3/destinationrule"
controller "knative.dev/pkg/controller"
injection "knative.dev/pkg/injection"
)
var Get = destinationrule.Get

View File

@ -21,10 +21,10 @@ package fake
import (
"context"
fake "github.com/knative/pkg/client/injection/informers/istio/factory/fake"
gateway "github.com/knative/pkg/client/injection/informers/istio/v1alpha3/gateway"
controller "github.com/knative/pkg/controller"
injection "github.com/knative/pkg/injection"
fake "knative.dev/pkg/client/injection/informers/istio/factory/fake"
gateway "knative.dev/pkg/client/injection/informers/istio/v1alpha3/gateway"
controller "knative.dev/pkg/controller"
injection "knative.dev/pkg/injection"
)
var Get = gateway.Get

View File

@ -21,11 +21,11 @@ package gateway
import (
"context"
v1alpha3 "github.com/knative/pkg/client/informers/externalversions/istio/v1alpha3"
factory "github.com/knative/pkg/client/injection/informers/istio/factory"
controller "github.com/knative/pkg/controller"
injection "github.com/knative/pkg/injection"
logging "github.com/knative/pkg/logging"
v1alpha3 "knative.dev/pkg/client/informers/externalversions/istio/v1alpha3"
factory "knative.dev/pkg/client/injection/informers/istio/factory"
controller "knative.dev/pkg/controller"
injection "knative.dev/pkg/injection"
logging "knative.dev/pkg/logging"
)
func init() {

View File

@ -21,10 +21,10 @@ package fake
import (
"context"
fake "github.com/knative/pkg/client/injection/informers/istio/factory/fake"
virtualservice "github.com/knative/pkg/client/injection/informers/istio/v1alpha3/virtualservice"
controller "github.com/knative/pkg/controller"
injection "github.com/knative/pkg/injection"
fake "knative.dev/pkg/client/injection/informers/istio/factory/fake"
virtualservice "knative.dev/pkg/client/injection/informers/istio/v1alpha3/virtualservice"
controller "knative.dev/pkg/controller"
injection "knative.dev/pkg/injection"
)
var Get = virtualservice.Get

View File

@ -21,11 +21,11 @@ package virtualservice
import (
"context"
v1alpha3 "github.com/knative/pkg/client/informers/externalversions/istio/v1alpha3"
factory "github.com/knative/pkg/client/injection/informers/istio/factory"
controller "github.com/knative/pkg/controller"
injection "github.com/knative/pkg/injection"
logging "github.com/knative/pkg/logging"
v1alpha3 "knative.dev/pkg/client/informers/externalversions/istio/v1alpha3"
factory "knative.dev/pkg/client/injection/informers/istio/factory"
controller "knative.dev/pkg/controller"
injection "knative.dev/pkg/injection"
logging "knative.dev/pkg/logging"
)
func init() {

View File

@ -19,10 +19,10 @@ limitations under the License.
package v1alpha1
import (
v1alpha1 "github.com/knative/pkg/apis/istio/authentication/v1alpha1"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache"
v1alpha1 "knative.dev/pkg/apis/istio/authentication/v1alpha1"
)
// PolicyLister helps list Policies.

View File

@ -19,10 +19,10 @@ limitations under the License.
package v1alpha3
import (
v1alpha3 "github.com/knative/pkg/apis/istio/v1alpha3"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache"
v1alpha3 "knative.dev/pkg/apis/istio/v1alpha3"
)
// DestinationRuleLister helps list DestinationRules.

View File

@ -19,10 +19,10 @@ limitations under the License.
package v1alpha3
import (
v1alpha3 "github.com/knative/pkg/apis/istio/v1alpha3"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache"
v1alpha3 "knative.dev/pkg/apis/istio/v1alpha3"
)
// GatewayLister helps list Gateways.

View File

@ -19,10 +19,10 @@ limitations under the License.
package v1alpha3
import (
v1alpha3 "github.com/knative/pkg/apis/istio/v1alpha3"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache"
v1alpha3 "knative.dev/pkg/apis/istio/v1alpha3"
)
// VirtualServiceLister helps list VirtualServices.

View File

@ -20,7 +20,7 @@ import (
"strings"
"testing"
"github.com/knative/pkg/cloudevents"
"knative.dev/pkg/cloudevents"
)
func TestBuilderBuildValidation(t *testing.T) {

View File

@ -29,7 +29,7 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/knative/pkg/cloudevents"
"knative.dev/pkg/cloudevents"
"k8s.io/apimachinery/pkg/util/sets"
)

View File

@ -29,7 +29,7 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/knative/pkg/cloudevents"
"knative.dev/pkg/cloudevents"
)
type FirestoreDocument struct {

View File

@ -31,7 +31,7 @@ import (
"time"
"github.com/davecgh/go-spew/spew"
"github.com/knative/pkg/cloudevents"
"knative.dev/pkg/cloudevents"
)
func TestHandlerTypeErrors(t *testing.T) {

View File

@ -65,10 +65,10 @@ func (g *clientGenerator) GenerateType(c *generator.Context, t *types.Type, w io
m := map[string]interface{}{
"clientSetNewForConfigOrDie": c.Universe.Function(types.Name{Package: g.clientSetPackage, Name: "NewForConfigOrDie"}),
"clientSetInterface": c.Universe.Type(types.Name{Package: g.clientSetPackage, Name: "Interface"}),
"injectionRegisterClient": c.Universe.Function(types.Name{Package: "github.com/knative/pkg/injection", Name: "Default.RegisterClient"}),
"injectionRegisterClient": c.Universe.Function(types.Name{Package: "knative.dev/pkg/injection", Name: "Default.RegisterClient"}),
"restConfig": c.Universe.Type(types.Name{Package: "k8s.io/client-go/rest", Name: "Config"}),
"loggingFromContext": c.Universe.Function(types.Name{
Package: "github.com/knative/pkg/logging",
Package: "knative.dev/pkg/logging",
Name: "FromContext",
}),
}

View File

@ -67,10 +67,10 @@ func (g *factoryGenerator) GenerateType(c *generator.Context, t *types.Type, w i
"cachingClientGet": c.Universe.Type(types.Name{Package: g.cachingClientSetPackage, Name: "Get"}),
"informersNewSharedInformerFactory": c.Universe.Function(types.Name{Package: g.sharedInformerFactoryPackage, Name: "NewSharedInformerFactory"}),
"informersSharedInformerFactory": c.Universe.Function(types.Name{Package: g.sharedInformerFactoryPackage, Name: "SharedInformerFactory"}),
"injectionRegisterInformerFactory": c.Universe.Type(types.Name{Package: "github.com/knative/pkg/injection", Name: "Default.RegisterInformerFactory"}),
"controllerGetResyncPeriod": c.Universe.Type(types.Name{Package: "github.com/knative/pkg/controller", Name: "GetResyncPeriod"}),
"injectionRegisterInformerFactory": c.Universe.Type(types.Name{Package: "knative.dev/pkg/injection", Name: "Default.RegisterInformerFactory"}),
"controllerGetResyncPeriod": c.Universe.Type(types.Name{Package: "knative.dev/pkg/controller", Name: "GetResyncPeriod"}),
"loggingFromContext": c.Universe.Function(types.Name{
Package: "github.com/knative/pkg/logging",
Package: "knative.dev/pkg/logging",
Name: "FromContext",
}),
}

View File

@ -68,11 +68,11 @@ func (g *fakeClientGenerator) GenerateType(c *generator.Context, t *types.Type,
"clientKey": c.Universe.Type(types.Name{Package: g.clientInjectionPkg, Name: "Key"}),
"fakeClient": c.Universe.Type(types.Name{Package: g.fakeClientPkg, Name: "Clientset"}),
"injectionRegisterClient": c.Universe.Function(types.Name{
Package: "github.com/knative/pkg/injection",
Package: "knative.dev/pkg/injection",
Name: "Fake.RegisterClient",
}),
"loggingFromContext": c.Universe.Function(types.Name{
Package: "github.com/knative/pkg/logging",
Package: "knative.dev/pkg/logging",
Name: "FromContext",
}),
}

View File

@ -71,10 +71,10 @@ func (g *fakeFactoryGenerator) GenerateType(c *generator.Context, t *types.Type,
"clientGet": c.Universe.Function(types.Name{Package: g.fakeClientInjectionPkg, Name: "Get"}),
"informersNewSharedInformerFactory": c.Universe.Function(types.Name{Package: g.sharedInformerFactoryPackage, Name: "NewSharedInformerFactory"}),
"injectionRegisterInformerFactory": c.Universe.Function(types.Name{
Package: "github.com/knative/pkg/injection",
Package: "knative.dev/pkg/injection",
Name: "Fake.RegisterInformerFactory",
}),
"controllerGetResyncPeriod": c.Universe.Type(types.Name{Package: "github.com/knative/pkg/controller", Name: "GetResyncPeriod"}),
"controllerGetResyncPeriod": c.Universe.Type(types.Name{Package: "knative.dev/pkg/controller", Name: "GetResyncPeriod"}),
}
sw.Do(injectionFakeInformerFactory, m)

View File

@ -87,9 +87,9 @@ func (g *fakeInformerGenerator) GenerateType(c *generator.Context, t *types.Type
"group": namer.IC(g.groupGoName),
"type": t,
"version": namer.IC(g.groupVersion.Version.String()),
"controllerInformer": c.Universe.Type(types.Name{Package: "github.com/knative/pkg/controller", Name: "Informer"}),
"controllerInformer": c.Universe.Type(types.Name{Package: "knative.dev/pkg/controller", Name: "Informer"}),
"injectionRegisterInformer": c.Universe.Function(types.Name{
Package: "github.com/knative/pkg/injection",
Package: "knative.dev/pkg/injection",
Name: "Fake.RegisterInformer",
}),
}

View File

@ -82,12 +82,12 @@ func (g *injectionGenerator) GenerateType(c *generator.Context, t *types.Type, w
"group": namer.IC(g.groupGoName),
"type": t,
"version": namer.IC(g.groupVersion.Version.String()),
"injectionRegisterInformer": c.Universe.Type(types.Name{Package: "github.com/knative/pkg/injection", Name: "Default.RegisterInformer"}),
"controllerInformer": c.Universe.Type(types.Name{Package: "github.com/knative/pkg/controller", Name: "Informer"}),
"injectionRegisterInformer": c.Universe.Type(types.Name{Package: "knative.dev/pkg/injection", Name: "Default.RegisterInformer"}),
"controllerInformer": c.Universe.Type(types.Name{Package: "knative.dev/pkg/controller", Name: "Informer"}),
"informersTypedInformer": c.Universe.Type(types.Name{Package: g.typedInformerPackage, Name: t.Name.Name + "Informer"}),
"factoryGet": c.Universe.Type(types.Name{Package: g.groupInformerFactoryPackage, Name: "Get"}),
"loggingFromContext": c.Universe.Function(types.Name{
Package: "github.com/knative/pkg/logging",
Package: "knative.dev/pkg/logging",
Name: "FromContext",
}),
}

View File

@ -30,7 +30,7 @@ import (
"k8s.io/gengo/types"
"k8s.io/klog"
informergenargs "github.com/knative/pkg/codegen/cmd/injection-gen/args"
informergenargs "knative.dev/pkg/codegen/cmd/injection-gen/args"
)
// Packages makes the client package definition.

View File

@ -24,8 +24,8 @@ import (
"k8s.io/gengo/args"
"k8s.io/klog"
generatorargs "github.com/knative/pkg/codegen/cmd/injection-gen/args"
"github.com/knative/pkg/codegen/cmd/injection-gen/generators"
generatorargs "knative.dev/pkg/codegen/cmd/injection-gen/args"
"knative.dev/pkg/codegen/cmd/injection-gen/generators"
"github.com/spf13/pflag"
)

View File

@ -29,7 +29,7 @@ import (
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
. "github.com/knative/pkg/logging/testing"
. "knative.dev/pkg/logging/testing"
)
func TestStoreBadConstructors(t *testing.T) {

View File

@ -20,7 +20,7 @@ import (
"testing"
"github.com/ghodss/yaml"
"github.com/knative/pkg/configmap"
"knative.dev/pkg/configmap"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/util/sets"
)

View File

@ -32,9 +32,9 @@ import (
"k8s.io/client-go/tools/record"
"k8s.io/client-go/util/workqueue"
"github.com/knative/pkg/kmeta"
"github.com/knative/pkg/logging"
"github.com/knative/pkg/logging/logkey"
"knative.dev/pkg/kmeta"
"knative.dev/pkg/logging"
"knative.dev/pkg/logging/logkey"
)
const (

View File

@ -30,9 +30,9 @@ import (
"k8s.io/client-go/tools/record"
"k8s.io/client-go/util/workqueue"
. "github.com/knative/pkg/controller/testing"
. "github.com/knative/pkg/logging/testing"
. "github.com/knative/pkg/testing"
. "knative.dev/pkg/controller/testing"
. "knative.dev/pkg/logging/testing"
. "knative.dev/pkg/testing"
)
func TestPassNew(t *testing.T) {

View File

@ -21,7 +21,7 @@ import (
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/client-go/tools/cache"
"github.com/knative/pkg/kmeta"
"knative.dev/pkg/kmeta"
)
type Callback func(interface{})

View File

@ -25,7 +25,7 @@ import (
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/client-go/tools/cache"
. "github.com/knative/pkg/testing"
. "knative.dev/pkg/testing"
)
func TestSendGlobalUpdate(t *testing.T) {

View File

@ -21,7 +21,7 @@ import (
"errors"
"time"
"github.com/knative/pkg/metrics"
"knative.dev/pkg/metrics"
"go.opencensus.io/stats"
"go.opencensus.io/stats/view"
"go.opencensus.io/tag"

View File

@ -23,7 +23,7 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/knative/pkg/controller"
"knative.dev/pkg/controller"
)
var _ controller.StatsReporter = (*FakeStatsReporter)(nil)

View File

@ -29,25 +29,25 @@ go install ./vendor/k8s.io/code-generator/cmd/deepcopy-gen
# k8s.io/kubernetes. The output-base is needed for the generators to output into the vendor dir
# instead of the $GOPATH directly. For normal projects this can be dropped.
${CODEGEN_PKG}/generate-groups.sh "deepcopy,client,informer,lister" \
github.com/knative/pkg/client github.com/knative/pkg/apis \
knative.dev/pkg/client knative.dev/pkg/apis \
"istio:v1alpha3 istio/authentication:v1alpha1" \
--go-header-file ${REPO_ROOT_DIR}/hack/boilerplate/boilerplate.go.txt
# Knative Injection
${REPO_ROOT_DIR}/hack/generate-knative.sh "injection" \
github.com/knative/pkg/client github.com/knative/pkg/apis \
knative.dev/pkg/client knative.dev/pkg/apis \
"istio:v1alpha3 istio/authentication:v1alpha1" \
--go-header-file ${REPO_ROOT_DIR}/hack/boilerplate/boilerplate.go.txt
# Only deepcopy the Duck types, as they are not real resources.
${CODEGEN_PKG}/generate-groups.sh "deepcopy" \
github.com/knative/pkg/client github.com/knative/pkg/apis \
knative.dev/pkg/client knative.dev/pkg/apis \
"duck:v1alpha1,v1beta1" \
--go-header-file ${REPO_ROOT_DIR}/hack/boilerplate/boilerplate.go.txt
# Depends on generate-groups.sh to install bin/deepcopy-gen
${GOPATH}/bin/deepcopy-gen --input-dirs \
github.com/knative/pkg/apis,github.com/knative/pkg/logging,github.com/knative/pkg/testing \
knative.dev/pkg/apis,knative.dev/pkg/logging,knative.dev/pkg/testing \
-O zz_generated.deepcopy \
--go-header-file ${REPO_ROOT_DIR}/hack/boilerplate/boilerplate.go.txt

View File

@ -22,8 +22,8 @@ import (
"k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset"
"k8s.io/client-go/rest"
"github.com/knative/pkg/injection"
"github.com/knative/pkg/logging"
"knative.dev/pkg/injection"
"knative.dev/pkg/logging"
)
func init() {

View File

@ -22,8 +22,8 @@ import (
"k8s.io/client-go/rest"
"github.com/knative/pkg/controller"
"github.com/knative/pkg/injection"
"knative.dev/pkg/controller"
"knative.dev/pkg/injection"
)
func TestGetPanic(t *testing.T) {

View File

@ -23,9 +23,9 @@ import (
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/client-go/rest"
"github.com/knative/pkg/injection"
"github.com/knative/pkg/injection/clients/apiextclient"
"github.com/knative/pkg/logging"
"knative.dev/pkg/injection"
"knative.dev/pkg/injection/clients/apiextclient"
"knative.dev/pkg/logging"
)
func init() {

Some files were not shown because too many files have changed in this diff Show More