robjuz / helm-charts

https://robjuz.github.io/helm-charts/index.yaml
34 stars 30 forks source link

[kimai2] configurationFromSecret specify secret name #71

Closed jonasgroenke closed 2 months ago

jonasgroenke commented 7 months ago

Hey, is it possible to add a variable for the config secret name? Currently, it always uses the fullname of the chart. I'm deploying the chart with flux and kustomize and it's very complicated to specify the name for the secret because kustomize always applies a name suffix, which is totally fine for all other resources.

https://github.com/robjuz/helm-charts/blob/master/charts/kimai2/templates/deployment.yaml#L214

Something like this. If the secret name is not set, we can still use the fullname as a default for backward compatibility.

configurationFromSecret:
    enabled: true
    secretName: myConfigSecret

If you want, I can also create a pull request.

Kind regards