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

User guide documentation issues #717

Closed
derrickburns opened this issue May 17, 2019 · 2 comments · Fixed by #3007
Closed

User guide documentation issues #717

derrickburns opened this issue May 17, 2019 · 2 comments · Fixed by #3007
Assignees
Labels

Comments

@derrickburns
Copy link
Contributor

derrickburns commented May 17, 2019

For a newbie looking at the Gloo documentation, there are a few things that make it difficult to follow. Here are some examples:

  1. glooctl get upstream default-petstore-8080 --output yaml also shows some output deduced from Swagger. I would love to see the Swagger source. A simple google search did not yield the Swagger data. I know (from other experience) that it is served by the application. Where is the source to the example, listed in https://raw.githubusercontent.com/solo-io/gloo/master/example/petstore/petstore.yaml.

  2. glooctl get virtualservice --output yaml also shows output defining a virtual service, but where is the name? You list the name in text Since we skipped creating a virtual service for this route, *my-virtual-service* will be created automatically for us. It would be easier to follow if you showed the name in the output.

  3. Are these Kubernetes manifests? If so, where is the kind field. I look for that.

  4. Where is the output of

glooctl add route \
    --path-exact /sample-route-1 \
    --dest-name default-petstore-8080 \
    --prefix-rewrite /api/pets

From https://gloo.solo.io/user_guides/function_routing/:

  1. kubectl logs -l gloo=discovery does not work. You need the namespace: kubectl logs -n gloo-system -l gloo=discovery

  2. This is the output I get from kubectl logs -n gloo-system -l gloo=discovery. Is this as intended?

$ kubectl logs -n gloo-system -l gloo=discovery
parsing doc as json failed, falling back to yaml

"Fri, 17 May 2019 00:15:40 UTC: github.com/solo-io/gloo/projects/discovery/pkg/fds/discoveries/swagger/swagger.go:310"	WARNING:
parsing doc as json failed, falling back to yaml

{"level":"info","ts":1558052154.0902479,"logger":"fds.v1.event_loop.fds.function-discovery-updater","caller":"grpc/grpc.go:117","msg":"tcp://gloo.gloo-system.svc.cluster.local:9977 discovered as a gRPC service"}
{"level":"info","ts":1558052193.1668105,"logger":"fds.v1.event_loop.fds.function-discovery-updater","caller":"grpc/grpc.go:117","msg":"tcp://gloo.gloo-system.svc.cluster.local:9977 discovered as a gRPC service"}
{"level":"info","ts":1558052271.1076057,"logger":"fds.v1.event_loop.fds.function-discovery-updater","caller":"grpc/grpc.go:117","msg":"tcp://gloo.gloo-system.svc.cluster.local:9977 discovered as a gRPC service"}
{"level":"info","ts":1558052378.5292346,"logger":"fds.v1.event_loop.fds.function-discovery-updater","caller":"grpc/grpc.go:117","msg":"tcp://gloo.gloo-system.svc.cluster.local:9977 discovered as a gRPC service"}
{"level":"info","ts":1558052548.0377233,"logger":"fds.v1.event_loop.fds.function-discovery-updater","caller":"grpc/grpc.go:117","msg":"tcp://gloo.gloo-system.svc.cluster.local:9977 discovered as a gRPC service"}
  1. Editing issue: to perform transform requests to the structure

  2. request/response transformation Envoy filter links to a GitHub site with no README.

  3. (documented in the plugin spec is missing a closing parenthesis.

  4. The function spec you see on the functions listed above belongs to the transformation plugin. . What does belongs to mean?

  5. It would help to describe what you are trying to do with the transformation plugin in this example. In this case, you are pulling parameters that are passed in the body and creating a URL with those value embedded. This allows you to remap on way of passing a query, i.e. with parameters in json in a body, to another way of passing a query, i.e. with parameters in the URL.

From https://gloo.solo.io/user_guides/external_api_routing/:

  1. In your text you say glooctl get upstream -n gloo-system, which is correct, but in the text box, you say glooctl get upstream.

  2. Note that we explicitly specified the namespace otherwise glooctl would default to the gloo-system namespace. I think that you mean that it would default to the default namespace.

  3. creating virtualservice default with default domain * is not the output I get. I get selected virtualservice default for route. Perhaps the code has changed? I am running

 glooctl --version
glooctl community edition version 0.13.28

Also, I see the route I added from the previous lesson.

From https://gloo.solo.io/user_guides/advanced_routing_action/:

  1. The matcher provides conditional rules to select requests should be handled by a given route ?

  2. The --dry-run option tells glooctl to NOT actually create the custom resource and instead output the custom resource manifest. This is a great way to get an initial manifest template that you can edit and then kubectl apply later. State this MUCH earlier in the user guide.

  3. upstream_group: similar to a MultiDestination that can be shared across multiple routes and virtual services is confusing

  4. The destinationSpec is an optional plugin definition based on the upstream. This make no sense.

  5. additional rest desinationSpec like as follows. spelling error

  6. This previous would be like execution the following glooctl command Grammar.

  7. Your description of subsets is awkward. If people are using Kubernetes, you may assume that they already understand how labels and label selectors are used with Deployments and Services. Refer to that, since you usage is identical.

  8. The weight is the percentage of request traffic forwarded to that destination where the percentage is: weight divided by sum of all weights in MultiDestination Say the The probability of selection instead of The weight is.

From https://gloo.solo.io/user_guides/advanced_route_plugins/:

  1. You introduce retries in the timeout example. Flip the order.

From https://gloo.solo.io/operator_guide/cert-manager/

  1. There are numerous obvious grammatical errors in this guide. It should be proof-read.
@derrickburns derrickburns changed the title Documentation : https://gloo.solo.io/user_guides/basic_routing/ User guide documentation issues May 17, 2019
@christian-posta
Copy link
Contributor

Thanks @derrickburns will have a look and get this corrected

@ilevine ilevine added Area: dev Size: S 1 - 3 days Type: Bug Something isn't working labels Jul 16, 2019
@ilevine ilevine removed their assignment Jul 16, 2019
@rickducott
Copy link

This is stale, but leaving open because I'd like to audit current docs against the suggestions.

@rickducott rickducott removed the Type: Bug Something isn't working label Mar 25, 2020
@ned1313 ned1313 linked a pull request May 13, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants