Skip to content

Commit

Permalink
Add if checks
Browse files Browse the repository at this point in the history
  • Loading branch information
hkfgo committed Oct 25, 2024
1 parent 83d2f6f commit adbd40e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion promitor-agent-scraper/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,13 @@ data:
maxBatchSize: {{ .Values.azureMonitor.integration.metricsBatching.maxBatchSize }}
azureRegion: {{ .Values.azureMonitor.integration.metricsBatching.azureRegion }}
{{- end }}
useAzureMonitorSdk: {{ .Values.azureMonitor.integration.useAzureMonitorSdk | quote}}
{{- if hasKey .Values.azureMonitor.integration "useAzureMonitorSdk" }}
useAzureMonitorSdk: {{ .Values.azureMonitor.integration.useAzureMonitorSdk}}
{{- end }}
{{- if hasKey .Values.azureMonitor.integration "history" }}
history:
startingFromInHours: {{ .Values.azureMonitor.integration.history.startingFromInHours }}
{{- end }}
{{- end }}
{{- end }}
metrics-declaration.yaml: |-
Expand Down

0 comments on commit adbd40e

Please sign in to comment.