Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

Porting sink change over from 'eventing core' #477

Merged
merged 2 commits into from
Jun 28, 2019
Merged

Porting sink change over from 'eventing core' #477

merged 2 commits into from
Jun 28, 2019

Conversation

matzew
Copy link
Member

@matzew matzew commented Jun 28, 2019

Fixes #475

Proposed Changes

  • porting sink part of fbee61d9eb61a760a49783196e63a4a0c4c789f0 over to contrib, in addtion to @n3wscott's update to the knative.dev/pkg usage

Tested w/ the Kafka Source.

KSVC:

apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
  name: k8s-event-display
spec:
  template:
    spec:
      containers:
      - image: docker.io/cds19/event-display

Kafka:

apiVersion: sources.eventing.knative.dev/v1alpha1
kind: KafkaSource
metadata:
  name: kafka-source2
spec:
  consumerGroup: ledemo
  bootstrapServers: my-cluster-kafka-bootstrap.kafka:9092
  topics: my-topic
  sink:
    apiVersion: serving.knative.dev/v1beta1
    kind: Service
    name: k8s-event-display

@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Jun 28, 2019
@knative-prow-robot knative-prow-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jun 28, 2019
@matzew
Copy link
Member Author

matzew commented Jun 28, 2019

@bbrowning @lberk I think that's it ...

At least the Kafka Source works w/ the v1beta - does one of you want to test the GH source (no clue on that)

@knative-prow-robot knative-prow-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jun 28, 2019
@knative-metrics-robot
Copy link

The following is the coverage report on pkg/.
Say /test pull-knative-eventing-contrib-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/controller/sinks/sinks.go 94.7% 95.0% 0.3

Copy link
Contributor

@grantr grantr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Thanks @matzew! Let's get this one in first, then @Harwayne's #476 will add the unit test.

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 28, 2019
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: grantr, matzew

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 28, 2019
@knative-prow-robot knative-prow-robot merged commit 7ebbbf5 into knative:master Jun 28, 2019
knative-prow-robot pushed a commit that referenced this pull request Jul 2, 2019
* migrate to knative.dev/pkg (#474)

* migrate to knative.dev/pkg

* fix tests.

* Porting sink change over from 'eventing core' (#477)

* Porting sink change over from 'eventing core'

* updates

* Unit test for status.address.hostname (#476)

* Start to use GetURL on Addressable instead of assuming Hostname.

* Remove trailing slash.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GitHubSource doesn't work with Serving 0.7
5 participants