uselagoon / lagoon-linter

Linter for .lagoon.yml
Apache License 2.0
0 stars 2 forks source link

unquoted boolean breaks linter #5

Closed Schnitzel closed 3 years ago

Schnitzel commented 3 years ago

we see some projects that have a .lagoon.yml yaml with unquoted booleans, aka tls-acme: true instead of tls-acme: 'true'. While it's technically valid yaml and lagoon can deploy with it, the linter fails to load the .lagoon.yml and errors with:

lagoon-linter: error: couldn't unmarshal .lagoon.yml: error unmarshaling JSON: while decoding JSON: json: cannot unmarshal bool into Go struct field Environment.environments.routes of type string

It only affects a small percentage of projects and we are telling all customers about this. But it would be great if we can somehow catch this and fail with a message that there are unquoted booleans that need to be fixed