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

Fixing language in the source to url sample #189

Merged
merged 5 commits into from
Jul 22, 2018

Conversation

labadav
Copy link
Contributor

@labadav labadav commented Jul 18, 2018

Fixes #78

Proposed Changes

@labadav labadav requested a review from rgregg July 18, 2018 22:43
@google-prow-robot google-prow-robot added approved size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 18, 2018
* A Kubernetes cluster with Knative installed. Follow the
[installation instructions](https://github.com/knative/docs/blob/master/install/README.md) if you need
to create one.
* Go installed and configured (optional, if you want to run the sample app
locally).
* Go installed and configured. This is optional, if you want to run the sample app
Copy link
Member

Choose a reason for hiding this comment

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

This is optional, and is only required if ...

You need to install a [Build Template](https://github.com/knative/build-templates)
that will be used by the sample, and register a secret for your container
registry. In this example, we'll use Docker Hub.
To use this sample, you need to install a build template and register a secret for Docker Hub.
Copy link
Member

Choose a reason for hiding this comment

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

Does this need to be Docker Hub, and not e.g. gcr.io?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rgregg Ryan, do you know?

Copy link
Contributor

Choose a reason for hiding this comment

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

For the samples in general, we've been using Docker Hub because it's agnostic of any of the Knative authors. We got good community feedback that we shouldn't use GCR all the time.


Now you can apply this manifest using kubectl, and watch the results:

1. You need to create a service manifest which defines the service to deploy, including where
Copy link
Contributor

Choose a reason for hiding this comment

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

GitHub isn't rendering the numbers correctly. Each point is 1, so there's probably a whitespace issue here somewhere.



1. After the build has completed and the container is pushed to docker hub, you
1. Once you see the deployment pod switch to the running state, press Ctrl+C to
Copy link
Contributor

Choose a reason for hiding this comment

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

The numbering restarts here too, for some reason.

revisionTemplate:
spec:
container:
image: *image
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 that we should have a comment explaining this or just duplicate the image name.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mattmoor do you mean changing this to:
image: IMAGE

Copy link
Contributor

Choose a reason for hiding this comment

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

We should change this to:

- name: IMAGE
  value: docker.io/..

spec:
  container:
    image: docker.io/...

Copy link
Contributor

Choose a reason for hiding this comment

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

Basically remove the &image and *image syntax, which is a bit of YAML magic

@@ -1,48 +1,46 @@
# Source to URL - Go
# Orchestrating a source-to-URL deployement on Kubernetes
Copy link
Member

Choose a reason for hiding this comment

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

typo

@labadav
Copy link
Contributor Author

labadav commented Jul 20, 2018

/retest

1 similar comment
@labadav
Copy link
Contributor Author

labadav commented Jul 20, 2018

/retest

@@ -234,7 +210,7 @@ status:
```

1. Now you can make a request to your app to see the result. Replace
`{IP_ADDRESS}` with the address you see returned in the previous step.
`{IP_ADDRESS}` with the address that you got in the previous step:

```shell
curl -H "Host: app-from-source.default.example.com" http://{IP_ADDRESS}
Copy link
Contributor

Choose a reason for hiding this comment

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

Needs the license footer at the bottom of this file.

@rgregg rgregg self-assigned this Jul 20, 2018
@rgregg
Copy link
Contributor

rgregg commented Jul 22, 2018

/lgtm
/approve

@google-prow-robot google-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 22, 2018
@google-prow-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: labadav, rgregg

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

@google-prow-robot google-prow-robot merged commit 68502bb into master Jul 22, 2018
@rgregg rgregg deleted the labadav-patch-3 branch July 23, 2018 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

5 participants