jenkinsci / helm-charts

Jenkins helm charts
https://artifacthub.io/packages/helm/jenkinsci/jenkins
Apache License 2.0
550 stars 873 forks source link

Add capability to include custom volume mounts on config reload container #1139

Open jesrig opened 3 days ago

jesrig commented 3 days ago

Is your feature request related to a problem? Please describe

The helm chart currently allows one to a) add additional containers and b) additional volume mounts with .Values.controller.sidecars.additionalSidecarContainers and .Values.persistence.volumes respectively. This allows the ability to create a Grafana Alloy sidecar container, configure the main jenkins container to log to a file in a mounted folder, and share this folder with Grafana Alloy for scraping (and filtering, etc).

At this moment, the config reload container does not have the ability to add additional volume mounts.

Describe the solution you'd like

Update the jenkins.configReloadContainer helper function to add the ability to add custom volume mounts into the container.

Additionally, provide some defaults for setting kiwigrid/k8s-sidecar LOG_CONFIG environment variable (the file path to this the log file) and the contents of the log config file itself (to override the default - https://github.com/kiwigrid/k8s-sidecar/blob/master/src/logger.py#L69)

Describe alternatives you've considered

No response

Additional context

No response