Skip to content

Commit

Permalink
Making sure to install the datadog monitor CRD only if it is available
Browse files Browse the repository at this point in the history
  • Loading branch information
scohen-nd committed Nov 5, 2024
1 parent 5bdef99 commit 5d04770
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/datadog-monitors/templates/datadog-monitors.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Capabilities.APIVersions.Has "datadoghq.com/v1alpha1" -}}
{{- range $name, $monitor := .Values.monitors }}
---
apiVersion: datadoghq.com/v1alpha1
Expand All @@ -19,3 +20,4 @@ spec:
locked: false
{{- with $monitor.options }}{{ toYaml . | nindent 4 }}{{- end }}
{{- end }}
{{- end }}

0 comments on commit 5d04770

Please sign in to comment.