Migrate caching to use the knative.dev/caching import path (#36)

* Migrate to knative.dev

* manual replace

* run update-codegen
This commit is contained in:
chaodaiG 2019-06-26 20:43:13 -07:00 committed by Knative Prow Robot
parent d723de8a29
commit 96cb0bf1f9
23 changed files with 40 additions and 40 deletions

View File

@ -27,13 +27,13 @@ KNATIVE_CODEGEN_PKG=${KNATIVE_CODEGEN_PKG:-$(cd ${REPO_ROOT}; ls -d -1 ./vendor/
# k8s.io/kubernetes. The output-base is needed for the generators to output into the vendor dir # 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. # instead of the $GOPATH directly. For normal projects this can be dropped.
${CODEGEN_PKG}/generate-groups.sh "deepcopy,client,informer,lister" \ ${CODEGEN_PKG}/generate-groups.sh "deepcopy,client,informer,lister" \
github.com/knative/caching/pkg/client github.com/knative/caching/pkg/apis \ knative.dev/caching/pkg/client knative.dev/caching/pkg/apis \
"caching:v1alpha1" \ "caching:v1alpha1" \
--go-header-file ${REPO_ROOT}/hack/boilerplate/boilerplate.go.txt --go-header-file ${REPO_ROOT}/hack/boilerplate/boilerplate.go.txt
# Knative Injection # Knative Injection
${KNATIVE_CODEGEN_PKG}/hack/generate-knative.sh "injection" \ ${KNATIVE_CODEGEN_PKG}/hack/generate-knative.sh "injection" \
github.com/knative/caching/pkg/client github.com/knative/caching/pkg/apis \ knative.dev/caching/pkg/client knative.dev/caching/pkg/apis \
"caching:v1alpha1" \ "caching:v1alpha1" \
--go-header-file ${REPO_ROOT}/hack/boilerplate/boilerplate.go.txt --go-header-file ${REPO_ROOT}/hack/boilerplate/boilerplate.go.txt

View File

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

View File

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

View File

@ -19,14 +19,14 @@ limitations under the License.
package fake package fake
import ( import (
clientset "github.com/knative/caching/pkg/client/clientset/versioned"
cachingv1alpha1 "github.com/knative/caching/pkg/client/clientset/versioned/typed/caching/v1alpha1"
fakecachingv1alpha1 "github.com/knative/caching/pkg/client/clientset/versioned/typed/caching/v1alpha1/fake"
"k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/watch" "k8s.io/apimachinery/pkg/watch"
"k8s.io/client-go/discovery" "k8s.io/client-go/discovery"
fakediscovery "k8s.io/client-go/discovery/fake" fakediscovery "k8s.io/client-go/discovery/fake"
"k8s.io/client-go/testing" "k8s.io/client-go/testing"
clientset "knative.dev/caching/pkg/client/clientset/versioned"
cachingv1alpha1 "knative.dev/caching/pkg/client/clientset/versioned/typed/caching/v1alpha1"
fakecachingv1alpha1 "knative.dev/caching/pkg/client/clientset/versioned/typed/caching/v1alpha1/fake"
) )
// NewSimpleClientset returns a clientset that will respond with the provided objects. // NewSimpleClientset returns a clientset that will respond with the provided objects.

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -21,8 +21,8 @@ package cachingfactory
import ( import (
"context" "context"
externalversions "github.com/knative/caching/pkg/client/informers/externalversions" externalversions "knative.dev/caching/pkg/client/informers/externalversions"
client "github.com/knative/caching/pkg/client/injection/client" client "knative.dev/caching/pkg/client/injection/client"
controller "knative.dev/pkg/controller" controller "knative.dev/pkg/controller"
injection "knative.dev/pkg/injection" injection "knative.dev/pkg/injection"
logging "knative.dev/pkg/logging" logging "knative.dev/pkg/logging"

View File

@ -21,9 +21,9 @@ package fake
import ( import (
"context" "context"
externalversions "github.com/knative/caching/pkg/client/informers/externalversions" externalversions "knative.dev/caching/pkg/client/informers/externalversions"
fake "github.com/knative/caching/pkg/client/injection/client/fake" fake "knative.dev/caching/pkg/client/injection/client/fake"
factory "github.com/knative/caching/pkg/client/injection/informers/caching/factory" factory "knative.dev/caching/pkg/client/injection/informers/caching/factory"
controller "knative.dev/pkg/controller" controller "knative.dev/pkg/controller"
injection "knative.dev/pkg/injection" injection "knative.dev/pkg/injection"
) )

View File

@ -21,8 +21,8 @@ package fake
import ( import (
"context" "context"
fake "github.com/knative/caching/pkg/client/injection/informers/caching/factory/fake" fake "knative.dev/caching/pkg/client/injection/informers/caching/factory/fake"
image "github.com/knative/caching/pkg/client/injection/informers/caching/v1alpha1/image" image "knative.dev/caching/pkg/client/injection/informers/caching/v1alpha1/image"
controller "knative.dev/pkg/controller" controller "knative.dev/pkg/controller"
injection "knative.dev/pkg/injection" injection "knative.dev/pkg/injection"
) )

View File

@ -21,8 +21,8 @@ package image
import ( import (
"context" "context"
v1alpha1 "github.com/knative/caching/pkg/client/informers/externalversions/caching/v1alpha1" v1alpha1 "knative.dev/caching/pkg/client/informers/externalversions/caching/v1alpha1"
factory "github.com/knative/caching/pkg/client/injection/informers/caching/factory" factory "knative.dev/caching/pkg/client/injection/informers/caching/factory"
controller "knative.dev/pkg/controller" controller "knative.dev/pkg/controller"
injection "knative.dev/pkg/injection" injection "knative.dev/pkg/injection"
logging "knative.dev/pkg/logging" logging "knative.dev/pkg/logging"

View File

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