-
Notifications
You must be signed in to change notification settings - Fork 2
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
Check production_routes, warn if environment is not an environment #9
base: main
Are you sure you want to change the base?
Conversation
a1a9c19
to
84e77cc
Compare
…ts that arent valid
84e77cc
to
a4154f6
Compare
3c7ff12
to
0ad6173
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This meets the objectives:
- better handling of non-conformant (but still Lagoon-valid) YAML
- handling of annotations on Active/Standby routes
- More targetted error messages
- Only failing on actual policy violations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed on Slack, this has a couple of issues with validating routes.
The "hard-fail" behaviour that this PR fixes can be split out if required, but I think we need a bit more discussion on what the best thing to do here is.
This is just an idea on being able to check if configuration of an environment is actually able to unmarshal into an environment.
@tobybellwood Since
.lagoon.yml
has so many things that look like they could break, but actually pass in a build, it will be hard to capture every little edge case until we properly implement an actual spec for it. Which we should look at doing sooner rather than later.closes #7, closes #8