passbolt / charts-passbolt

Helm charts to run Passbolt on Kubernetes. No strings attached charts to run the open source password manager for teams!
https://passbolt.com
GNU Affero General Public License v3.0
40 stars 27 forks source link

Custom podLabels for deployment and cronjob #40

Closed jmueller42 closed 11 months ago

jmueller42 commented 11 months ago

First of all, thanks for this chart.

It would be great if i could define custom labels for the pods. In our environments we have restrictive networkpolicies so i would need to add several labels to passbolt in order to allow communication to redis, mariadb,from the ingress and between the pods of the "depl-srv" deployment.

I would suggest adding the following: values.yaml

app:
   ...
   podLabels: {}
...
cronJobEmail:
  podLabels: {}

my.values.yaml

app:
  ...
  podLabels:
    labelA: valueA
    labelB: valueB
    ...
...
cronJobEmail:
  podLabels:
    labelC: valueC

This would make the chart more flexible for different environments.

Tecnobutrul commented 11 months ago

Thank you for your contribution. We added a new 'extraPodLabels' under app, cronJobEmail, and jobCreateGpgKeys values to allow you to inject new labels on those pods.

https://github.com/passbolt/charts-passbolt/blob/53149bce491ad0d126119b3db26c3dd98675d92d/values.yaml#L126