Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
upgrade to latest dependencies
Browse files Browse the repository at this point in the history
bumping knative.dev/eventing 4eb1738...6adafe5:
  > 6adafe5 Implement `KReference.Group` resolution for `Subscriber.Ref` (# 5440)
  > 193809a Use test namespaces with numeric suffix (# 5337)
  > c4bcc3a upgrade to latest dependencies (# 5514)
bumping knative.dev/pkg 77ff8d9...841aa73:
  > 841aa73 fix package name (# 2159)

Signed-off-by: Knative Automation <automation@knative.team>
  • Loading branch information
knative-automation committed Jun 17, 2021
1 parent 0288941 commit 95e3906
Show file tree
Hide file tree
Showing 10 changed files with 140 additions and 254 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ require (
k8s.io/client-go v0.20.7
k8s.io/utils v0.0.0-20201110183641-67b214c5f920
knative.dev/control-protocol v0.0.0-20210616092621-1469a722be79
knative.dev/eventing v0.23.1-0.20210615213121-4eb1738b5e35
knative.dev/eventing v0.23.1-0.20210616164922-6adafe56e55e
knative.dev/hack v0.0.0-20210614141220-66ab1a098940
knative.dev/networking v0.0.0-20210615114921-e291c8011a20
knative.dev/pkg v0.0.0-20210615143321-77ff8d962c73
knative.dev/pkg v0.0.0-20210616195222-841aa7369ca1
knative.dev/reconciler-test v0.0.0-20210603210445-0071c48281c7
)
7 changes: 4 additions & 3 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1348,8 +1348,8 @@ k8s.io/utils v0.0.0-20201110183641-67b214c5f920 h1:CbnUZsM497iRC5QMVkHwyl8s2tB3g
k8s.io/utils v0.0.0-20201110183641-67b214c5f920/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA=
knative.dev/control-protocol v0.0.0-20210616092621-1469a722be79 h1:CepZkHLRpqnQtdbYtXa7R/V5LbjxzkKIQdQxNOFyrhY=
knative.dev/control-protocol v0.0.0-20210616092621-1469a722be79/go.mod h1:iRE6O4mY88gH6xWl6ZFhG6sJobzrZjFrz5xhX4h93Ns=
knative.dev/eventing v0.23.1-0.20210615213121-4eb1738b5e35 h1:+XbEA0ge3iiWi7on4tLhM3T14YR7FtC8ts2GPAVvAYk=
knative.dev/eventing v0.23.1-0.20210615213121-4eb1738b5e35/go.mod h1:d4zElgG7AL4zDt7CY7aW6BHdITgkUifk7Hskl5p1JEI=
knative.dev/eventing v0.23.1-0.20210616164922-6adafe56e55e h1:+HmAva9pif4dbBXuRIXNXmjQLByemVHxg57SJzx5fPU=
knative.dev/eventing v0.23.1-0.20210616164922-6adafe56e55e/go.mod h1:8fnNPdQgBT7NT+yCFgE1kuvN0mMsfnCfPIwnlyPrxy0=
knative.dev/hack v0.0.0-20210601210329-de04b70e00d0/go.mod h1:PHt8x8yX5Z9pPquBEfIj0X66f8iWkWfR0S/sarACJrI=
knative.dev/hack v0.0.0-20210614141220-66ab1a098940 h1:Aao7SsI087Pa8x+LDLaBdj/ylduPh2bJ8HbB7UjXElE=
knative.dev/hack v0.0.0-20210614141220-66ab1a098940/go.mod h1:PHt8x8yX5Z9pPquBEfIj0X66f8iWkWfR0S/sarACJrI=
Expand All @@ -1358,8 +1358,9 @@ knative.dev/networking v0.0.0-20210615114921-e291c8011a20 h1:TjlBAi9Nvoqh/Guvtye
knative.dev/networking v0.0.0-20210615114921-e291c8011a20/go.mod h1:TH8itwXTBZ5L8mFOwPot/t9LrklYGwL5dkAl6COshj0=
knative.dev/pkg v0.0.0-20210602095030-0e61d6763dd6/go.mod h1:/hT1IXHPs8ZwQ8yTJtfaYWpLmsLhC2s6/v/ydF7PoiE=
knative.dev/pkg v0.0.0-20210615092720-192b0c9d6e56/go.mod h1:QVfbwA5ovshGnXDcx54l2QPYhGKppw/JgLYJWe7sA6A=
knative.dev/pkg v0.0.0-20210615143321-77ff8d962c73 h1:p7KMCn1+n9QtJ/YZLncpMwSlWKv8vUA5IpiCaCxJWYY=
knative.dev/pkg v0.0.0-20210615143321-77ff8d962c73/go.mod h1:QVfbwA5ovshGnXDcx54l2QPYhGKppw/JgLYJWe7sA6A=
knative.dev/pkg v0.0.0-20210616195222-841aa7369ca1 h1:yLdxPtfiJ7UpfK99U4lgTe9L0wwWewqTELqMq4NhqHg=
knative.dev/pkg v0.0.0-20210616195222-841aa7369ca1/go.mod h1:QVfbwA5ovshGnXDcx54l2QPYhGKppw/JgLYJWe7sA6A=
knative.dev/reconciler-test v0.0.0-20210602211045-db062eb7ce42/go.mod h1:Ggh7/FyaVr9R1kQiuB9KpNsvaKVoPlZ0w8OoxUGi9Ys=
knative.dev/reconciler-test v0.0.0-20210603210445-0071c48281c7 h1:BNP1vs/FNDfpqFb+FaDzwZ9qnr3X+ms5u3lZDZk2ivw=
knative.dev/reconciler-test v0.0.0-20210603210445-0071c48281c7/go.mod h1:Ggh7/FyaVr9R1kQiuB9KpNsvaKVoPlZ0w8OoxUGi9Ys=
Expand Down
202 changes: 0 additions & 202 deletions third_party/VENDOR-LICENSE/k8s.io/apiserver/pkg/storage/names/LICENSE

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ func MakeFactory(ctor Ctor, unstructured bool, logger *zap.SugaredLogger) Factor
return func(t *testing.T, r *TableRow) (controller.Reconciler, ActionRecorderList, EventList) {
ls := NewListers(r.Objects)

ctx := context.Background()
var ctx context.Context
if r.Ctx != nil {
ctx = r.Ctx
} else {
ctx = context.Background()
}
ctx = logging.WithLogger(ctx, logger)

ctx, kubeClient := fakekubeclient.With(ctx, ls.GetKubeObjects()...)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,19 @@ func WithSubscriptionSubscriberRef(gvk metav1.GroupVersionKind, name, namespace
}
}

func WithSubscriptionSubscriberRefUsingGroup(gvk metav1.GroupVersionKind, name, namespace string) SubscriptionOption {
return func(s *v1.Subscription) {
s.Spec.Subscriber = &duckv1.Destination{
Ref: &duckv1.KReference{
Group: gvk.Group,
Kind: gvk.Kind,
Name: name,
Namespace: namespace,
},
}
}
}

func WithSubscriptionDeliveryRef(gvk metav1.GroupVersionKind, name, namespace string) SubscriptionOption {
return func(s *v1.Subscription) {
s.Spec.Delivery = &eventingduckv1.DeliverySpec{
Expand Down
3 changes: 3 additions & 0 deletions vendor/knative.dev/eventing/test/e2e_flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ func InitializeEventingFlags() {
flag.Var(&EventingFlags.Brokers, "brokers", BrokerUsage)
flag.StringVar(&EventingFlags.BrokerName, "brokername", "", BrokerNameUsage)
flag.StringVar(&EventingFlags.BrokerNamespace, "brokernamespace", "", BrokerNamespaceUsage)
// Might be useful in restricted environments where namespaces need to be
// created by a user with increased privileges (admin).
flag.BoolVar(&EventingFlags.ReuseNamespace, "reusenamespace", false, "Whether to re-use namespace for a test if it already exists.")
flag.Parse()

// If no channel is passed through the flag, initialize it as the DefaultChannel.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ type EventingEnvironmentFlags struct {
ReadyFile string
BrokerName string
BrokerNamespace string
ReuseNamespace bool
}
Loading

0 comments on commit 95e3906

Please sign in to comment.