contrib: update config checklist docs

This commit is contained in:
Daniel Nephin 2020-12-21 17:08:42 -05:00
parent 78b02663e9
commit f8e739c58f
1 changed files with 3 additions and 3 deletions

View File

@ -33,9 +33,9 @@ There are four specific cases covered with increasing complexity:
`TestFullConfig` in `agent/config/runtime_test.go`, it should fail now, then
add the same random value to the expected struct in that test so it passes
again.
- [ ] Add the new field and it's default value to `TestSanitize` in the same
file. (Running the test first gives you a nice diff which can save working
out where etc.)
- [ ] Run `go test -run TestRuntimeConfig_Sanitize ./agent/config -update` to update
the expected value for `TestRuntimeConfig_Sanitize`. Look at `git diff` to
make sure the value changed as you expect.
- [ ] **If** your new config field needed some validation as it's only valid in
some cases or with some values (often true).
- [ ] Add validation to Validate in `agent/config/builder.go`.