diff --git a/deploy/eck-stack/charts/eck-beats/templates/beats.yaml b/deploy/eck-stack/charts/eck-beats/templates/beats.yaml index ba5953acd0..e8e3e3d279 100644 --- a/deploy/eck-stack/charts/eck-beats/templates/beats.yaml +++ b/deploy/eck-stack/charts/eck-beats/templates/beats.yaml @@ -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 }}