Skip to content

Commit

Permalink
Fix having multiple type keys in eck-beats chart. (elastic#7523)
Browse files Browse the repository at this point in the history
* Fix multiple `type` keys in eck-beats chart.
---------
Signed-off-by: Michael Montgomery <mmontg1@gmail.com>
  • Loading branch information
naemono committed Feb 1, 2024
1 parent 23ee2ee commit 91d6639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/eck-stack/charts/eck-beats/templates/beats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ metadata:
{{- end }}
spec:
version: {{ required "A Beat version is required" .Values.version }}
type: {{ required "A Beat type is required" .Values.spec.type }}
{{- if and (not (hasKey .Values.spec "daemonSet")) (not (hasKey .Values.spec "deployment")) }}
{{ fail "At least one of daemonSet or deployment is required for a functional Beat" }}
{{- end }}
{{- if not .Values.spec.type }}{{ fail "A Beat type is required" }}{{- end }}
{{- toYaml .Values.spec | nindent 2 }}

0 comments on commit 91d6639

Please sign in to comment.