docs: 调整本地与 CI 验证边界
This commit is contained in:
@@ -105,9 +105,15 @@ make generate # Regenerate DeepCopy methods
|
||||
**After editing `*.go` files:**
|
||||
```
|
||||
make lint-fix # Auto-fix code style
|
||||
make test # Run unit tests
|
||||
make lint # Local verification; full tests run in PR CI
|
||||
```
|
||||
|
||||
Do not routinely run the full `make test` or Kind E2E suite during local agent
|
||||
iteration. Keep local feedback fast with generation checks and `make lint`; after the
|
||||
human approves opening the PR, rely on the configured self-hosted Gitea Actions jobs for
|
||||
the complete test suite. Run a focused local test only when it is needed to diagnose a
|
||||
specific failure or the user explicitly requests it.
|
||||
|
||||
## CLI Commands Cheat Sheet
|
||||
|
||||
### Create API (your own types)
|
||||
@@ -182,7 +188,8 @@ kubebuilder create webhook \
|
||||
## Testing & Development
|
||||
|
||||
```bash
|
||||
make test # Run unit tests (uses envtest: real K8s API + etcd)
|
||||
make lint # Default local verification
|
||||
make test # Full unit/envtest suite; normally run by PR CI
|
||||
make run # Run locally (uses current kubeconfig context)
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user