Skip to content

Commit

Permalink
appease linter gods
Browse files Browse the repository at this point in the history
Signed-off-by: Clayton Gonsalves <clayton.gonsalves@reddit.com>
  • Loading branch information
clayton-gonsalves committed Mar 25, 2024
1 parent 4678aa0 commit f5f9919
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions cmd/contour/routegen.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ func registerRouteGen(app *kingpin.Application) (*kingpin.CmdClause, *routeGenCo
return nil
}

routeGenCmd := app.Command("routegen", "Generate Envoy route configuration based on server config and resources")
routeGenCmd.Arg("resources", "Set of input resource manifests for the Envoy route configuration").Required().StringsVar(&cfg.inputManifests)
routeGenCmd.Flag("config-path", "Path to base configuration file").Short('c').PlaceHolder("/path/to/file").Action(parseContourConfigFile).ExistingFileVar(&configFile)
routeGenCmd.Flag("ingress-class-name", "Contour IngressClass name").PlaceHolder("<name>").StringVar(&cfg.serveCtx.ingressClassName)
routeGenCmd.Flag("output", "File to write route config into (defaults to stdout)").StringVar(&cfg.output)
routeGenCmd := app.Command("routegen", "Generate Envoy route configuration based on server config and resources.")
routeGenCmd.Arg("resources", "Set of input resource manifests for the Envoy route configuration.").Required().StringsVar(&cfg.inputManifests)
routeGenCmd.Flag("config-path", "Path to base configuration file.").Short('c').PlaceHolder("/path/to/file").Action(parseContourConfigFile).ExistingFileVar(&configFile)
routeGenCmd.Flag("ingress-class-name", "Contour IngressClass name.").PlaceHolder("<name>").StringVar(&cfg.serveCtx.ingressClassName)
routeGenCmd.Flag("output", "File to write route config into (defaults to stdout).").StringVar(&cfg.output)

return routeGenCmd, cfg
}
Expand Down
2 changes: 1 addition & 1 deletion site/content/docs/main/guides/route-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ router_check_tool --version
```

## Generating Envoy routes from Contour
The Contour routegen tool requires Kubernetes manifests as input to generate envoy routes. The manifest should contain atleast one of APIGateway, HTTPProxy or an Ingress along with their referencing Kubernetes services.
The Contour routegen tool requires Kubernetes manifests as input to generate envoy routes. The manifest should contain at least one of APIGateway, HTTPProxy or an Ingress along with their referencing Kubernetes services.

A sample manifest is given below

Expand Down

0 comments on commit f5f9919

Please sign in to comment.