Commit db68457
authored
docs(k8s-proxy): add Developer Workflow page for branches + CI integration (#859)
* docs(k8s-proxy): add Developer Workflow page for branches + CI integration
The K8s Record Replay quickstart shows how to capture traffic and
generate tests, but it stops short of how a team actually edits that
test data over time. New page walks through the two halves of the
day-to-day workflow:
- Editing test cases and mocks on a Keploy branch — three entry
points (MCP from IDE, dashboard UI, `keploy upload test-set --branch
…`) all writing to the same branch overlay; `keploy cloud replay
--branch-name …` to validate locally before opening a PR.
- Wiring up the CI pipeline — `keploy cloud replay --create-branch
${{ github.head_ref }}` on PR open (with the 4-condition approval
gate explained), reviewer approval in the dashboard, and `keploy
cloud branch-merge --branch ${{ github.head_ref }}` on PR merge.
Full GitHub Actions snippets for both jobs.
Slotted into the K8s Proxy sidebar category between "K8s Record
Replay" and "DaemonSet & Auto-Replay", since it builds on the
record/replay basics and is a natural stepping stone toward the
deeper architecture / auto-replay content.
Only version-4.0.0 is updated.
Signed-off-by: Charan Kamarapu <kamarapucharan@gmail.com>
* docs(k8s-proxy): polish dev-workflow page — screenshots, MCP/API split, accurate flags
Iterations after first review:
- Step 1 "Create a Keploy branch": split into Option A (dashboard, with
screenshot) and Option B (MCP `create_branch` tool + underlying
`POST /client/v1/apps/{appId}/branches/ci` REST endpoint). Drops the
CLI `--create-branch` shortcut from this step — it still appears in
the CI snippet later where it's actually needed.
- Step 2 "Edit test cases or mocks": added a screenshot of the
dashboard recordings page so the dashboard path is concrete.
Reworded the MCP paragraph to point readers at the live API docs at
api.keploy.io/client/v1/docs (the OpenAPI surface the MCP tools are
auto-generated from) instead of an in-repo placeholder.
- Step 3 / CI snippets: corrected `--app <app-id>` to
`--app <namespace>.<deployment>` on every `keploy cloud replay`
example. The cloud-replay handler at pkg/service/cloud/cloud.go:367
rejects anything that isn't ns.dep with no UUID fallback. The
branch-merge example keeps `<app-id>` — it really does take a UUID
(the GraphQL `mergeBranch` mutation's `appId` argument).
- Step 3 (validate locally) + CI replay-on-PR snippet: dropped the
redundant `--replay-source latest-release`. latest-release is the
default (cmd/enterprise/cli/provider/cmd.go:903); passing it
explicitly is a no-op.
- CI Step 2 "Approve the test-data diff": added a screenshot of the
branch diff + approval page in the dashboard.
- Dropped the trailing "see DaemonSet & Auto-Replay" link from the
recap — that page is about eBPF capture and auto-replay
environments, not the branch overlay / approval gate; the link was
misleading.
All screenshots loaded via useBaseUrl() so the /docs/ baseUrl is
prepended automatically. Live PR preview verified in `npm run dev`.
Signed-off-by: Charan Kamarapu <kamarapucharan@gmail.com>
* docs(k8s-proxy): apply prettier to dev-workflow page
CI prettier action targets this file specifically and rejected on
list-indent + code-fence-indent (4-space indented nested items inside
list bullets, mostly under the create_branch and upload_recording
bullet bodies). prettier --write reflows them to 2-space and removes
the corresponding leading spaces on adjacent code fences. No prose
change — pure formatting.
The Vale doc-linter failures on the same PR are pre-existing on
origin/main (all errors are on python-microservices.md lines
2077-2539, which this PR does not touch).
Signed-off-by: Charan Kamarapu <kamarapucharan@gmail.com>
* docs(k8s-proxy): satisfy Vale (Google.EmDash + Vale.Spelling) on dev-workflow page
Two Vale rules in the docs repo's Google style pack flagged the new
page on top of the python-microservices noise (which is pre-existing
on main and unrelated):
- Google.EmDash — Google style writes em dashes with no surrounding
spaces (`word—word`, not `word — word`). 16 occurrences on this
page replaced via `perl -CSD -pe 's/ \\x{2014} /\\x{2014}/g'`.
- Vale.Spelling — "PR's" tripped the spell list. Expanded to "pull
request's" on the only occurrence (line 118).
No prose change beyond punctuation/spacing; prettier still passes.
Signed-off-by: Charan Kamarapu <kamarapucharan@gmail.com>
---------
Signed-off-by: Charan Kamarapu <kamarapucharan@gmail.com>1 parent be6f3ef commit db68457
5 files changed
Lines changed: 215 additions & 0 deletions
File tree
- static/img
- versioned_docs/version-4.0.0/quickstart
- versioned_sidebars
Loading
Loading
Loading
Lines changed: 214 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
| |||
0 commit comments