From b276eb8de3f52c5aa3f12ec7be79f13327d50b10 Mon Sep 17 00:00:00 2001 From: he2ss Date: Thu, 16 Nov 2023 18:09:58 +0100 Subject: [PATCH] Crowdsec/fix lapi config (#120) * fix LAPI config files --- charts/crowdsec/Chart.yaml | 2 +- charts/crowdsec/ci/crowdsec-values.yaml | 5 +++++ charts/crowdsec/templates/lapi-configmap.yaml | 7 +++---- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/charts/crowdsec/Chart.yaml b/charts/crowdsec/Chart.yaml index de6adb9..a748417 100644 --- a/charts/crowdsec/Chart.yaml +++ b/charts/crowdsec/Chart.yaml @@ -43,7 +43,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.9.9 +version: 0.9.10 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/crowdsec/ci/crowdsec-values.yaml b/charts/crowdsec/ci/crowdsec-values.yaml index 994ef96..0ba01b6 100644 --- a/charts/crowdsec/ci/crowdsec-values.yaml +++ b/charts/crowdsec/ci/crowdsec-values.yaml @@ -69,3 +69,8 @@ lapi: env: - name: DISABLE_ONLINE_API value: "true" + config: + console.yaml: | + share_manual_decisions: true + share_tainted: true + share_custom: true diff --git a/charts/crowdsec/templates/lapi-configmap.yaml b/charts/crowdsec/templates/lapi-configmap.yaml index 7db88a5..1d19a40 100644 --- a/charts/crowdsec/templates/lapi-configmap.yaml +++ b/charts/crowdsec/templates/lapi-configmap.yaml @@ -1,6 +1,5 @@ # vim: set ft=gotmpl: --- - {{- if index .Values.config "profiles.yaml" -}} apiVersion: v1 kind: ConfigMap @@ -10,8 +9,8 @@ data: profiles.yaml: | {{ printf "%+v" (index .Values.config "profiles.yaml") | indent 4 }} {{ end }} ---- {{- if index .Values.config "console.yaml" -}} +--- apiVersion: v1 kind: ConfigMap metadata: @@ -20,8 +19,8 @@ data: console.yaml: | {{ printf "%+v" (index .Values.config "console.yaml") | indent 4 }} {{ end }} ---- {{- if index .Values.config "capi_whitelists.yaml" -}} +--- apiVersion: v1 kind: ConfigMap metadata: @@ -30,8 +29,8 @@ data: capi_whitelists.yaml: | {{ printf "%+v" (index .Values.config "capi_whitelists.yaml") | indent 4 }} {{ end }} ---- {{ if (include "notificationsIsNotEmpty" .) }} +--- apiVersion: v1 kind: ConfigMap metadata: