Skip to content
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

Add values to add extraVolumes to lapi and agent #188

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

erwanval
Copy link
Contributor

Add values to add extraVolumes and extraVolumeMounts to lapi and agent pods.
I only need lapi.extraVolumes for an initContainer, but I figured it's easy to add these for both the agent and lapi, which could come handy for someone else.

Tested with the following values:

agent:
  acquisition:
    - namespace: ingress-nginx
      podName: ingress-nginx-controller-*
      program: nginx
  extraVolumes:
    - name: agent-vol
      configMap:
        name: custom-agent-cm
  extraVolumeMounts:
    - name: agent-vol
      mountPath: /tmp/agent-vol

lapi:
  # Set persistence to false to test the condition adding volumes and volumeMounts (these are the only volumes and volumeMounts for lapi with default values)
  persistentVolume:
    data:
      enabled: false
    config:
      enabled: false
  extraVolumes:
    - name: lapi-vol
      configMap:
        name: custom-lapi-cm
  extraVolumeMounts:
    - name: lapi-vol
      mountPath: /tmp/lapi-vol

/kind enhancement
/area configuration

@he2ss he2ss merged commit ba15273 into crowdsecurity:main Sep 3, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants