Skip to content

Commit

Permalink
Vendor eventing v0.11.0 and run tests against it (#546)
Browse files Browse the repository at this point in the history
- Pin contrib.go.opencensus.io/exporter/stackdriver@59d068f8d8ff5b653916aa30cdc4e13c7f15d56e
 - Pin knative.dev/[email protected]
 - Move `Destination` from (knative.dev/pkg) v1alpha1 to duckv1beta1
 - Run tests against Eventing v0.11.0
  • Loading branch information
navidshaikh authored and knative-prow-robot committed Dec 11, 2019
1 parent 4f0eb99 commit f0a40d1
Show file tree
Hide file tree
Showing 249 changed files with 6,266 additions and 7,785 deletions.
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ module knative.dev/client

require (
contrib.go.opencensus.io/exporter/prometheus v0.1.0 // indirect
contrib.go.opencensus.io/exporter/stackdriver v0.12.5 // indirect; indirect needed by knative serving
contrib.go.opencensus.io/exporter/stackdriver v0.12.9-0.20191108183826-59d068f8d8ff // indirect
github.com/google/go-containerregistry v0.0.0-20191029173801-50b26ee28691 // indirect
github.com/magiconair/properties v1.8.0
github.com/markbates/inflect v1.0.4 // indirect
github.com/mattbaird/jsonpatch v0.0.0-20171005235357-81af80346b1a // indirect
github.com/mitchellh/go-homedir v1.1.0
github.com/pkg/errors v0.8.1
Expand All @@ -14,13 +13,14 @@ require (
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.4.0
golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8
google.golang.org/api v0.14.0 // indirect
gotest.tools v2.2.0+incompatible
k8s.io/api v0.0.0-20191016110246-af539daaa43a
k8s.io/apimachinery v0.0.0-20191004115701-31ade1b30762
k8s.io/cli-runtime v0.0.0-20191016113937-7693ce2cae74
k8s.io/client-go v0.0.0-20191016110837-54936ba21026
knative.dev/eventing v0.10.0
knative.dev/pkg v0.0.0-20191107185656-884d50f09454
knative.dev/eventing v0.11.0
knative.dev/pkg v0.0.0-20191203221237-94a34e416c44
knative.dev/serving v0.11.0
knative.dev/test-infra v0.0.0-20191205012837-30f1a1f7b77e
sigs.k8s.io/yaml v1.1.0
Expand Down
59 changes: 35 additions & 24 deletions go.sum

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions pkg/kn/commands/flags/sink.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (

"github.com/spf13/cobra"
v1 "k8s.io/api/core/v1"
apisv1alpha1 "knative.dev/pkg/apis/v1alpha1"
duckv1beta1 "knative.dev/pkg/apis/duck/v1beta1"

"knative.dev/client/pkg/serving/v1alpha1"
)
Expand All @@ -33,7 +33,7 @@ func (i *SinkFlags) Add(cmd *cobra.Command) {
cmd.Flags().StringVarP(&i.sink, "sink", "s", "", "Addressable sink for events")
}

func (i *SinkFlags) ResolveSink(client v1alpha1.KnServingClient) (*apisv1alpha1.Destination, error) {
func (i *SinkFlags) ResolveSink(client v1alpha1.KnServingClient) (*duckv1beta1.Destination, error) {
if i.sink == "" {
return nil, nil
}
Expand All @@ -44,7 +44,7 @@ func (i *SinkFlags) ResolveSink(client v1alpha1.KnServingClient) (*apisv1alpha1.
if err != nil {
return nil, err
}
return &apisv1alpha1.Destination{
return &duckv1beta1.Destination{
Ref: &v1.ObjectReference{
Kind: service.Kind,
APIVersion: service.APIVersion,
Expand Down
4 changes: 2 additions & 2 deletions pkg/kn/commands/source/apiserver/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"knative.dev/client/pkg/kn/commands"
"knative.dev/client/pkg/util"
"knative.dev/eventing/pkg/apis/sources/v1alpha1"
apisv1alpha1 "knative.dev/pkg/apis/v1alpha1"
duckv1beta1 "knative.dev/pkg/apis/duck/v1beta1"
)

var (
Expand Down Expand Up @@ -87,7 +87,7 @@ func TestApiServerSourceCreate(t *testing.T) {
}},
ServiceAccountName: "myaccountname",
Mode: "Ref",
Sink: &apisv1alpha1.Destination{
Sink: &duckv1beta1.Destination{
Ref: &v1.ObjectReference{
Kind: "Service",
APIVersion: "serving.knative.dev/v1alpha1",
Expand Down
3 changes: 2 additions & 1 deletion test/presubmit-integration-tests-latest-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@
# latest release version.

export KNATIVE_SERVING_VERSION="0.11.0"
export KNATIVE_EVENTING_VERSION="0.10.2"
export KNATIVE_EVENTING_VERSION="0.11.0"

$(dirname $0)/presubmit-tests.sh --integration-tests
13 changes: 13 additions & 0 deletions vendor/cloud.google.com/go/compute/metadata/metadata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions vendor/cloud.google.com/go/internal/version/update_version.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/cloud.google.com/go/internal/version/version.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/cloud.google.com/go/monitoring/apiv3/doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions vendor/cloud.google.com/go/monitoring/apiv3/group_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions vendor/cloud.google.com/go/monitoring/apiv3/metric_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/cloud.google.com/go/trace/apiv2/doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions vendor/cloud.google.com/go/trace/apiv2/trace_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 8 additions & 12 deletions vendor/contrib.go.opencensus.io/exporter/stackdriver/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f0a40d1

Please sign in to comment.