Repository navigation
Closed
Labels
documentationImprovements or additions to documentation
Description
Problem
render and check read Proxyfile, proxyfile.conf, proxyfile.yaml or proxyfile.yml when given no file (internal/cli/cli.go, defaultNames), and the README's Quick start saves the file under those names, but every example is examples/<name>/gateway.yaml with its HOCON twin gateway.conf. A reader who copies an example gets a name the commands do not read by default, and the two conventions sit side by side in the same README.
What changes
The layout the owner chose on 2026-11-12: one folder per form, because proxyfile refuses a folder that holds two default-named files ("more than one default file here").
- Every example becomes
examples/<name>/yaml/proxyfile.yamlandexamples/<name>/hocon/Proxyfile(moved withgit mvfromgateway.yamlandgateway.conf), each folder with its own committed outputs (envoy.yaml, andrpc-table.jsonwhere the example has one), the same bytes in both.proxyfile render -o envoy.yamlandproxyfile check -o envoy.yamlthen work in every example folder with no file argument. - Files an example shares between its forms (
examples/partial'sproto/,methods.json,rpc-methods.conf) stay at the example's top and are named by relative path;examples/partial's third form (today'sProxyfile, the methods read from.protofiles) gets its own folder,examples/partial/proto-methods/. - Every mention follows:
README.md, the pages underdocs/, the tests that read the examples (underinternal/),scripts/validate-envoy.sh, and eachincludeinside an example. - No format or behaviour change.
Acceptance
git grep -n -E 'gateway\.(yaml|conf)'prints nothing (control at master: 97 mentions in 18 files).- In every
examples/*/*/folder that holds a proxyfile,proxyfile check -o envoy.yamlwith no file argument exits 0 (a loop quoted in the PR), and each output equals the bytes master has for that example (git diff -M --stat mastershows the outputs as renames or copies with no content change). go test ./...green andscripts/validate-envoy.shvalidates every example.
Consumers
internal/render/render_test.go,internal/format/schema_test.go,internal/format/docs_test.go,scripts/validate-envoy.sh,docs/*.md,README.md: each names the example files; the sweep above is the list. Checked:git grep -l -E 'gateway\.(yaml|conf)', the files the PR renames the mentions in.- Users who copied an example by its old name: nothing changes for them, the format and the tool read any name the rule allows.
- Open tickets checked:
gh search issues 'examples gateway.yaml rename' --repo kitecorp/proxyfile --state open, none.
Lane
LIGHT - file renames and the mentions that follow; no code behaviour or format change.
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentation
Activity
docs(examples): one folder per form under the names the commands read…
docs(examples): one folder per form under the names the commands read…
tudor-pop commentedon Nov 12, 2026
Merged as #36, master 360c083: every example is one folder per form (
yaml/proxyfile.yaml,hocon/Proxyfile) with its own committed output, sorenderandcheckwork in each with no file argument.