FUSAKLA / promruval

Tool to validate the Prometheus rules metadata and expression properties to match requirements and constrains of the particular Prometheus cluster setup.
Apache License 2.0
131 stars 8 forks source link

Fus fix interval params validation #51

Closed FUSAKLA closed 7 months ago

FUSAKLA commented 7 months ago

Fixes error in validation of the hasAllowedSourceTenants params if the maximum was not set

default value of the maximum is now set first before the validation

Also change the time.Duration to model.Duration which handles better high durations and its formatting