-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[multi-container]Add samples for multi container support #2732
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
[multi-container]Add samples for multi container support #2732
Conversation
26f9c1c
to
76a8fe6
Compare
/test pull-knative-docs-markdown-link-check |
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.
Some minor comments, otherwise looks good
@abrennan89 are your comments addressed? |
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.
Looks good, some minor comments and suggestions for readability 🙂
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.
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
Ack @dprotaso's comment. @savitaashture. Any news on finishing this PR? |
@savitaashture: The following test failed, say
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. |
/test all |
```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)) | ||
} |
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.
Is there a reason to duplicate the code & Dockerfiles in the README.md?
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 it's fine if you don't and just leave the commands that explain how to build and run the multiple container knative service
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.
Just added to show it clearly for both serving and sidecar container
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.
ok thanks
@savitaashture @dprotaso I don't think it matters about the tests that are failing since they're just the link checker and linter. |
@abrennan89 holding in case you have any last minute things /lgtm |
/hold |
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.
/unhold
/lgtm
/approve
Thanks @savitaashture ! 🎉
[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:
Approvers can indicate their approval by writing |
woot 🎉 |
Fixes knative/serving#8663
Proposed Changes
/cc @markusthoemmes @mattmoor @dprotaso