Mismatch in prometheusRules mixin for lvmLocalPV
luisico opened this issue · 2 comments
luisico commented
As per the title, the mismatch is due to case difference in "lvmLocalPV" between these two files:
-
jsonnet/openebs-mixin/rules/prometheus-rules.libsonnet#L26
(lowercase):
-
jsonnet/openebs-mixin/rules/openebs/lvmlocalpv-rules.libsonnet#5
(mixed case):
This prevents compilation, as showed here:
RUNTIME ERROR: Field does not exist: lvmlocalpv
vendor/openebs-mixin/rules/prometheus-rules.libsonnet:26:113-175 object <anonymous>
vendor/openebs-mixin/mixin.libsonnet:9:20-62 object <anonymous>
vendor/kube-prometheus/lib/mixin.libsonnet:24:78-109
vendor/kube-prometheus/lib/mixin.libsonnet:26:19-20 object <anonymous>
During manifestation
Changing to mixcase in jsonnet/openebs-mixin/rules/prometheus-rules.libsonnet#L26
fixes the issue for me, i.e.
- ... + lvmLocalPV(prometheusRules._config).prometheusRules.lvmlocalpv + ...
+ ... + lvmLocalPV(prometheusRules._config).prometheusRules.lvmLocalPV + ...
Quarky9 commented
Ran into same issue. Above fixed it.