Skip to content

Commit

Permalink
Crowdsec/fix lapi config (#120)
Browse files Browse the repository at this point in the history
* fix LAPI config files
  • Loading branch information
he2ss authored Nov 16, 2023
1 parent 9819764 commit b276eb8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/crowdsec/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions charts/crowdsec/ci/crowdsec-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 3 additions & 4 deletions charts/crowdsec/templates/lapi-configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# vim: set ft=gotmpl:
---

{{- if index .Values.config "profiles.yaml" -}}
apiVersion: v1
kind: ConfigMap
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit b276eb8

Please sign in to comment.