polaris
polaris copied to clipboard
Custom Check for Empty or Useless Values
Discussed in https://github.com/FairwindsOps/polaris/discussions/774
Originally posted by neilchaudhuri June 2, 2022 Is it possible to use Polaris to check for empty or useless values like "tbd" for any YAML entry regardless of the object in context? Thanks.
I'm honestly not sure. Pinging @rbren
🤔 are you looking to run this check against all resources in the cluster? We don't currently have a way to do that. I'm not sure I'd recommend it - it would be very resource intensive.
To the extent possible or realistic, yes. Right now our primary problem is we have a lot of environment-based config where teams haven't populated required values, or populated them with nonsense placeholders, and there is no way to know until automation tries to deploy services and fails.
I am looking for a way to shift that failure left and break builds or whatever else much sooner to shorten the feedback loop.
Any alternatives you consider more viable are appreciated.
I think the best workaround is to create specific checks for each of the tbd fields. Not sure how many you're working against though