Skip to content

Conversation

@owenthereal
Copy link
Contributor

Fixes knative/eventing#1348

Proposed Changes

knative/eventing#1321 introduces PodTemplateSpec to ContainerSourceSpec. This feature will be out in 0.7.x. Updating documentation to reflect the template field.

@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Jun 19, 2019
@knative-prow-robot knative-prow-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jun 19, 2019
@knative-prow-robot
Copy link
Contributor

Hi @jingweno. Thanks for your PR.

I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@knative-prow-robot knative-prow-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jun 19, 2019
@owenthereal
Copy link
Contributor Author

/kind eventing

@n3wscott
Copy link
Contributor

/lgtm
/ok-to-test

@knative-prow-robot knative-prow-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. lgtm Indicates that a PR is ready to be merged. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jun 19, 2019
@owenthereal
Copy link
Contributor Author

@n3wscott I'm unsure why the tests failed. Any pointers?

@vaikas
Copy link
Contributor

vaikas commented Jun 20, 2019

/test pull-knative-docs-integration-tests

1 similar comment
@vaikas
Copy link
Contributor

vaikas commented Jun 20, 2019

/test pull-knative-docs-integration-tests

@samodell
Copy link
Contributor

Thanks, @jingweno !
/approve

@samodell
Copy link
Contributor

/test pull-knative-docs-integration-tests

@owenthereal
Copy link
Contributor Author

owenthereal commented Jun 20, 2019

According to the build log, the e2e tests failed at https://github.com/knative/docs/blob/master/test/e2e/sampleapptestbase.go#L111 or https://github.com/knative/docs/blob/master/test/e2e/sampleapptestbase.go#L114 due to tests running too long: Test killed with quit: ran too long (10m0s). I have no idea why docker build or docker push would fail with a doc change. Prob. there were some auth issues when pushing the images?

@samodell
Copy link
Contributor

Yeah, it's definitely an issue with the tests. Hey @chaodaiG , could you take a look at this failure?

@chaodaiG
Copy link
Contributor

Master branch looks fine to me, and these change shouldn't break test
/test pull-knative-docs-integration-tests

@chizhg
Copy link
Contributor

chizhg commented Jun 20, 2019

/hold
@jingweno knative/eventing#1395 also needs your attention.
Can you update https://github.com/knative/docs/blob/master/docs/eventing/broker-trigger.md in this PR as well after knative/eventing-contrib#469 is in?

@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 Jun 20, 2019
@chaodaiG
Copy link
Contributor

chaodaiG commented Jun 20, 2019 via email

@owenthereal
Copy link
Contributor Author

owenthereal commented Jun 21, 2019

@Fredy-Z:

Can you update https://github.com/knative/docs/blob/master/docs/eventing/broker-trigger.md in this PR as well after knative/eventing-contrib#469 is in?

I think the broker/trigger doc fix is better to be in another PR because this one is about updating the doc for the new template field of container source. And I saw that you already have a PR to fix the broker/trigger doc: #1496

@chizhg
Copy link
Contributor

chizhg commented Jun 21, 2019

@Fredy-Z:

Can you update https://github.com/knative/docs/blob/master/docs/eventing/broker-trigger.md in this PR as well after knative/eventing-contrib#469 is in?

I think the broker/trigger doc fix is better to be in another PR because this one is about updating the doc for the new template field of container source. And I saw that you already have a PR to fix the broker/trigger doc: #1496

My PR is to update docs of release-0.6 branch.
The master branch also needs to be updated, and since this broker/trigger doc uses ContainerSource as a demo (see Knative Source part of https://github.com/knative/docs/blob/master/docs/eventing/broker-trigger.md), it also needs to be updated by using the new template field of ContainerSource.

@chizhg
Copy link
Contributor

chizhg commented Jun 21, 2019

/hold cancel

@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 Jun 21, 2019
@chizhg
Copy link
Contributor

chizhg commented Jun 21, 2019

/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 Jun 21, 2019
template:
spec:
containers:
- image: <heartbeats_image_uri>
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems container name is missed here, this yaml template will result in an error.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Fredy-Z Good catch. Fixed.

containers:
# This corresponds to a heartbeats image uri you build and publish,
# e.g. gcr.io/[gcloud-project]/github.com/knative/eventing-contrib/cmd/heartbeats
- image: index.docker.io/jingweno/heartbeats-6410d29c99b6ec4e0dd2fb3e6e31829e
Copy link
Contributor

Choose a reason for hiding this comment

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

Ditto.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@owenthereal owenthereal force-pushed the container_source_template branch from e22ed7b to 9831069 Compare June 25, 2019 17:36
@knative-prow-robot knative-prow-robot removed the lgtm Indicates that a PR is ready to be merged. label Jun 25, 2019
knative/eventing#1321 introduces `PodTemplateSpec` to `ContainerSourceSpec`.
This feature will be out in 0.7.x.
Update documentation to reflect the `template` field.
@owenthereal owenthereal force-pushed the container_source_template branch from 9831069 to 30f4119 Compare June 25, 2019 17:37
@chizhg
Copy link
Contributor

chizhg commented Jun 25, 2019

/hold cancel
/lgtm

@knative-prow-robot knative-prow-robot added lgtm Indicates that a PR is ready to be merged. and removed do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Jun 25, 2019
@owenthereal
Copy link
Contributor Author

@Fredy-Z:

My PR is to update docs of release-0.6 branch.
The master branch also needs to be updated, and since this broker/trigger doc uses ContainerSource as a demo (see Knative Source part of https://github.com/knative/docs/blob/master/docs/eventing/broker-trigger.md), it also needs to be updated by using the new template field of ContainerSource.

Gotcha. I saw that you also fixed master: #1504. I should have addressed all feedback in this PR.

@samodell
Copy link
Contributor

/approve

@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jingweno, 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 merged commit ccfa98c into knative:master Jun 25, 2019
RichieEscarez pushed a commit to RichieEscarez/docs that referenced this pull request Jun 26, 2019
…1491)

knative/eventing#1321 introduces `PodTemplateSpec` to `ContainerSourceSpec`.
This feature will be out in 0.7.x.
Update documentation to reflect the `template` field.
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. kind/eventing lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. 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.

Update container source documentation for template field

8 participants