kestra-io / helm-charts

Apache License 2.0
37 stars 26 forks source link

Allow to set JAVA_OPTS on specific deployment #34

Closed max-r-clever closed 6 months ago

max-r-clever commented 7 months ago

Hi !

Description

We aim to configure -XX:MaxRAMPercentage=50.0 specifically on the worker deployments within our environment. However, we encounter a challenge as JAVA_OPTS have been globally set across all deployments through the extraEnv configuration, which includes a specific setting for logback configuration file path.

Current Configuration

Currently, JAVA_OPTS are globally set for all deployments as follows:

extraEnv:
  - name: JAVA_OPTS
    value: "-Dlogback.configurationFile=file:/app/log-format/logback.xml"

Issue

We need to apply -XX:MaxRAMPercentage=50.0 to the workers to better manage their JVM memory usage. However, we want to avoid altering the existing JAVA_OPTS for other deployments, which could lead to unintended changes in their configurations, especially concerning logging.

Requested Feature/Enhancement

The ability to append or set specific JAVA_OPTS for individual deployments without impacting the global settings defined in extraEnv. This feature should allow us to: