DependencyTrack / helm-charts

Helm Charts for Dependency-Track
https://dependencytrack.org
Apache License 2.0
13 stars 14 forks source link

Enhancement: Convert `apiServer.extraEnv` from Object to List for Agile Environment Variable Definitions #82

Closed SergK closed 3 weeks ago

SergK commented 3 weeks ago

Is your feature request related to a problem? Please describe. Currently, apiServer.extraEnv is defined as an object, which limits the flexibility in defining environment variables, particularly when sourcing values from ConfigMaps or Secrets with custom keys.

Describe the solution you'd like I propose changing apiServer.extraEnv from an object to a list. This enhancement would allow for a more agile approach when defining environment variables, especially when incorporating values from ConfigMaps or Secrets. An example configuration could look like this:

extraEnv:
  - name: ALPINE_DATABASE_PASSWORD
    valueFrom:
      secretKeyRef:
        name: dependencytrack
        key: pgpassword

This change enables users to define environment variables in a more flexible and customizable manner, improving the overall usability of the helm chart.

Describe alternatives you've considered N/A - The main goal is to enhance flexibility and usability by enabling environment variable definitions from various sources.

Additional context The proposed change would significantly enhance the user experience by providing the flexibility to define environment variables from a variety of sources, such as ConfigMaps or Secrets with custom keys.