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

feat(helm): add support for extraEnv variables in api, front, worker, events-worker, clock, and pdf deployments for dynamic environment configuration #74

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

electrosenpai
Copy link
Contributor

Description

This PR introduces the following changes:

  1. feat(helm): Support for extraEnv variables
    Added support for dynamic environment variables via the extraEnv section in the values.yaml for the following deployments:

    • api
    • front
    • worker
    • events-worker
    • clock
    • pdf
  2. fix(pvc): Resolved conditional issue in PVC template
    Fixed the logic error in the PersistentVolumeClaim template where multiple not conditions were incorrectly applied, causing template rendering issues. Now the PVC is correctly created when both s3.enabled and minio.enabled are set to false.

Motivation

These changes allow users to configure additional environment variables without directly modifying the deployment templates, providing greater flexibility. For example, it was previously impossible to enable the LAGO_DISABLE_WALLET_REFRESH environment variable, despite it being documented. To avoid this issue and to allow for the dynamic addition of new arguments in the future without causing breaking changes, this approach offers a more sustainable solution.

The PVC issue was also resolved to ensure that the persistent volume is only created under the correct conditions.

… events-worker, clock, and pdf deployments for dynamic environment configuration
templates/front-deployment.yaml Show resolved Hide resolved
@electrosenpai electrosenpai merged commit 44b6f40 into main Oct 3, 2024
1 check passed
@electrosenpai electrosenpai deleted the extra-vars branch October 29, 2024 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants