Skip to content

Commit

Permalink
feat: allow setting env vars for hydra-maester (#721)
Browse files Browse the repository at this point in the history
  • Loading branch information
ariep authored Dec 12, 2024
1 parent 5d489b7 commit f2d1b84
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions helm/charts/hydra-maester/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ A Helm chart for Kubernetes
| deployment.automountServiceAccountToken | bool | `true` | This applications connects to the k8s API and requires the permissions |
| deployment.dnsConfig | object | `{}` | Configure pod dnsConfig. |
| deployment.extraAnnotations | object | `{}` | Deployment level extra annotations |
| deployment.extraEnv | list | `[]` | Extra environment variables |
| deployment.extraLabels | object | `{}` | Deployment level extra labels |
| deployment.extraVolumeMounts | list | `[]` | |
| deployment.extraVolumes | list | `[]` | If you want to mount external volume |
Expand Down
4 changes: 4 additions & 0 deletions helm/charts/hydra-maester/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ spec:
{{- if .Values.deployment.extraVolumeMounts }}
{{- toYaml .Values.deployment.extraVolumeMounts | nindent 12 }}
{{- end }}
{{- if .Values.deployment.extraEnv }}
env:
{{- tpl (toYaml .Values.deployment.extraEnv) . | nindent 12 }}
{{- end }}
resources:
{{- toYaml .Values.deployment.resources | nindent 12 }}
terminationMessagePath: /dev/termination-log
Expand Down
3 changes: 3 additions & 0 deletions helm/charts/hydra-maester/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ deployment:
# cpu: 100m
# memory: 20Mi

# -- To set extra env vars for the container.
extraEnv: []

# -- If you want to mount external volume
extraVolumes: []
# - name: my-volume
Expand Down

0 comments on commit f2d1b84

Please sign in to comment.