mirror of https://github.com/knative/caching.git
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:
parent
d723de8a29
commit
96cb0bf1f9
|
@ -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
|
||||
# instead of the $GOPATH directly. For normal projects this can be dropped.
|
||||
${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" \
|
||||
--go-header-file ${REPO_ROOT}/hack/boilerplate/boilerplate.go.txt
|
||||
|
||||
# Knative 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" \
|
||||
--go-header-file ${REPO_ROOT}/hack/boilerplate/boilerplate.go.txt
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ limitations under the License.
|
|||
package v1alpha1
|
||||
|
||||
import (
|
||||
"github.com/knative/caching/pkg/apis/caching"
|
||||
"knative.dev/caching/pkg/apis/caching"
|
||||
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
|
|
|
@ -19,10 +19,10 @@ limitations under the License.
|
|||
package versioned
|
||||
|
||||
import (
|
||||
cachingv1alpha1 "github.com/knative/caching/pkg/client/clientset/versioned/typed/caching/v1alpha1"
|
||||
discovery "k8s.io/client-go/discovery"
|
||||
rest "k8s.io/client-go/rest"
|
||||
flowcontrol "k8s.io/client-go/util/flowcontrol"
|
||||
cachingv1alpha1 "knative.dev/caching/pkg/client/clientset/versioned/typed/caching/v1alpha1"
|
||||
)
|
||||
|
||||
type Interface interface {
|
||||
|
|
|
@ -19,14 +19,14 @@ limitations under the License.
|
|||
package fake
|
||||
|
||||
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/watch"
|
||||
"k8s.io/client-go/discovery"
|
||||
fakediscovery "k8s.io/client-go/discovery/fake"
|
||||
"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.
|
||||
|
|
|
@ -19,12 +19,12 @@ limitations under the License.
|
|||
package fake
|
||||
|
||||
import (
|
||||
cachingv1alpha1 "github.com/knative/caching/pkg/apis/caching/v1alpha1"
|
||||
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"
|
||||
cachingv1alpha1 "knative.dev/caching/pkg/apis/caching/v1alpha1"
|
||||
)
|
||||
|
||||
var scheme = runtime.NewScheme()
|
||||
|
|
|
@ -19,12 +19,12 @@ limitations under the License.
|
|||
package scheme
|
||||
|
||||
import (
|
||||
cachingv1alpha1 "github.com/knative/caching/pkg/apis/caching/v1alpha1"
|
||||
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"
|
||||
cachingv1alpha1 "knative.dev/caching/pkg/apis/caching/v1alpha1"
|
||||
)
|
||||
|
||||
var Scheme = runtime.NewScheme()
|
||||
|
|
|
@ -19,10 +19,10 @@ limitations under the License.
|
|||
package v1alpha1
|
||||
|
||||
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"
|
||||
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 {
|
||||
|
|
|
@ -19,9 +19,9 @@ limitations under the License.
|
|||
package fake
|
||||
|
||||
import (
|
||||
v1alpha1 "github.com/knative/caching/pkg/client/clientset/versioned/typed/caching/v1alpha1"
|
||||
rest "k8s.io/client-go/rest"
|
||||
testing "k8s.io/client-go/testing"
|
||||
v1alpha1 "knative.dev/caching/pkg/client/clientset/versioned/typed/caching/v1alpha1"
|
||||
)
|
||||
|
||||
type FakeCachingV1alpha1 struct {
|
||||
|
|
|
@ -19,13 +19,13 @@ limitations under the License.
|
|||
package fake
|
||||
|
||||
import (
|
||||
v1alpha1 "github.com/knative/caching/pkg/apis/caching/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/caching/pkg/apis/caching/v1alpha1"
|
||||
)
|
||||
|
||||
// FakeImages implements ImageInterface
|
||||
|
|
|
@ -19,12 +19,12 @@ limitations under the License.
|
|||
package v1alpha1
|
||||
|
||||
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"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
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.
|
||||
|
|
|
@ -19,8 +19,8 @@ limitations under the License.
|
|||
package caching
|
||||
|
||||
import (
|
||||
v1alpha1 "github.com/knative/caching/pkg/client/informers/externalversions/caching/v1alpha1"
|
||||
internalinterfaces "github.com/knative/caching/pkg/client/informers/externalversions/internalinterfaces"
|
||||
v1alpha1 "knative.dev/caching/pkg/client/informers/externalversions/caching/v1alpha1"
|
||||
internalinterfaces "knative.dev/caching/pkg/client/informers/externalversions/internalinterfaces"
|
||||
)
|
||||
|
||||
// Interface provides access to each of this group's versions.
|
||||
|
|
|
@ -21,14 +21,14 @@ package v1alpha1
|
|||
import (
|
||||
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"
|
||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
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
|
||||
|
|
|
@ -19,7 +19,7 @@ limitations under the License.
|
|||
package v1alpha1
|
||||
|
||||
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.
|
||||
|
|
|
@ -23,13 +23,13 @@ import (
|
|||
sync "sync"
|
||||
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"
|
||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||
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.
|
||||
|
|
|
@ -21,9 +21,9 @@ package externalversions
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
v1alpha1 "github.com/knative/caching/pkg/apis/caching/v1alpha1"
|
||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||
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
|
||||
|
|
|
@ -21,10 +21,10 @@ package internalinterfaces
|
|||
import (
|
||||
time "time"
|
||||
|
||||
versioned "github.com/knative/caching/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/caching/pkg/client/clientset/versioned"
|
||||
)
|
||||
|
||||
type NewInformerFunc func(versioned.Interface, time.Duration) cache.SharedIndexInformer
|
||||
|
|
|
@ -21,8 +21,8 @@ package client
|
|||
import (
|
||||
"context"
|
||||
|
||||
versioned "github.com/knative/caching/pkg/client/clientset/versioned"
|
||||
rest "k8s.io/client-go/rest"
|
||||
versioned "knative.dev/caching/pkg/client/clientset/versioned"
|
||||
injection "knative.dev/pkg/injection"
|
||||
logging "knative.dev/pkg/logging"
|
||||
)
|
||||
|
|
|
@ -21,10 +21,10 @@ package fake
|
|||
import (
|
||||
"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/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"
|
||||
logging "knative.dev/pkg/logging"
|
||||
)
|
||||
|
|
|
@ -21,8 +21,8 @@ package cachingfactory
|
|||
import (
|
||||
"context"
|
||||
|
||||
externalversions "github.com/knative/caching/pkg/client/informers/externalversions"
|
||||
client "github.com/knative/caching/pkg/client/injection/client"
|
||||
externalversions "knative.dev/caching/pkg/client/informers/externalversions"
|
||||
client "knative.dev/caching/pkg/client/injection/client"
|
||||
controller "knative.dev/pkg/controller"
|
||||
injection "knative.dev/pkg/injection"
|
||||
logging "knative.dev/pkg/logging"
|
||||
|
|
|
@ -21,9 +21,9 @@ package fake
|
|||
import (
|
||||
"context"
|
||||
|
||||
externalversions "github.com/knative/caching/pkg/client/informers/externalversions"
|
||||
fake "github.com/knative/caching/pkg/client/injection/client/fake"
|
||||
factory "github.com/knative/caching/pkg/client/injection/informers/caching/factory"
|
||||
externalversions "knative.dev/caching/pkg/client/informers/externalversions"
|
||||
fake "knative.dev/caching/pkg/client/injection/client/fake"
|
||||
factory "knative.dev/caching/pkg/client/injection/informers/caching/factory"
|
||||
controller "knative.dev/pkg/controller"
|
||||
injection "knative.dev/pkg/injection"
|
||||
)
|
||||
|
|
|
@ -21,8 +21,8 @@ package fake
|
|||
import (
|
||||
"context"
|
||||
|
||||
fake "github.com/knative/caching/pkg/client/injection/informers/caching/factory/fake"
|
||||
image "github.com/knative/caching/pkg/client/injection/informers/caching/v1alpha1/image"
|
||||
fake "knative.dev/caching/pkg/client/injection/informers/caching/factory/fake"
|
||||
image "knative.dev/caching/pkg/client/injection/informers/caching/v1alpha1/image"
|
||||
controller "knative.dev/pkg/controller"
|
||||
injection "knative.dev/pkg/injection"
|
||||
)
|
||||
|
|
|
@ -21,8 +21,8 @@ package image
|
|||
import (
|
||||
"context"
|
||||
|
||||
v1alpha1 "github.com/knative/caching/pkg/client/informers/externalversions/caching/v1alpha1"
|
||||
factory "github.com/knative/caching/pkg/client/injection/informers/caching/factory"
|
||||
v1alpha1 "knative.dev/caching/pkg/client/informers/externalversions/caching/v1alpha1"
|
||||
factory "knative.dev/caching/pkg/client/injection/informers/caching/factory"
|
||||
controller "knative.dev/pkg/controller"
|
||||
injection "knative.dev/pkg/injection"
|
||||
logging "knative.dev/pkg/logging"
|
||||
|
|
|
@ -19,10 +19,10 @@ limitations under the License.
|
|||
package v1alpha1
|
||||
|
||||
import (
|
||||
v1alpha1 "github.com/knative/caching/pkg/apis/caching/v1alpha1"
|
||||
"k8s.io/apimachinery/pkg/api/errors"
|
||||
"k8s.io/apimachinery/pkg/labels"
|
||||
"k8s.io/client-go/tools/cache"
|
||||
v1alpha1 "knative.dev/caching/pkg/apis/caching/v1alpha1"
|
||||
)
|
||||
|
||||
// ImageLister helps list Images.
|
||||
|
|
Loading…
Reference in New Issue