Skip to content

Conversation

savitaashture
Copy link
Contributor

Fixes knative/serving#8663

Proposed Changes

  • Add samples to show multi container usage
  • Add README

/cc @markusthoemmes @mattmoor @dprotaso

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

/test pull-knative-docs-markdown-link-check

Copy link
Contributor

@abrennan89 abrennan89 left a comment

Choose a reason for hiding this comment

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

Some minor comments, otherwise looks good

@abrennan89 abrennan89 linked an issue Sep 1, 2020 that may be closed by this pull request
@markusthoemmes
Copy link
Contributor

@abrennan89 are your comments addressed?
@savitaashture please fix the whitespace issues.

Copy link
Contributor

@abrennan89 abrennan89 left a comment

Choose a reason for hiding this comment

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

Looks good, some minor comments and suggestions for readability 🙂

Copy link
Member

@dprotaso dprotaso left a comment

Choose a reason for hiding this comment

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

can we be consistent in the go version? I see 1.13 and 1.14 in different places.

1.15 is out now so we can use that

@markusthoemmes
Copy link
Contributor

Ack @dprotaso's comment. @savitaashture. Any news on finishing this PR?

@knative-prow-robot
Copy link
Contributor

knative-prow-robot commented Oct 5, 2020

@savitaashture: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
pull-knative-docs-markdown-link-check b9e4a54 link /test pull-knative-docs-markdown-link-check

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@dprotaso
Copy link
Member

dprotaso commented Oct 6, 2020

/test all

Comment on lines +37 to +61
```go
package main
import (
"fmt"
"io/ioutil"
"log"
"net/http"
)
func handler(w http.ResponseWriter, r *http.Request) {
log.Println("serving container received a request.")
res, err := http.Get("http://127.0.0.1:8882")
if err != nil {
log.Fatal(err)
}
resp, err := ioutil.ReadAll(res.Body)
if err != nil {
log.Fatal(err)
}
fmt.Fprintln(w, string(resp))
}
func main() {
log.Print("serving container started...")
http.HandleFunc("/", handler)
log.Fatal(http.ListenAndServe(":8881", nil))
}
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason to duplicate the code & Dockerfiles in the README.md?

Copy link
Member

Choose a reason for hiding this comment

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

I think it's fine if you don't and just leave the commands that explain how to build and run the multiple container knative service

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just added to show it clearly for both serving and sidecar container

Copy link
Member

Choose a reason for hiding this comment

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

ok thanks

@abrennan89
Copy link
Contributor

@savitaashture @dprotaso I don't think it matters about the tests that are failing since they're just the link checker and linter.
LMK when there are no more comments to address and I'll approve this one.

@dprotaso
Copy link
Member

dprotaso commented Oct 13, 2020

@abrennan89 holding in case you have any last minute things

/lgtm
/approve

@dprotaso
Copy link
Member

/hold

@knative-prow-robot knative-prow-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 13, 2020
@knative-prow-robot knative-prow-robot added lgtm Indicates that a PR is ready to be merged. approved labels Oct 13, 2020
Copy link
Contributor

@abrennan89 abrennan89 left a comment

Choose a reason for hiding this comment

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

/unhold
/lgtm
/approve

Thanks @savitaashture ! 🎉

@knative-prow-robot knative-prow-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 13, 2020
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abrennan89, dprotaso, savitaashture

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:
  • OWNERS [abrennan89,dprotaso]

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 merged commit c80a5cc into knative:master Oct 13, 2020
@dprotaso
Copy link
Member

woot 🎉

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/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add documentation to show usage of multiple containers [multi-container] Add samples to show usage of multi containers as part of knative service

8 participants