polaris icon indicating copy to clipboard operation
polaris copied to clipboard

Custom Check for Empty or Useless Values

Open neilchaudhuri opened this issue 3 years ago • 4 comments

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.

neilchaudhuri avatar Jun 03 '22 20:06 neilchaudhuri

I'm honestly not sure. Pinging @rbren

sudermanjr avatar Jun 03 '22 20:06 sudermanjr

🤔 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.

rbren avatar Jun 10 '22 21:06 rbren

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.

neilchaudhuri avatar Jun 10 '22 21:06 neilchaudhuri

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

rbren avatar Jul 25 '22 15:07 rbren