UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Verified Commit 6d397945 authored by Micah Nagel's avatar Micah Nagel :moneybag:
Browse files

Handle merging things properly for monitoring

parent 19e8e121
No related branches found
No related tags found
1 merge request!2595Handle merging things properly for monitoring
Pipeline #1579860 passed
......@@ -447,7 +447,7 @@ prometheusOperator:
{{- range $prometheusConfig, $default := $defaults.prometheus }}
{{- $overlay := (dig "prometheus" $prometheusConfig dict $overlays) }}
# Only continue if an overlay matches a default constriant and hidden "skipOverlayMerge" is not set
{{- if and $overlay (not $overlay.skipOverlayMerge) }}
{{- if and $overlay (kindIs "map" $overlay) (not $overlay.skipOverlayMerge) }}
# Add any default additionalScrapeConfigs to overlay
{{- if and (dig "additionalScrapeConfigs" list $default) (dig "additionalScrapeConfigs" list $overlay) }}
......@@ -459,7 +459,7 @@ prometheusOperator:
{{- range $monitoringConfig, $default := $defaults }}
{{- $overlay := (dig $monitoringConfig dict $overlays) }}
# Only continue if an overlay matches a default constriant and hidden "skipOverlayMerge" is not set
{{- if and $overlay (not $overlay.skipOverlayMerge) }}
{{- if and $overlay (kindIs "map" $overlay) (not $overlay.skipOverlayMerge) }}
# Add any default extraSecretMounts to overlay
{{- if and (dig "extraSecretMounts" list $default) (dig "extraSecretMounts" list $overlay) }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment