-
Notifications
You must be signed in to change notification settings - Fork 1.3k
message_dumper to event_display #1126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
[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 |
samodell
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docs/eventing/debugging/example.yaml
Outdated
| # 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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
docs/eventing/debugging/example.yaml
Outdated
| # 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes.
docs/eventing/debugging/example.yaml
Outdated
| # 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 |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.')
f5281a5 to
4a39b75
Compare
| name: event-display | ||
| ``` | ||
|
|
||
| Use following command to create the event source from `cronjob-source.yaml`: |
There was a problem hiding this comment.
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=10mThe 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 |
There was a problem hiding this comment.
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`: |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Harwayne
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Fixes #1110