Skip to content
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

Reworked shell hello world example #2832

Merged
merged 2 commits into from
Nov 6, 2020

Conversation

rhuss
Copy link
Contributor

@rhuss rhuss commented Sep 18, 2020

  • Reworked example to be a "true" shell example that is considerabledifferent than the helloworld-go example
  • Added examples for kn usage

@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Sep 18, 2020
@knative-prow-robot knative-prow-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Sep 18, 2020
@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@googlebot googlebot added cla: no Indicates the PR's author has not signed the CLA. and removed cla: yes Indicates the PR's author has signed the CLA. labels Sep 20, 2020
@knative-prow-robot knative-prow-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 25, 2020
Copy link
Member

@mattmoor mattmoor left a comment

Choose a reason for hiding this comment

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

Produced via:
gofmt -s -w $(find -path './vendor' -prune -o -path './third_party' -prune -o -name '*.pb.go' -prune -o -type f -name '*.go' -print)
goimports -w $(find -name '*.go' | grep -v vendor | grep -v third_party | grep -v .pb.go | grep -v wire_gen.go)

@rhuss
Copy link
Contributor Author

rhuss commented Sep 25, 2020

@googlebot I fixed it

@googlebot
Copy link

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@googlebot googlebot added cla: yes Indicates the PR's author has signed the CLA. and removed cla: no Indicates the PR's author has not signed the CLA. labels Sep 25, 2020
Copy link
Contributor

@maximilien maximilien left a comment

Choose a reason for hiding this comment

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

Nice work. I'll model the ruby example to match this. Left a few comments and typo/fixes to be made.
Otherwise LGTM.

docs/serving/samples/hello-world/helloworld-shell/index.md Outdated Show resolved Hide resolved
- A Kubernetes cluster with Knative installed and DNS configured. Follow the
[installation instructions](../../../../install/README.md).
- [Docker](https://www.docker.com) installed and running on your local machine,
and a Docker Hub account configured.
Copy link
Contributor

Choose a reason for hiding this comment

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

Since Github supports image registry with GitHub Docker packages I wonder if we should also include that here since it keeps everything tidy with GH. Thoughts?

Copy link
Member

Choose a reason for hiding this comment

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

I'd stick with DockerHub for now. If we switch to GHCR we should switch everything, I think.

docs/serving/samples/hello-world/helloworld-shell/index.md Outdated Show resolved Hide resolved
docs/serving/samples/hello-world/helloworld-shell/index.md Outdated Show resolved Hide resolved

During the creation of your service, Knative performs the following steps:

- Create a new immutable revision for this version of the app.
Copy link
Contributor

Choose a reason for hiding this comment

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

Wonder if this should be "Creates" since it really is meant to be: "Knative creates ..." and so on, so "Automatically scales ..."

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good question. I haven't added that part, but maybe the gerund form ("Creating") is a better fit ? (as in the next bullet point "programming" is used, but then we should also change to "scaling" in the third item.

@abrennan89 any recommendation ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

"Creation" could be also an option

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 moved now to "Creates", "Programs the network" and "scales"

docs/serving/samples/hello-world/helloworld-shell/index.md Outdated Show resolved Hide resolved
@rhuss
Copy link
Contributor Author

rhuss commented Oct 13, 2020

@maximilien If we are good with this PR I think it can be merged.

@abrennan89 Maybe you could give this PR a quick look and give if it a lgtm + approve if ok ?

@mpetason
Copy link
Contributor

@rhuss I think it is still missing a few updates. It still shows helloworld-go, maybe this is missing a commit?

@abrennan89
Copy link
Contributor

@rhuss is this for 0.19.0, and is there an issue tracking it that you can link?
The jist of the info looks good, but it could use some editing that I won't have time to do this week.

@abrennan89 abrennan89 self-assigned this Oct 14, 2020
@knative-prow-robot knative-prow-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 20, 2020
@mattmoor
Copy link
Member

mattmoor commented Nov 6, 2020

Generally this LGTM. I'm rebasing my change on this since you fixed the test, and working through the comments now.

Do you want to rebase this, so we can try to land it tomorrow?

@rhuss
Copy link
Contributor Author

rhuss commented Nov 6, 2020

Sorry for being later, but as said, I'm think we are good to merge this PR, nothing left from my side. Let me rebase it ...

@csantanapr
Copy link
Member

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 6, 2020
@csantanapr
Copy link
Member

It looks like there is a conflict?

docs/serving/samples/hello-world/helloworld-shell/go.mod

@knative-prow-robot knative-prow-robot removed lgtm Indicates that a PR is ready to be merged. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Nov 6, 2020
@google-cla
Copy link

google-cla bot commented Nov 6, 2020

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@google-cla google-cla bot added cla: no Indicates the PR's author has not signed the CLA. and removed cla: yes Indicates the PR's author has signed the CLA. labels Nov 6, 2020
Copy link
Member

@mattmoor mattmoor 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 Nov 6, 2020
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mattmoor, rhuss

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 removed the lgtm Indicates that a PR is ready to be merged. label Nov 6, 2020
@google-cla
Copy link

google-cla bot commented Nov 6, 2020

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@pierDipi
Copy link
Member

pierDipi commented Nov 6, 2020

@googlebot I consent.

pierDipi and others added 2 commits November 6, 2020 16:42
…tive#2916)

If the type of the event isn't changed by the last step in the
sequence the event will be resent to the Trigger that targets
the sequence creating an unwanted loop.

Fixes knative#2851

Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
* Reworked example to be a "true" shell example that is considerable different than the helloworld-go example
* Added examples for kn usage

(Fixed according to review comments)
@pierDipi
Copy link
Member

pierDipi commented Nov 6, 2020

@googlebot I signed it!

@google-cla google-cla bot added cla: yes Indicates the PR's author has signed the CLA. and removed cla: no Indicates the PR's author has not signed the CLA. labels Nov 6, 2020
@mattmoor
Copy link
Member

mattmoor commented Nov 6, 2020

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 6, 2020
@knative-prow-robot knative-prow-robot merged commit c14f768 into knative:master Nov 6, 2020
RichieEscarez pushed a commit to RichieEscarez/docs that referenced this pull request Mar 6, 2021
* Change event type in Sequence with Broker example (knative#2897) (knative#2916)

If the type of the event isn't changed by the last step in the
sequence the event will be resent to the Trigger that targets
the sequence creating an unwanted loop.

Fixes knative#2851

Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>

* Reworked shell hello world example

* Reworked example to be a "true" shell example that is considerable different than the helloworld-go example
* Added examples for kn usage

(Fixed according to review comments)

Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
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/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants