Document KHI job mode#709
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces documentation for running KHI in job mode. It adds a new guide, docs/en/setup-guide/job-mode.md, which details the required flags, command format, inspection values, and feature selection, and updates README.md to link to this new guide. There are no review comments, and I have no feedback to provide.
|
This is ready for review from my side. The remaining github-deploy-ondemand check appears to require project-side approval/run permissions; could someone take a look or trigger it when convenient? |
| --job-mode \ | ||
| --job-inspection-type gcp-gke \ | ||
| --job-inspection-features ALL \ | ||
| --job-inspection-values '{ |
There was a problem hiding this comment.
I think the most difficult part of this feature is building the --job-inspection-values parameter.
The current easiest way is using dev tool on browser to see what is sent from the frontend. It's a little hacky way but worth to be documented.
There was a problem hiding this comment.
Addressed in 18e401e. The guide now keeps the browser dev tools /run or /dryrun payload workflow, clarifies that set-form fields must be JSON arrays, and updates the GKE example to use the same field IDs/value shapes that job mode expects. I also added a table of extra fields required when optional GKE features are enabled.
| "cloud.google.com/common/input-location": "us-central1", | ||
| "cloud.google.com/common/input-end-time": "2026-01-15T10:00:00Z", | ||
| "cloud.google.com/common/input-duration": "2h", | ||
| "<inspection-specific-field-id>": "<value>" |
There was a problem hiding this comment.
It would be better if we can show the example workable job command with the full parameter.
The current example lacks of many parameters and user need to find what are missing. It'll be nicer if we can list keys required for actually running the job mode. Values for the parameters can be placeholder then.
There was a problem hiding this comment.
Also addressed in 18e401e. I replaced the ALL example with an explicit default GKE feature list and a payload that uses the full required field set for that selected feature set. The guide now also lists the extra field keys to include when optional GKE features are enabled or when ALL is used.
41a81bf to
0c9b9a5
Compare
|
Thanks, I updated the job mode doc in two places:
I kept the wording scoped because the exact required fields still depend on the selected inspection type and enabled features. |
|
The current example parameter list is still missing several fields. How about asking your codex to run the job to test? |
|
Thanks, I asked Codex to run the job-mode command and it found two concrete issues in the example. Fixed in
Validation performed locally:
|
18e401e to
5a2e347
Compare

Summary
Fixes #196
Tests
go test ./pkg/parametersgit diff --check