replicatedhq / replicated-lint

YAML linting tools for Replicated applications
MIT License
8 stars 13 forks source link

allow multidoc yaml and expose document count to predicates #183

Open laverya opened 5 years ago

laverya commented 5 years ago
dexhorthy commented 5 years ago

Stepping up a level -- part of the reason we made it easy to write new rules was so that clients that had more context (e.g. scheduler, features enabled, external registry tags) could bake that context into additional rules outside the core ruleset at linting time.

Rather than "add more context/variables onto the linter object so it can do deeper evaluations" why not have the client, e.g. vendor web, inject two or three additional rules based on it's understanding of the world.

In the grand scheme of things, clients should describe policy, and the linter should just enforce it. The fact that the core replicated YAML ruleset lives in this repo feels like a side effect of how things were built/designed on the fly during rules implementation. Ideally they could all move to projects

dexhorthy commented 5 years ago

Wrong button whoops, didn't mean to close