mirror of https://github.com/knative/pkg.git
Migrate pkg to use the knative.dev/pkg import path (#489)
* Manual changes. * scripted changes.
This commit is contained in:
parent
b30961a891
commit
222dd25986
|
@ -46,7 +46,7 @@ export PATH="${PATH}:${GOPATH}/bin"
|
||||||
### Checkout your fork
|
### Checkout your fork
|
||||||
|
|
||||||
The Go tools require that you clone the repository to the
|
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).
|
[`GOPATH`](https://github.com/golang/go/wiki/SettingGOPATH).
|
||||||
|
|
||||||
To check out this repository:
|
To check out this repository:
|
||||||
|
@ -56,8 +56,8 @@ To check out this repository:
|
||||||
1. Clone it to your machine:
|
1. Clone it to your machine:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
mkdir -p ${GOPATH}/src/github.com/knative
|
mkdir -p ${GOPATH}/src/knative.dev
|
||||||
cd ${GOPATH}/src/github.com/knative
|
cd ${GOPATH}/src/knative.dev
|
||||||
git clone git@github.com:${YOUR_GITHUB_USERNAME}/pkg.git
|
git clone git@github.com:${YOUR_GITHUB_USERNAME}/pkg.git
|
||||||
cd pkg
|
cd pkg
|
||||||
git remote add upstream git@github.com:knative/pkg.git
|
git remote add upstream git@github.com:knative/pkg.git
|
||||||
|
|
|
@ -21,9 +21,9 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/knative/pkg/apis"
|
"knative.dev/pkg/apis"
|
||||||
"github.com/knative/pkg/ptr"
|
"knative.dev/pkg/ptr"
|
||||||
. "github.com/knative/pkg/testing"
|
. "knative.dev/pkg/testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCheckDeprecated(t *testing.T) {
|
func TestCheckDeprecated(t *testing.T) {
|
||||||
|
|
|
@ -24,7 +24,7 @@ import (
|
||||||
corev1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/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
|
// PodSpecable is implemented by types containing a PodTemplateSpec
|
||||||
|
|
|
@ -22,7 +22,7 @@ import (
|
||||||
appsv1 "k8s.io/api/apps/v1"
|
appsv1 "k8s.io/api/apps/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
|
||||||
"github.com/knative/pkg/apis/duck"
|
"knative.dev/pkg/apis/duck"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Scalable struct {
|
type Scalable struct {
|
||||||
|
|
|
@ -29,7 +29,7 @@ import (
|
||||||
"k8s.io/client-go/dynamic"
|
"k8s.io/client-go/dynamic"
|
||||||
"k8s.io/client-go/tools/cache"
|
"k8s.io/client-go/tools/cache"
|
||||||
|
|
||||||
"github.com/knative/pkg/apis"
|
"knative.dev/pkg/apis"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TypedInformerFactory implements InformerFactory such that the elements
|
// TypedInformerFactory implements InformerFactory such that the elements
|
||||||
|
|
|
@ -30,9 +30,9 @@ import (
|
||||||
"k8s.io/apimachinery/pkg/watch"
|
"k8s.io/apimachinery/pkg/watch"
|
||||||
"k8s.io/client-go/dynamic/fake"
|
"k8s.io/client-go/dynamic/fake"
|
||||||
|
|
||||||
"github.com/knative/pkg/apis/duck"
|
"knative.dev/pkg/apis/duck"
|
||||||
duckv1alpha1 "github.com/knative/pkg/apis/duck/v1alpha1"
|
duckv1alpha1 "knative.dev/pkg/apis/duck/v1alpha1"
|
||||||
. "github.com/knative/pkg/testing"
|
. "knative.dev/pkg/testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSimpleList(t *testing.T) {
|
func TestSimpleList(t *testing.T) {
|
||||||
|
|
|
@ -20,9 +20,9 @@ import (
|
||||||
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"
|
||||||
|
|
||||||
"github.com/knative/pkg/apis"
|
"knative.dev/pkg/apis"
|
||||||
"github.com/knative/pkg/apis/duck"
|
"knative.dev/pkg/apis/duck"
|
||||||
"github.com/knative/pkg/apis/duck/v1beta1"
|
"knative.dev/pkg/apis/duck/v1beta1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Addressable provides a generic mechanism for a custom resource
|
// Addressable provides a generic mechanism for a custom resource
|
||||||
|
|
|
@ -19,8 +19,8 @@ package v1alpha1
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/knative/pkg/apis"
|
"knative.dev/pkg/apis"
|
||||||
"github.com/knative/pkg/apis/duck/v1beta1"
|
"knative.dev/pkg/apis/duck/v1beta1"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGetURL(t *testing.T) {
|
func TestGetURL(t *testing.T) {
|
||||||
|
|
|
@ -23,7 +23,7 @@ import (
|
||||||
|
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/knative/pkg/apis"
|
"knative.dev/pkg/apis"
|
||||||
corev1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
|
@ -22,7 +22,7 @@ import (
|
||||||
|
|
||||||
"github.com/google/go-cmp/cmp"
|
"github.com/google/go-cmp/cmp"
|
||||||
"github.com/google/go-cmp/cmp/cmpopts"
|
"github.com/google/go-cmp/cmp/cmpopts"
|
||||||
"github.com/knative/pkg/apis"
|
"knative.dev/pkg/apis"
|
||||||
corev1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
"k8s.io/apimachinery/pkg/api/equality"
|
"k8s.io/apimachinery/pkg/api/equality"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
|
|
@ -24,7 +24,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/google/go-cmp/cmp"
|
"github.com/google/go-cmp/cmp"
|
||||||
"github.com/knative/pkg/apis"
|
"knative.dev/pkg/apis"
|
||||||
corev1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
|
@ -23,8 +23,8 @@ import (
|
||||||
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"
|
||||||
|
|
||||||
"github.com/knative/pkg/apis"
|
"knative.dev/pkg/apis"
|
||||||
"github.com/knative/pkg/apis/duck"
|
"knative.dev/pkg/apis/duck"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Conditions is the schema for the conditions portion of the payload
|
// Conditions is the schema for the conditions portion of the payload
|
||||||
|
|
|
@ -19,8 +19,8 @@ package v1alpha1
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/knative/pkg/apis/duck"
|
"knative.dev/pkg/apis/duck"
|
||||||
"github.com/knative/pkg/apis/duck/v1beta1"
|
"knative.dev/pkg/apis/duck/v1beta1"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestTypesImplements(t *testing.T) {
|
func TestTypesImplements(t *testing.T) {
|
||||||
|
|
|
@ -20,8 +20,8 @@ import (
|
||||||
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"
|
||||||
|
|
||||||
"github.com/knative/pkg/apis"
|
"knative.dev/pkg/apis"
|
||||||
"github.com/knative/pkg/apis/duck"
|
"knative.dev/pkg/apis/duck"
|
||||||
)
|
)
|
||||||
|
|
||||||
// LegacyTargetable left around until we migrate to Addressable in the
|
// LegacyTargetable left around until we migrate to Addressable in the
|
||||||
|
|
|
@ -17,7 +17,7 @@ limitations under the License.
|
||||||
package v1alpha1
|
package v1alpha1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/knative/pkg/apis/duck"
|
"knative.dev/pkg/apis/duck"
|
||||||
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"
|
||||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
|
|
|
@ -20,8 +20,8 @@ import (
|
||||||
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"
|
||||||
|
|
||||||
"github.com/knative/pkg/apis"
|
"knative.dev/pkg/apis"
|
||||||
"github.com/knative/pkg/apis/duck"
|
"knative.dev/pkg/apis/duck"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Targetable is an earlier version of the Callable interface.
|
// Targetable is an earlier version of the Callable interface.
|
||||||
|
|
|
@ -20,8 +20,8 @@ import (
|
||||||
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"
|
||||||
|
|
||||||
"github.com/knative/pkg/apis"
|
"knative.dev/pkg/apis"
|
||||||
"github.com/knative/pkg/apis/duck"
|
"knative.dev/pkg/apis/duck"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Addressable provides a generic mechanism for a custom resource
|
// Addressable provides a generic mechanism for a custom resource
|
||||||
|
|
|
@ -19,7 +19,7 @@ package v1beta1
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/knative/pkg/apis/duck"
|
"knative.dev/pkg/apis/duck"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestTypesImplements(t *testing.T) {
|
func TestTypesImplements(t *testing.T) {
|
||||||
|
|
|
@ -17,7 +17,7 @@ limitations under the License.
|
||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/knative/pkg/apis/duck"
|
"knative.dev/pkg/apis/duck"
|
||||||
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"
|
||||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
|
|
|
@ -24,8 +24,8 @@ import (
|
||||||
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"
|
||||||
|
|
||||||
"github.com/knative/pkg/apis"
|
"knative.dev/pkg/apis"
|
||||||
"github.com/knative/pkg/apis/duck"
|
"knative.dev/pkg/apis/duck"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Conditions is a simple wrapper around apis.Conditions to implement duck.Implementable.
|
// Conditions is a simple wrapper around apis.Conditions to implement duck.Implementable.
|
||||||
|
|
|
@ -21,7 +21,7 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/google/go-cmp/cmp"
|
"github.com/google/go-cmp/cmp"
|
||||||
"github.com/knative/pkg/apis"
|
"knative.dev/pkg/apis"
|
||||||
corev1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,8 @@ limitations under the License.
|
||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
apis "github.com/knative/pkg/apis"
|
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
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.
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
|
|
|
@ -20,7 +20,7 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/knative/pkg/kmp"
|
"knative.dev/pkg/kmp"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Implementable is implemented by the Fooable duck type that consumers
|
// Implementable is implemented by the Fooable duck type that consumers
|
||||||
|
|
|
@ -21,7 +21,7 @@ import (
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/knative/pkg/kmp"
|
"knative.dev/pkg/kmp"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CurrentField is a constant to supply as a fieldPath for when there is
|
// CurrentField is a constant to supply as a fieldPath for when there is
|
||||||
|
|
|
@ -17,7 +17,7 @@ limitations under the License.
|
||||||
package v1alpha1
|
package v1alpha1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/knative/pkg/apis/istio/common/v1alpha1"
|
"knative.dev/pkg/apis/istio/common/v1alpha1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ limitations under the License.
|
||||||
package v1alpha1
|
package v1alpha1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/knative/pkg/apis/istio/authentication"
|
"knative.dev/pkg/apis/istio/authentication"
|
||||||
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"
|
||||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
|
|
|
@ -21,8 +21,8 @@ limitations under the License.
|
||||||
package v1alpha1
|
package v1alpha1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
commonv1alpha1 "github.com/knative/pkg/apis/istio/common/v1alpha1"
|
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
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.
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
|
|
|
@ -17,7 +17,7 @@ limitations under the License.
|
||||||
package v1alpha3
|
package v1alpha3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/knative/pkg/apis/istio"
|
"knative.dev/pkg/apis/istio"
|
||||||
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"
|
||||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
|
|
|
@ -17,7 +17,7 @@ limitations under the License.
|
||||||
package v1alpha3
|
package v1alpha3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/knative/pkg/apis/istio/common/v1alpha1"
|
"knative.dev/pkg/apis/istio/common/v1alpha1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,8 @@ limitations under the License.
|
||||||
package v1alpha3
|
package v1alpha3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1alpha1 "github.com/knative/pkg/apis/istio/common/v1alpha1"
|
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
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.
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
|
|
|
@ -19,8 +19,8 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/knative/pkg/apis"
|
"knative.dev/pkg/apis"
|
||||||
duckv1b1 "github.com/knative/pkg/apis/duck/v1beta1"
|
duckv1b1 "knative.dev/pkg/apis/duck/v1beta1"
|
||||||
corev1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -19,11 +19,11 @@ limitations under the License.
|
||||||
package versioned
|
package versioned
|
||||||
|
|
||||||
import (
|
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"
|
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"
|
||||||
|
authenticationv1alpha1 "knative.dev/pkg/client/clientset/versioned/typed/authentication/v1alpha1"
|
||||||
|
networkingv1alpha3 "knative.dev/pkg/client/clientset/versioned/typed/istio/v1alpha3"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Interface interface {
|
type Interface interface {
|
||||||
|
|
|
@ -19,16 +19,16 @@ limitations under the License.
|
||||||
package fake
|
package fake
|
||||||
|
|
||||||
import (
|
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/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/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.
|
// NewSimpleClientset returns a clientset that will respond with the provided objects.
|
||||||
|
|
|
@ -19,13 +19,13 @@ limitations under the License.
|
||||||
package fake
|
package fake
|
||||||
|
|
||||||
import (
|
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"
|
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"
|
||||||
|
authenticationv1alpha1 "knative.dev/pkg/apis/istio/authentication/v1alpha1"
|
||||||
|
networkingv1alpha3 "knative.dev/pkg/apis/istio/v1alpha3"
|
||||||
)
|
)
|
||||||
|
|
||||||
var scheme = runtime.NewScheme()
|
var scheme = runtime.NewScheme()
|
||||||
|
|
|
@ -19,13 +19,13 @@ limitations under the License.
|
||||||
package scheme
|
package scheme
|
||||||
|
|
||||||
import (
|
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"
|
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"
|
||||||
|
authenticationv1alpha1 "knative.dev/pkg/apis/istio/authentication/v1alpha1"
|
||||||
|
networkingv1alpha3 "knative.dev/pkg/apis/istio/v1alpha3"
|
||||||
)
|
)
|
||||||
|
|
||||||
var Scheme = runtime.NewScheme()
|
var Scheme = runtime.NewScheme()
|
||||||
|
|
|
@ -19,10 +19,10 @@ limitations under the License.
|
||||||
package v1alpha1
|
package v1alpha1
|
||||||
|
|
||||||
import (
|
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"
|
serializer "k8s.io/apimachinery/pkg/runtime/serializer"
|
||||||
rest "k8s.io/client-go/rest"
|
rest "k8s.io/client-go/rest"
|
||||||
|
v1alpha1 "knative.dev/pkg/apis/istio/authentication/v1alpha1"
|
||||||
|
"knative.dev/pkg/client/clientset/versioned/scheme"
|
||||||
)
|
)
|
||||||
|
|
||||||
type AuthenticationV1alpha1Interface interface {
|
type AuthenticationV1alpha1Interface interface {
|
||||||
|
|
|
@ -19,9 +19,9 @@ limitations under the License.
|
||||||
package fake
|
package fake
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1alpha1 "github.com/knative/pkg/client/clientset/versioned/typed/authentication/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/pkg/client/clientset/versioned/typed/authentication/v1alpha1"
|
||||||
)
|
)
|
||||||
|
|
||||||
type FakeAuthenticationV1alpha1 struct {
|
type FakeAuthenticationV1alpha1 struct {
|
||||||
|
|
|
@ -19,13 +19,13 @@ limitations under the License.
|
||||||
package fake
|
package fake
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1alpha1 "github.com/knative/pkg/apis/istio/authentication/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/pkg/apis/istio/authentication/v1alpha1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// FakePolicies implements PolicyInterface
|
// FakePolicies implements PolicyInterface
|
||||||
|
|
|
@ -19,12 +19,12 @@ limitations under the License.
|
||||||
package v1alpha1
|
package v1alpha1
|
||||||
|
|
||||||
import (
|
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"
|
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/pkg/apis/istio/authentication/v1alpha1"
|
||||||
|
scheme "knative.dev/pkg/client/clientset/versioned/scheme"
|
||||||
)
|
)
|
||||||
|
|
||||||
// PoliciesGetter has a method to return a PolicyInterface.
|
// PoliciesGetter has a method to return a PolicyInterface.
|
||||||
|
|
|
@ -19,12 +19,12 @@ limitations under the License.
|
||||||
package v1alpha3
|
package v1alpha3
|
||||||
|
|
||||||
import (
|
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"
|
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"
|
||||||
|
v1alpha3 "knative.dev/pkg/apis/istio/v1alpha3"
|
||||||
|
scheme "knative.dev/pkg/client/clientset/versioned/scheme"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DestinationRulesGetter has a method to return a DestinationRuleInterface.
|
// DestinationRulesGetter has a method to return a DestinationRuleInterface.
|
||||||
|
|
|
@ -19,13 +19,13 @@ limitations under the License.
|
||||||
package fake
|
package fake
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1alpha3 "github.com/knative/pkg/apis/istio/v1alpha3"
|
|
||||||
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"
|
||||||
|
v1alpha3 "knative.dev/pkg/apis/istio/v1alpha3"
|
||||||
)
|
)
|
||||||
|
|
||||||
// FakeDestinationRules implements DestinationRuleInterface
|
// FakeDestinationRules implements DestinationRuleInterface
|
||||||
|
|
|
@ -19,13 +19,13 @@ limitations under the License.
|
||||||
package fake
|
package fake
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1alpha3 "github.com/knative/pkg/apis/istio/v1alpha3"
|
|
||||||
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"
|
||||||
|
v1alpha3 "knative.dev/pkg/apis/istio/v1alpha3"
|
||||||
)
|
)
|
||||||
|
|
||||||
// FakeGateways implements GatewayInterface
|
// FakeGateways implements GatewayInterface
|
||||||
|
|
|
@ -19,9 +19,9 @@ limitations under the License.
|
||||||
package fake
|
package fake
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1alpha3 "github.com/knative/pkg/client/clientset/versioned/typed/istio/v1alpha3"
|
|
||||||
rest "k8s.io/client-go/rest"
|
rest "k8s.io/client-go/rest"
|
||||||
testing "k8s.io/client-go/testing"
|
testing "k8s.io/client-go/testing"
|
||||||
|
v1alpha3 "knative.dev/pkg/client/clientset/versioned/typed/istio/v1alpha3"
|
||||||
)
|
)
|
||||||
|
|
||||||
type FakeNetworkingV1alpha3 struct {
|
type FakeNetworkingV1alpha3 struct {
|
||||||
|
|
|
@ -19,13 +19,13 @@ limitations under the License.
|
||||||
package fake
|
package fake
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1alpha3 "github.com/knative/pkg/apis/istio/v1alpha3"
|
|
||||||
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"
|
||||||
|
v1alpha3 "knative.dev/pkg/apis/istio/v1alpha3"
|
||||||
)
|
)
|
||||||
|
|
||||||
// FakeVirtualServices implements VirtualServiceInterface
|
// FakeVirtualServices implements VirtualServiceInterface
|
||||||
|
|
|
@ -19,12 +19,12 @@ limitations under the License.
|
||||||
package v1alpha3
|
package v1alpha3
|
||||||
|
|
||||||
import (
|
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"
|
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"
|
||||||
|
v1alpha3 "knative.dev/pkg/apis/istio/v1alpha3"
|
||||||
|
scheme "knative.dev/pkg/client/clientset/versioned/scheme"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GatewaysGetter has a method to return a GatewayInterface.
|
// GatewaysGetter has a method to return a GatewayInterface.
|
||||||
|
|
|
@ -19,10 +19,10 @@ limitations under the License.
|
||||||
package v1alpha3
|
package v1alpha3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1alpha3 "github.com/knative/pkg/apis/istio/v1alpha3"
|
|
||||||
"github.com/knative/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"
|
||||||
|
v1alpha3 "knative.dev/pkg/apis/istio/v1alpha3"
|
||||||
|
"knative.dev/pkg/client/clientset/versioned/scheme"
|
||||||
)
|
)
|
||||||
|
|
||||||
type NetworkingV1alpha3Interface interface {
|
type NetworkingV1alpha3Interface interface {
|
||||||
|
|
|
@ -19,12 +19,12 @@ limitations under the License.
|
||||||
package v1alpha3
|
package v1alpha3
|
||||||
|
|
||||||
import (
|
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"
|
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"
|
||||||
|
v1alpha3 "knative.dev/pkg/apis/istio/v1alpha3"
|
||||||
|
scheme "knative.dev/pkg/client/clientset/versioned/scheme"
|
||||||
)
|
)
|
||||||
|
|
||||||
// VirtualServicesGetter has a method to return a VirtualServiceInterface.
|
// VirtualServicesGetter has a method to return a VirtualServiceInterface.
|
||||||
|
|
|
@ -19,8 +19,8 @@ limitations under the License.
|
||||||
package authentication
|
package authentication
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1alpha1 "github.com/knative/pkg/client/informers/externalversions/authentication/v1alpha1"
|
v1alpha1 "knative.dev/pkg/client/informers/externalversions/authentication/v1alpha1"
|
||||||
internalinterfaces "github.com/knative/pkg/client/informers/externalversions/internalinterfaces"
|
internalinterfaces "knative.dev/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.
|
||||||
|
|
|
@ -19,7 +19,7 @@ limitations under the License.
|
||||||
package v1alpha1
|
package v1alpha1
|
||||||
|
|
||||||
import (
|
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.
|
// Interface provides access to all the informers in this group version.
|
||||||
|
|
|
@ -21,14 +21,14 @@ package v1alpha1
|
||||||
import (
|
import (
|
||||||
time "time"
|
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"
|
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"
|
||||||
|
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
|
// PolicyInformer provides access to a shared informer and lister for
|
||||||
|
|
|
@ -23,14 +23,14 @@ import (
|
||||||
sync "sync"
|
sync "sync"
|
||||||
time "time"
|
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"
|
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/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.
|
// SharedInformerOption defines the functional option type for SharedInformerFactory.
|
||||||
|
|
|
@ -21,10 +21,10 @@ package externalversions
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"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"
|
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
cache "k8s.io/client-go/tools/cache"
|
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
|
// GenericInformer is type of SharedIndexInformer which will locate and delegate to other
|
||||||
|
|
|
@ -21,10 +21,10 @@ package internalinterfaces
|
||||||
import (
|
import (
|
||||||
time "time"
|
time "time"
|
||||||
|
|
||||||
versioned "github.com/knative/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/pkg/client/clientset/versioned"
|
||||||
)
|
)
|
||||||
|
|
||||||
type NewInformerFunc func(versioned.Interface, time.Duration) cache.SharedIndexInformer
|
type NewInformerFunc func(versioned.Interface, time.Duration) cache.SharedIndexInformer
|
||||||
|
|
|
@ -19,8 +19,8 @@ limitations under the License.
|
||||||
package networking
|
package networking
|
||||||
|
|
||||||
import (
|
import (
|
||||||
internalinterfaces "github.com/knative/pkg/client/informers/externalversions/internalinterfaces"
|
internalinterfaces "knative.dev/pkg/client/informers/externalversions/internalinterfaces"
|
||||||
v1alpha3 "github.com/knative/pkg/client/informers/externalversions/istio/v1alpha3"
|
v1alpha3 "knative.dev/pkg/client/informers/externalversions/istio/v1alpha3"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Interface provides access to each of this group's versions.
|
// Interface provides access to each of this group's versions.
|
||||||
|
|
|
@ -21,14 +21,14 @@ package v1alpha3
|
||||||
import (
|
import (
|
||||||
time "time"
|
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"
|
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"
|
||||||
|
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
|
// DestinationRuleInformer provides access to a shared informer and lister for
|
||||||
|
|
|
@ -21,14 +21,14 @@ package v1alpha3
|
||||||
import (
|
import (
|
||||||
time "time"
|
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"
|
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"
|
||||||
|
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
|
// GatewayInformer provides access to a shared informer and lister for
|
||||||
|
|
|
@ -19,7 +19,7 @@ limitations under the License.
|
||||||
package v1alpha3
|
package v1alpha3
|
||||||
|
|
||||||
import (
|
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.
|
// Interface provides access to all the informers in this group version.
|
||||||
|
|
|
@ -21,14 +21,14 @@ package v1alpha3
|
||||||
import (
|
import (
|
||||||
time "time"
|
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"
|
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"
|
||||||
|
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
|
// VirtualServiceInformer provides access to a shared informer and lister for
|
||||||
|
|
|
@ -21,10 +21,10 @@ package client
|
||||||
import (
|
import (
|
||||||
"context"
|
"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"
|
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() {
|
func init() {
|
||||||
|
|
|
@ -21,12 +21,12 @@ package fake
|
||||||
import (
|
import (
|
||||||
"context"
|
"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/apimachinery/pkg/runtime"
|
||||||
"k8s.io/client-go/rest"
|
"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() {
|
func init() {
|
||||||
|
|
|
@ -21,11 +21,11 @@ package authenticationfactory
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
externalversions "github.com/knative/pkg/client/informers/externalversions"
|
externalversions "knative.dev/pkg/client/informers/externalversions"
|
||||||
client "github.com/knative/pkg/client/injection/client"
|
client "knative.dev/pkg/client/injection/client"
|
||||||
controller "github.com/knative/pkg/controller"
|
controller "knative.dev/pkg/controller"
|
||||||
injection "github.com/knative/pkg/injection"
|
injection "knative.dev/pkg/injection"
|
||||||
logging "github.com/knative/pkg/logging"
|
logging "knative.dev/pkg/logging"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
|
@ -21,11 +21,11 @@ package fake
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
externalversions "github.com/knative/pkg/client/informers/externalversions"
|
externalversions "knative.dev/pkg/client/informers/externalversions"
|
||||||
fake "github.com/knative/pkg/client/injection/client/fake"
|
fake "knative.dev/pkg/client/injection/client/fake"
|
||||||
factory "github.com/knative/pkg/client/injection/informers/authentication/factory"
|
factory "knative.dev/pkg/client/injection/informers/authentication/factory"
|
||||||
controller "github.com/knative/pkg/controller"
|
controller "knative.dev/pkg/controller"
|
||||||
injection "github.com/knative/pkg/injection"
|
injection "knative.dev/pkg/injection"
|
||||||
)
|
)
|
||||||
|
|
||||||
var Get = factory.Get
|
var Get = factory.Get
|
||||||
|
|
|
@ -21,10 +21,10 @@ package fake
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
fake "github.com/knative/pkg/client/injection/informers/authentication/factory/fake"
|
fake "knative.dev/pkg/client/injection/informers/authentication/factory/fake"
|
||||||
policy "github.com/knative/pkg/client/injection/informers/authentication/v1alpha1/policy"
|
policy "knative.dev/pkg/client/injection/informers/authentication/v1alpha1/policy"
|
||||||
controller "github.com/knative/pkg/controller"
|
controller "knative.dev/pkg/controller"
|
||||||
injection "github.com/knative/pkg/injection"
|
injection "knative.dev/pkg/injection"
|
||||||
)
|
)
|
||||||
|
|
||||||
var Get = policy.Get
|
var Get = policy.Get
|
||||||
|
|
|
@ -21,11 +21,11 @@ package policy
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
v1alpha1 "github.com/knative/pkg/client/informers/externalversions/authentication/v1alpha1"
|
v1alpha1 "knative.dev/pkg/client/informers/externalversions/authentication/v1alpha1"
|
||||||
factory "github.com/knative/pkg/client/injection/informers/authentication/factory"
|
factory "knative.dev/pkg/client/injection/informers/authentication/factory"
|
||||||
controller "github.com/knative/pkg/controller"
|
controller "knative.dev/pkg/controller"
|
||||||
injection "github.com/knative/pkg/injection"
|
injection "knative.dev/pkg/injection"
|
||||||
logging "github.com/knative/pkg/logging"
|
logging "knative.dev/pkg/logging"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
|
@ -21,11 +21,11 @@ package fake
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
externalversions "github.com/knative/pkg/client/informers/externalversions"
|
externalversions "knative.dev/pkg/client/informers/externalversions"
|
||||||
fake "github.com/knative/pkg/client/injection/client/fake"
|
fake "knative.dev/pkg/client/injection/client/fake"
|
||||||
factory "github.com/knative/pkg/client/injection/informers/istio/factory"
|
factory "knative.dev/pkg/client/injection/informers/istio/factory"
|
||||||
controller "github.com/knative/pkg/controller"
|
controller "knative.dev/pkg/controller"
|
||||||
injection "github.com/knative/pkg/injection"
|
injection "knative.dev/pkg/injection"
|
||||||
)
|
)
|
||||||
|
|
||||||
var Get = factory.Get
|
var Get = factory.Get
|
||||||
|
|
|
@ -21,11 +21,11 @@ package istiofactory
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
externalversions "github.com/knative/pkg/client/informers/externalversions"
|
externalversions "knative.dev/pkg/client/informers/externalversions"
|
||||||
client "github.com/knative/pkg/client/injection/client"
|
client "knative.dev/pkg/client/injection/client"
|
||||||
controller "github.com/knative/pkg/controller"
|
controller "knative.dev/pkg/controller"
|
||||||
injection "github.com/knative/pkg/injection"
|
injection "knative.dev/pkg/injection"
|
||||||
logging "github.com/knative/pkg/logging"
|
logging "knative.dev/pkg/logging"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
|
@ -21,11 +21,11 @@ package destinationrule
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
v1alpha3 "github.com/knative/pkg/client/informers/externalversions/istio/v1alpha3"
|
v1alpha3 "knative.dev/pkg/client/informers/externalversions/istio/v1alpha3"
|
||||||
factory "github.com/knative/pkg/client/injection/informers/istio/factory"
|
factory "knative.dev/pkg/client/injection/informers/istio/factory"
|
||||||
controller "github.com/knative/pkg/controller"
|
controller "knative.dev/pkg/controller"
|
||||||
injection "github.com/knative/pkg/injection"
|
injection "knative.dev/pkg/injection"
|
||||||
logging "github.com/knative/pkg/logging"
|
logging "knative.dev/pkg/logging"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
|
@ -21,10 +21,10 @@ package fake
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
fake "github.com/knative/pkg/client/injection/informers/istio/factory/fake"
|
fake "knative.dev/pkg/client/injection/informers/istio/factory/fake"
|
||||||
destinationrule "github.com/knative/pkg/client/injection/informers/istio/v1alpha3/destinationrule"
|
destinationrule "knative.dev/pkg/client/injection/informers/istio/v1alpha3/destinationrule"
|
||||||
controller "github.com/knative/pkg/controller"
|
controller "knative.dev/pkg/controller"
|
||||||
injection "github.com/knative/pkg/injection"
|
injection "knative.dev/pkg/injection"
|
||||||
)
|
)
|
||||||
|
|
||||||
var Get = destinationrule.Get
|
var Get = destinationrule.Get
|
||||||
|
|
|
@ -21,10 +21,10 @@ package fake
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
fake "github.com/knative/pkg/client/injection/informers/istio/factory/fake"
|
fake "knative.dev/pkg/client/injection/informers/istio/factory/fake"
|
||||||
gateway "github.com/knative/pkg/client/injection/informers/istio/v1alpha3/gateway"
|
gateway "knative.dev/pkg/client/injection/informers/istio/v1alpha3/gateway"
|
||||||
controller "github.com/knative/pkg/controller"
|
controller "knative.dev/pkg/controller"
|
||||||
injection "github.com/knative/pkg/injection"
|
injection "knative.dev/pkg/injection"
|
||||||
)
|
)
|
||||||
|
|
||||||
var Get = gateway.Get
|
var Get = gateway.Get
|
||||||
|
|
|
@ -21,11 +21,11 @@ package gateway
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
v1alpha3 "github.com/knative/pkg/client/informers/externalversions/istio/v1alpha3"
|
v1alpha3 "knative.dev/pkg/client/informers/externalversions/istio/v1alpha3"
|
||||||
factory "github.com/knative/pkg/client/injection/informers/istio/factory"
|
factory "knative.dev/pkg/client/injection/informers/istio/factory"
|
||||||
controller "github.com/knative/pkg/controller"
|
controller "knative.dev/pkg/controller"
|
||||||
injection "github.com/knative/pkg/injection"
|
injection "knative.dev/pkg/injection"
|
||||||
logging "github.com/knative/pkg/logging"
|
logging "knative.dev/pkg/logging"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
|
@ -21,10 +21,10 @@ package fake
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
fake "github.com/knative/pkg/client/injection/informers/istio/factory/fake"
|
fake "knative.dev/pkg/client/injection/informers/istio/factory/fake"
|
||||||
virtualservice "github.com/knative/pkg/client/injection/informers/istio/v1alpha3/virtualservice"
|
virtualservice "knative.dev/pkg/client/injection/informers/istio/v1alpha3/virtualservice"
|
||||||
controller "github.com/knative/pkg/controller"
|
controller "knative.dev/pkg/controller"
|
||||||
injection "github.com/knative/pkg/injection"
|
injection "knative.dev/pkg/injection"
|
||||||
)
|
)
|
||||||
|
|
||||||
var Get = virtualservice.Get
|
var Get = virtualservice.Get
|
||||||
|
|
|
@ -21,11 +21,11 @@ package virtualservice
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
v1alpha3 "github.com/knative/pkg/client/informers/externalversions/istio/v1alpha3"
|
v1alpha3 "knative.dev/pkg/client/informers/externalversions/istio/v1alpha3"
|
||||||
factory "github.com/knative/pkg/client/injection/informers/istio/factory"
|
factory "knative.dev/pkg/client/injection/informers/istio/factory"
|
||||||
controller "github.com/knative/pkg/controller"
|
controller "knative.dev/pkg/controller"
|
||||||
injection "github.com/knative/pkg/injection"
|
injection "knative.dev/pkg/injection"
|
||||||
logging "github.com/knative/pkg/logging"
|
logging "knative.dev/pkg/logging"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
|
@ -19,10 +19,10 @@ limitations under the License.
|
||||||
package v1alpha1
|
package v1alpha1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1alpha1 "github.com/knative/pkg/apis/istio/authentication/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/pkg/apis/istio/authentication/v1alpha1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// PolicyLister helps list Policies.
|
// PolicyLister helps list Policies.
|
||||||
|
|
|
@ -19,10 +19,10 @@ limitations under the License.
|
||||||
package v1alpha3
|
package v1alpha3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1alpha3 "github.com/knative/pkg/apis/istio/v1alpha3"
|
|
||||||
"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"
|
||||||
|
v1alpha3 "knative.dev/pkg/apis/istio/v1alpha3"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DestinationRuleLister helps list DestinationRules.
|
// DestinationRuleLister helps list DestinationRules.
|
||||||
|
|
|
@ -19,10 +19,10 @@ limitations under the License.
|
||||||
package v1alpha3
|
package v1alpha3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1alpha3 "github.com/knative/pkg/apis/istio/v1alpha3"
|
|
||||||
"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"
|
||||||
|
v1alpha3 "knative.dev/pkg/apis/istio/v1alpha3"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GatewayLister helps list Gateways.
|
// GatewayLister helps list Gateways.
|
||||||
|
|
|
@ -19,10 +19,10 @@ limitations under the License.
|
||||||
package v1alpha3
|
package v1alpha3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1alpha3 "github.com/knative/pkg/apis/istio/v1alpha3"
|
|
||||||
"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"
|
||||||
|
v1alpha3 "knative.dev/pkg/apis/istio/v1alpha3"
|
||||||
)
|
)
|
||||||
|
|
||||||
// VirtualServiceLister helps list VirtualServices.
|
// VirtualServiceLister helps list VirtualServices.
|
||||||
|
|
|
@ -20,7 +20,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/knative/pkg/cloudevents"
|
"knative.dev/pkg/cloudevents"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestBuilderBuildValidation(t *testing.T) {
|
func TestBuilderBuildValidation(t *testing.T) {
|
||||||
|
|
|
@ -29,7 +29,7 @@ import (
|
||||||
|
|
||||||
"github.com/google/go-cmp/cmp"
|
"github.com/google/go-cmp/cmp"
|
||||||
"github.com/google/go-cmp/cmp/cmpopts"
|
"github.com/google/go-cmp/cmp/cmpopts"
|
||||||
"github.com/knative/pkg/cloudevents"
|
"knative.dev/pkg/cloudevents"
|
||||||
"k8s.io/apimachinery/pkg/util/sets"
|
"k8s.io/apimachinery/pkg/util/sets"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ import (
|
||||||
|
|
||||||
"github.com/google/go-cmp/cmp"
|
"github.com/google/go-cmp/cmp"
|
||||||
|
|
||||||
"github.com/knative/pkg/cloudevents"
|
"knative.dev/pkg/cloudevents"
|
||||||
)
|
)
|
||||||
|
|
||||||
type FirestoreDocument struct {
|
type FirestoreDocument struct {
|
||||||
|
|
|
@ -31,7 +31,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/davecgh/go-spew/spew"
|
"github.com/davecgh/go-spew/spew"
|
||||||
"github.com/knative/pkg/cloudevents"
|
"knative.dev/pkg/cloudevents"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestHandlerTypeErrors(t *testing.T) {
|
func TestHandlerTypeErrors(t *testing.T) {
|
||||||
|
|
|
@ -65,10 +65,10 @@ func (g *clientGenerator) GenerateType(c *generator.Context, t *types.Type, w io
|
||||||
m := map[string]interface{}{
|
m := map[string]interface{}{
|
||||||
"clientSetNewForConfigOrDie": c.Universe.Function(types.Name{Package: g.clientSetPackage, Name: "NewForConfigOrDie"}),
|
"clientSetNewForConfigOrDie": c.Universe.Function(types.Name{Package: g.clientSetPackage, Name: "NewForConfigOrDie"}),
|
||||||
"clientSetInterface": c.Universe.Type(types.Name{Package: g.clientSetPackage, Name: "Interface"}),
|
"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"}),
|
"restConfig": c.Universe.Type(types.Name{Package: "k8s.io/client-go/rest", Name: "Config"}),
|
||||||
"loggingFromContext": c.Universe.Function(types.Name{
|
"loggingFromContext": c.Universe.Function(types.Name{
|
||||||
Package: "github.com/knative/pkg/logging",
|
Package: "knative.dev/pkg/logging",
|
||||||
Name: "FromContext",
|
Name: "FromContext",
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
|
|
|
@ -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"}),
|
"cachingClientGet": c.Universe.Type(types.Name{Package: g.cachingClientSetPackage, Name: "Get"}),
|
||||||
"informersNewSharedInformerFactory": c.Universe.Function(types.Name{Package: g.sharedInformerFactoryPackage, Name: "NewSharedInformerFactory"}),
|
"informersNewSharedInformerFactory": c.Universe.Function(types.Name{Package: g.sharedInformerFactoryPackage, Name: "NewSharedInformerFactory"}),
|
||||||
"informersSharedInformerFactory": c.Universe.Function(types.Name{Package: g.sharedInformerFactoryPackage, Name: "SharedInformerFactory"}),
|
"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"}),
|
"injectionRegisterInformerFactory": c.Universe.Type(types.Name{Package: "knative.dev/pkg/injection", Name: "Default.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"}),
|
||||||
"loggingFromContext": c.Universe.Function(types.Name{
|
"loggingFromContext": c.Universe.Function(types.Name{
|
||||||
Package: "github.com/knative/pkg/logging",
|
Package: "knative.dev/pkg/logging",
|
||||||
Name: "FromContext",
|
Name: "FromContext",
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
|
|
|
@ -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"}),
|
"clientKey": c.Universe.Type(types.Name{Package: g.clientInjectionPkg, Name: "Key"}),
|
||||||
"fakeClient": c.Universe.Type(types.Name{Package: g.fakeClientPkg, Name: "Clientset"}),
|
"fakeClient": c.Universe.Type(types.Name{Package: g.fakeClientPkg, Name: "Clientset"}),
|
||||||
"injectionRegisterClient": c.Universe.Function(types.Name{
|
"injectionRegisterClient": c.Universe.Function(types.Name{
|
||||||
Package: "github.com/knative/pkg/injection",
|
Package: "knative.dev/pkg/injection",
|
||||||
Name: "Fake.RegisterClient",
|
Name: "Fake.RegisterClient",
|
||||||
}),
|
}),
|
||||||
"loggingFromContext": c.Universe.Function(types.Name{
|
"loggingFromContext": c.Universe.Function(types.Name{
|
||||||
Package: "github.com/knative/pkg/logging",
|
Package: "knative.dev/pkg/logging",
|
||||||
Name: "FromContext",
|
Name: "FromContext",
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
|
|
|
@ -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"}),
|
"clientGet": c.Universe.Function(types.Name{Package: g.fakeClientInjectionPkg, Name: "Get"}),
|
||||||
"informersNewSharedInformerFactory": c.Universe.Function(types.Name{Package: g.sharedInformerFactoryPackage, Name: "NewSharedInformerFactory"}),
|
"informersNewSharedInformerFactory": c.Universe.Function(types.Name{Package: g.sharedInformerFactoryPackage, Name: "NewSharedInformerFactory"}),
|
||||||
"injectionRegisterInformerFactory": c.Universe.Function(types.Name{
|
"injectionRegisterInformerFactory": c.Universe.Function(types.Name{
|
||||||
Package: "github.com/knative/pkg/injection",
|
Package: "knative.dev/pkg/injection",
|
||||||
Name: "Fake.RegisterInformerFactory",
|
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)
|
sw.Do(injectionFakeInformerFactory, m)
|
||||||
|
|
|
@ -87,9 +87,9 @@ func (g *fakeInformerGenerator) GenerateType(c *generator.Context, t *types.Type
|
||||||
"group": namer.IC(g.groupGoName),
|
"group": namer.IC(g.groupGoName),
|
||||||
"type": t,
|
"type": t,
|
||||||
"version": namer.IC(g.groupVersion.Version.String()),
|
"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{
|
"injectionRegisterInformer": c.Universe.Function(types.Name{
|
||||||
Package: "github.com/knative/pkg/injection",
|
Package: "knative.dev/pkg/injection",
|
||||||
Name: "Fake.RegisterInformer",
|
Name: "Fake.RegisterInformer",
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,12 +82,12 @@ func (g *injectionGenerator) GenerateType(c *generator.Context, t *types.Type, w
|
||||||
"group": namer.IC(g.groupGoName),
|
"group": namer.IC(g.groupGoName),
|
||||||
"type": t,
|
"type": t,
|
||||||
"version": namer.IC(g.groupVersion.Version.String()),
|
"version": namer.IC(g.groupVersion.Version.String()),
|
||||||
"injectionRegisterInformer": c.Universe.Type(types.Name{Package: "github.com/knative/pkg/injection", Name: "Default.RegisterInformer"}),
|
"injectionRegisterInformer": c.Universe.Type(types.Name{Package: "knative.dev/pkg/injection", Name: "Default.RegisterInformer"}),
|
||||||
"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"}),
|
||||||
"informersTypedInformer": c.Universe.Type(types.Name{Package: g.typedInformerPackage, Name: t.Name.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"}),
|
"factoryGet": c.Universe.Type(types.Name{Package: g.groupInformerFactoryPackage, Name: "Get"}),
|
||||||
"loggingFromContext": c.Universe.Function(types.Name{
|
"loggingFromContext": c.Universe.Function(types.Name{
|
||||||
Package: "github.com/knative/pkg/logging",
|
Package: "knative.dev/pkg/logging",
|
||||||
Name: "FromContext",
|
Name: "FromContext",
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,7 @@ import (
|
||||||
"k8s.io/gengo/types"
|
"k8s.io/gengo/types"
|
||||||
"k8s.io/klog"
|
"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.
|
// Packages makes the client package definition.
|
||||||
|
|
|
@ -24,8 +24,8 @@ import (
|
||||||
"k8s.io/gengo/args"
|
"k8s.io/gengo/args"
|
||||||
"k8s.io/klog"
|
"k8s.io/klog"
|
||||||
|
|
||||||
generatorargs "github.com/knative/pkg/codegen/cmd/injection-gen/args"
|
generatorargs "knative.dev/pkg/codegen/cmd/injection-gen/args"
|
||||||
"github.com/knative/pkg/codegen/cmd/injection-gen/generators"
|
"knative.dev/pkg/codegen/cmd/injection-gen/generators"
|
||||||
"github.com/spf13/pflag"
|
"github.com/spf13/pflag"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ import (
|
||||||
corev1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/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) {
|
func TestStoreBadConstructors(t *testing.T) {
|
||||||
|
|
|
@ -20,7 +20,7 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/ghodss/yaml"
|
"github.com/ghodss/yaml"
|
||||||
"github.com/knative/pkg/configmap"
|
"knative.dev/pkg/configmap"
|
||||||
corev1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
"k8s.io/apimachinery/pkg/util/sets"
|
"k8s.io/apimachinery/pkg/util/sets"
|
||||||
)
|
)
|
||||||
|
|
|
@ -32,9 +32,9 @@ import (
|
||||||
"k8s.io/client-go/tools/record"
|
"k8s.io/client-go/tools/record"
|
||||||
"k8s.io/client-go/util/workqueue"
|
"k8s.io/client-go/util/workqueue"
|
||||||
|
|
||||||
"github.com/knative/pkg/kmeta"
|
"knative.dev/pkg/kmeta"
|
||||||
"github.com/knative/pkg/logging"
|
"knative.dev/pkg/logging"
|
||||||
"github.com/knative/pkg/logging/logkey"
|
"knative.dev/pkg/logging/logkey"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -30,9 +30,9 @@ import (
|
||||||
"k8s.io/client-go/tools/record"
|
"k8s.io/client-go/tools/record"
|
||||||
"k8s.io/client-go/util/workqueue"
|
"k8s.io/client-go/util/workqueue"
|
||||||
|
|
||||||
. "github.com/knative/pkg/controller/testing"
|
. "knative.dev/pkg/controller/testing"
|
||||||
. "github.com/knative/pkg/logging/testing"
|
. "knative.dev/pkg/logging/testing"
|
||||||
. "github.com/knative/pkg/testing"
|
. "knative.dev/pkg/testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestPassNew(t *testing.T) {
|
func TestPassNew(t *testing.T) {
|
||||||
|
|
|
@ -21,7 +21,7 @@ import (
|
||||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
"k8s.io/client-go/tools/cache"
|
"k8s.io/client-go/tools/cache"
|
||||||
|
|
||||||
"github.com/knative/pkg/kmeta"
|
"knative.dev/pkg/kmeta"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Callback func(interface{})
|
type Callback func(interface{})
|
||||||
|
|
|
@ -25,7 +25,7 @@ import (
|
||||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
"k8s.io/client-go/tools/cache"
|
"k8s.io/client-go/tools/cache"
|
||||||
|
|
||||||
. "github.com/knative/pkg/testing"
|
. "knative.dev/pkg/testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSendGlobalUpdate(t *testing.T) {
|
func TestSendGlobalUpdate(t *testing.T) {
|
||||||
|
|
|
@ -21,7 +21,7 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/knative/pkg/metrics"
|
"knative.dev/pkg/metrics"
|
||||||
"go.opencensus.io/stats"
|
"go.opencensus.io/stats"
|
||||||
"go.opencensus.io/stats/view"
|
"go.opencensus.io/stats/view"
|
||||||
"go.opencensus.io/tag"
|
"go.opencensus.io/tag"
|
||||||
|
|
|
@ -23,7 +23,7 @@ import (
|
||||||
|
|
||||||
"github.com/google/go-cmp/cmp"
|
"github.com/google/go-cmp/cmp"
|
||||||
|
|
||||||
"github.com/knative/pkg/controller"
|
"knative.dev/pkg/controller"
|
||||||
)
|
)
|
||||||
|
|
||||||
var _ controller.StatsReporter = (*FakeStatsReporter)(nil)
|
var _ controller.StatsReporter = (*FakeStatsReporter)(nil)
|
||||||
|
|
|
@ -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
|
# 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/pkg/client github.com/knative/pkg/apis \
|
knative.dev/pkg/client knative.dev/pkg/apis \
|
||||||
"istio:v1alpha3 istio/authentication:v1alpha1" \
|
"istio:v1alpha3 istio/authentication:v1alpha1" \
|
||||||
--go-header-file ${REPO_ROOT_DIR}/hack/boilerplate/boilerplate.go.txt
|
--go-header-file ${REPO_ROOT_DIR}/hack/boilerplate/boilerplate.go.txt
|
||||||
|
|
||||||
# Knative Injection
|
# Knative Injection
|
||||||
${REPO_ROOT_DIR}/hack/generate-knative.sh "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" \
|
"istio:v1alpha3 istio/authentication:v1alpha1" \
|
||||||
--go-header-file ${REPO_ROOT_DIR}/hack/boilerplate/boilerplate.go.txt
|
--go-header-file ${REPO_ROOT_DIR}/hack/boilerplate/boilerplate.go.txt
|
||||||
|
|
||||||
# Only deepcopy the Duck types, as they are not real resources.
|
# Only deepcopy the Duck types, as they are not real resources.
|
||||||
${CODEGEN_PKG}/generate-groups.sh "deepcopy" \
|
${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" \
|
"duck:v1alpha1,v1beta1" \
|
||||||
--go-header-file ${REPO_ROOT_DIR}/hack/boilerplate/boilerplate.go.txt
|
--go-header-file ${REPO_ROOT_DIR}/hack/boilerplate/boilerplate.go.txt
|
||||||
|
|
||||||
# Depends on generate-groups.sh to install bin/deepcopy-gen
|
# Depends on generate-groups.sh to install bin/deepcopy-gen
|
||||||
${GOPATH}/bin/deepcopy-gen --input-dirs \
|
${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 \
|
-O zz_generated.deepcopy \
|
||||||
--go-header-file ${REPO_ROOT_DIR}/hack/boilerplate/boilerplate.go.txt
|
--go-header-file ${REPO_ROOT_DIR}/hack/boilerplate/boilerplate.go.txt
|
||||||
|
|
||||||
|
|
|
@ -22,8 +22,8 @@ import (
|
||||||
"k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset"
|
"k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset"
|
||||||
"k8s.io/client-go/rest"
|
"k8s.io/client-go/rest"
|
||||||
|
|
||||||
"github.com/knative/pkg/injection"
|
"knative.dev/pkg/injection"
|
||||||
"github.com/knative/pkg/logging"
|
"knative.dev/pkg/logging"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
|
@ -22,8 +22,8 @@ import (
|
||||||
|
|
||||||
"k8s.io/client-go/rest"
|
"k8s.io/client-go/rest"
|
||||||
|
|
||||||
"github.com/knative/pkg/controller"
|
"knative.dev/pkg/controller"
|
||||||
"github.com/knative/pkg/injection"
|
"knative.dev/pkg/injection"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGetPanic(t *testing.T) {
|
func TestGetPanic(t *testing.T) {
|
||||||
|
|
|
@ -23,9 +23,9 @@ import (
|
||||||
"k8s.io/apimachinery/pkg/runtime"
|
"k8s.io/apimachinery/pkg/runtime"
|
||||||
"k8s.io/client-go/rest"
|
"k8s.io/client-go/rest"
|
||||||
|
|
||||||
"github.com/knative/pkg/injection"
|
"knative.dev/pkg/injection"
|
||||||
"github.com/knative/pkg/injection/clients/apiextclient"
|
"knative.dev/pkg/injection/clients/apiextclient"
|
||||||
"github.com/knative/pkg/logging"
|
"knative.dev/pkg/logging"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue