Skip to content

Commit

Permalink
Add support for envFrom for LAPI (crowdsecurity#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
sipr-invivo authored Apr 4, 2024
1 parent 57858f2 commit d295964
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/crowdsec/templates/lapi-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ spec:
- name: crowdsec-lapi
image: "{{ .Values.image.repository | default "crowdsecurity/crowdsec" }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if .Values.lapi.envFrom }}
envFrom:
{{- toYaml .Values.lapi.envFrom | nindent 10 }}
{{- end }}
env:
{{- if .Values.tls.enabled }}
- name: LOCAL_API_URL
Expand Down
6 changes: 6 additions & 0 deletions charts/crowdsec/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@ lapi:
# by default disable the agent because it only needs the local API.
#- name: DISABLE_AGENT
# value: "true"
# Allows you to load environment variables from kubernetes secret or config map
envFrom: []
# - secretRef:
# name: env-secret
# - configMapRef:
# name: config-map
# -- Enable ingress lapi object
ingress:
enabled: false
Expand Down

0 comments on commit d295964

Please sign in to comment.