From 3f27de92ab4d1e8232de158aa8c376e083e71b69 Mon Sep 17 00:00:00 2001 From: Michael Montgomery Date: Thu, 1 Feb 2024 10:16:10 -0600 Subject: [PATCH] Fix having multiple `type` keys in eck-beats chart. (#7523) * Fix multiple `type` keys in eck-beats chart. --------- Signed-off-by: Michael Montgomery (cherry picked from commit 91d66392368d546cfacf9d67f5bcebbb55bdc5cd) --- deploy/eck-stack/charts/eck-beats/templates/beats.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }}