Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate tljh specific config #962

Merged
merged 27 commits into from
Apr 4, 2024
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
d292457
Initial config setup
jrdnbradford Feb 3, 2024
78d4b7f
Test config setup
jrdnbradford Feb 3, 2024
fb01dea
Working schema path
jrdnbradford Feb 3, 2024
ef5c6c5
`print` human readable error message
jrdnbradford Feb 3, 2024
929536d
Run `pre-commit` hooks
jrdnbradford Feb 3, 2024
5a0de13
Do not allow `additionalProperties` for `Users`
jrdnbradford Feb 3, 2024
166eba6
Switch from JSON to py
jrdnbradford Feb 3, 2024
fa36365
Update schema based on values in `configurer.py`
jrdnbradford Feb 3, 2024
d0c9aa2
Remove `TLS` required properties
jrdnbradford Feb 3, 2024
4912cff
Fix `parse_value`
jrdnbradford Feb 3, 2024
9060267
Add `LetsEncrypt.staging`; run `pre-commit`
jrdnbradford Feb 3, 2024
1f7d6d1
Add doc string for `validate_config`
jrdnbradford Feb 5, 2024
48fe440
Add `--[no-]validation` flag for `tljh-config`
jrdnbradford Mar 20, 2024
743f729
Update `set_config_value` tests
jrdnbradford Mar 20, 2024
46e4045
Update `test_proxy` tests
jrdnbradford Mar 20, 2024
f921acc
Bump `ubuntu` image to `22.04`
jrdnbradford Mar 20, 2024
4ddd798
Add docstring from `config_schema.py`
jrdnbradford Mar 27, 2024
196208a
Remove `argparse.BooleanOptionalAction` for Python 3.8 compatibility
jrdnbradford Apr 3, 2024
51f8470
Fix unit tests with `pip`
jrdnbradford Apr 3, 2024
c578a7b
Update `step` `name`
jrdnbradford Apr 3, 2024
67dd3c8
Update tljh/config.py
jrdnbradford Apr 3, 2024
b94a281
Update tljh/config.py
jrdnbradford Apr 3, 2024
5ae31ce
Update tljh/config.py
jrdnbradford Apr 3, 2024
7474b87
Remove unneeded `validate` code
jrdnbradford Apr 3, 2024
9bcfa70
Update tljh/config.py
jrdnbradford Apr 3, 2024
38a01e8
Use default `true` for `validate`
jrdnbradford Apr 3, 2024
5469e21
Fix removal of `https.enabled`
jrdnbradford Apr 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove argparse.BooleanOptionalAction for Python 3.8 compatibility
jrdnbradford committed Apr 3, 2024
commit 196208ae58bf83b4c400d549023d8f936eece5b1
12 changes: 9 additions & 3 deletions tljh/config.py
Original file line number Diff line number Diff line change
@@ -356,11 +356,17 @@ def main(argv=None):
argparser.add_argument(
"--config-path", default=CONFIG_FILE, help="Path to TLJH config.yaml file"
)

argparser.add_argument(
"--validate", action="store_true", help="Validate the TLJH config"
)
argparser.add_argument(
"--validate",
action=argparse.BooleanOptionalAction,
help="Validate the TLJH config",
"--no-validate",
dest="validate",
action="store_false",
help="Do not validate the TLJH config",
)
argparser.set_defaults(validate=True)

subparsers = argparser.add_subparsers(dest="action")