Skip to content

Falcosidekick - missing configmap when externalredis is enabled #856

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Aliloya-git opened this issue Mar 25, 2025 · 0 comments · Fixed by #857
Closed

Falcosidekick - missing configmap when externalredis is enabled #856

Aliloya-git opened this issue Mar 25, 2025 · 0 comments · Fixed by #857
Labels
kind/bug Something isn't working

Comments

@Aliloya-git
Copy link
Contributor

Aliloya-git commented Mar 25, 2025

Describe the bug

I am trying to set up falco+falcosidekick with web-ui and externalRedis enabled.

In deployment-ui, the initContainer wait-redis is expecting the volumeMount with the volume scripts LINK.
This volume is of type configMap and should be available under configmap-ui LINK. This is always the case (for both cases where either redis or externalRedis is enabled).
However, we see that this configMap will be missing in the case of externalRedis bevause .Values.webui.redis.enabled is required to be true LINK.

This issue is failing the release/deployment with the following event:

Image

Suggested fix
Remove the second condition from the first condition in configmap-ui as follows

--- a/charts/falcosidekick/templates/configmap-ui.yaml
+++ b/charts/falcosidekick/templates/configmap-ui.yaml
@@ -1,4 +1,4 @@
-{{- if and (.Values.webui.enabled) (.Values.webui.redis.enabled) -}}
+{{- if .Values.webui.enabled -}}
 ---
 apiVersion: v1
 kind: ConfigMap

How to reproduce it
Install Falco with the following values file:

falcosidekick:
    enabled: true
    webui:
        enabled: true
        redis:
            enabled: false
        externalRedis:
            enabled: true
            url: URL
            password: PASSWORD

Expected behaviour

I expect falco deployment (with falcosidekick-webui+externalredis) to be successful.

Environment

  • Falco version:
    Falco version: 0.40.0 (x86_64)
  • Installation method:
    helm install falco -f values.yml --namespace falco --create-namespace falcosecurity/falco
@Aliloya-git Aliloya-git added the kind/bug Something isn't working label Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant