config-lint icon indicating copy to clipboard operation
config-lint copied to clipboard

Allow comparison of multiple values

Open fliphess opened this issue 4 years ago • 0 comments

Hi!

This is a feature request:

I'd love to be able to make a comparison between multiple keys in a kubernetes file. For example: ensure that multiple values are equal or use jmespath in both key and values:

  assertions:
  - key: spec.values[].image.tag
    op: eq
    value_from: 
      key: spec.values.mainVersion

or

  assertions:
  - key: spec.values.somevalue
    op: eq
    value_from: 
      key: spec.values.some_other_value

fliphess avatar Oct 31 '20 23:10 fliphess