operator-courier icon indicating copy to clipboard operation
operator-courier copied to clipboard

Improve how yaml paths are vertified

Open awgreene opened this issue 6 years ago • 0 comments

Multiple if statements are currently used to validate dictionary fields. I recommend creating a method that:

  1. Accepts a dict and a path (example path: metadata.annotations.alm-examples)
  2. Checks that the path exists within the dict
  3. Returns true/false

awgreene avatar Feb 14 '19 20:02 awgreene