UNCLASSIFIED - NO CUI

ServiceMonitor value lookup is not consistent

When both monitoring + init are enabled but serviceMonitor.scheme is not altered from the default, nor filled in via BigBang's mTLS metrics, the chart fails to template.

Inside the chart/templates/init/metrics/servicemonitor.yaml file there is reference of monitoring.serviceMonitor but does not exist in chart/values.yaml. Also in the BigBang passthrough values for Twistlock there is mention of serviceMonitor.enabled which does not control any templates in the chart nor exist in chart/values.yaml.

We'll need to clean up these values, decide on if we want a top level serviceMonitor value or it to be nested under monitoring and ensure all relevant values are present and then looking up the correct value in that location.

Edited by James Causey