Skip to content

Conversation

@samodell
Copy link
Contributor

@samodell samodell commented Apr 1, 2019

Fixes #1110

@samodell samodell added this to the v0.5 Docs milestone Apr 1, 2019
@samodell samodell requested review from Harwayne and n3wscott April 1, 2019 23:35
@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Apr 1, 2019
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: samodell

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 approved size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Apr 1, 2019
Copy link
Contributor Author

@samodell samodell left a comment

Choose a reason for hiding this comment

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

Added a couple questions about this update. PTAL, @n3wscott and @Harwayne

# This corresponds to
# https://github.com/knative/eventing-sources/blob/v0.2.1/cmd/message_dumper/dumper.go.
image: gcr.io/knative-releases/github.com/knative/eventing-sources/cmd/message_dumper@sha256:ab5391755f11a5821e7263686564b3c3cd5348522f5b31509963afb269ddcd63
image: gcr.io/knative-releases/github.com/knative/eventing-sources/cmd/event_display@sha256:ab5391755f11a5821e7263686564b3c3cd5348522f5b31509963afb269ddcd63
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't update everything after @sha; does that need to be updated too?

Copy link
Contributor

Choose a reason for hiding this comment

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

yes definitely needs to be updated

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes.

spec:
runLatest:
configuration:
revisionTemplate:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should the name above (on line 20) be updated from message-dumper to something like event-display? @Harwayne Would that impact the rest of the code for the samples?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes. service.yaml will need to change in the same way.

@samodell samodell removed the approved label Apr 1, 2019
# This corresponds to
# https://github.com/knative/eventing-sources/blob/v0.2.1/cmd/message_dumper/dumper.go.
image: gcr.io/knative-releases/github.com/knative/eventing-sources/cmd/message_dumper@sha256:ab5391755f11a5821e7263686564b3c3cd5348522f5b31509963afb269ddcd63
image: gcr.io/knative-releases/github.com/knative/eventing-sources/cmd/event_display@sha256:ab5391755f11a5821e7263686564b3c3cd5348522f5b31509963afb269ddcd63
Copy link
Contributor

Choose a reason for hiding this comment

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

Yes.

# This corresponds to
# https://github.com/knative/eventing-sources/blob/v0.2.1/cmd/message_dumper/dumper.go.
image: gcr.io/knative-releases/github.com/knative/eventing-sources/cmd/message_dumper@sha256:ab5391755f11a5821e7263686564b3c3cd5348522f5b31509963afb269ddcd63
image: gcr.io/knative-releases/github.com/knative/eventing-sources/cmd/event_display@sha256:ab5391755f11a5821e7263686564b3c3cd5348522f5b31509963afb269ddcd63
Copy link
Contributor

Choose a reason for hiding this comment

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

I wouldn't change the debugging example. If you do, the MD also needs to change (not purely mechanical changes either).

spec:
runLatest:
configuration:
revisionTemplate:
Copy link
Contributor

Choose a reason for hiding this comment

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

Yes. service.yaml will need to change in the same way.

# This corresponds to
# https://github.com/knative/eventing-sources/blob/release-0.3/cmd/message_dumper/dumper.go
image: gcr.io/knative-releases/github.com/knative/eventing-sources/cmd/message_dumper@sha256:8423232db7a7b4010c0cfbfaef95745efe962631af9b7456903825801a7893f7
image: gcr.io/knative-releases/github.com/knative/eventing-sources/cmd/event_display@sha256:8423232db7a7b4010c0cfbfaef95745efe962631af9b7456903825801a7893f7
Copy link
Contributor

Choose a reason for hiding this comment

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

SHA definitely needs to change. Probably wait until 0.5.0 has been cut, then use that. I recommend leaving a comment describing where that image comes from (e.g. 'This corresponds to https://github.com/knative/eventing-sources/blob/v0.5.0/cmd/event_display/main.go.')

@samodell samodell force-pushed the msgdumper branch 2 times, most recently from f5281a5 to 4a39b75 Compare April 5, 2019 22:49
@knative-prow-robot knative-prow-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Apr 5, 2019
name: event-display
```

Use following command to create the event source from `cronjob-source.yaml`:
Copy link
Contributor

Choose a reason for hiding this comment

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

I can't seem to comment on line 69.

The 'Verify' command should be:

kubectl logs -l serving.knative.dev/service=event-display -c user-container --since=10m

The output text will also be a bit different, but I don't know exactly what it will look like right now. We can probably leave the existing text for the time being.

apiVersion: serving.knative.dev/v1alpha1
kind: Service
name: message-dumper
name: event-display
Copy link
Contributor

Choose a reason for hiding this comment

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

Similar to the previous comment, the readme needs an updated verification section. I think s/message-dumper/event-display/g would work.

image: gcr.io/knative-releases/github.com/knative/eventing-sources/cmd/event_display
```
Enter the following command to create the service from `service.yaml`:
Copy link
Contributor

Choose a reason for hiding this comment

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

Similar comment on line 150.

I would replace the entire Create Events command with:

kubectl logs -l serving.knative.dev/service=event-display -c user-container --since=10m

kind: Service
metadata:
name: message-dumper
name: event-display
Copy link
Contributor

Choose a reason for hiding this comment

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

Once again the readme will have to be updated. s/message-dumper/event-display/g.

kind: Service
metadata:
name: message-dumper
name: event-display
Copy link
Contributor

Choose a reason for hiding this comment

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

Once again the readme will have to be updated. s/message-dumper/event-display/g.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think I have that done globally.

Copy link
Contributor

@Harwayne Harwayne left a comment

Choose a reason for hiding this comment

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

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 5, 2019
@knative-prow-robot knative-prow-robot merged commit d5735fd into knative:master Apr 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants