diff --git a/Chart.yaml b/Chart.yaml index d9a81e9..1779784 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: gitea description: Gitea Helm chart for Kubernetes type: application -version: 1.4.4 +version: 1.4.5 appVersion: 1.12.4 icon: https://docs.gitea.io/images/gitea.png diff --git a/README.md b/README.md index fa53a91..c290c00 100644 --- a/README.md +++ b/README.md @@ -182,6 +182,7 @@ Like the admin user the ldap settings can be updated but also disabled or delete | Parameter | Description | Default | |---------------------|-----------------------------------|------------------------------| |statefulset.terminationGracePeriodSeconds| Image to start for this pod | gitea/gitea | +|statefulset.env | Additional environment variables to pass to containers | [] | ### Image diff --git a/templates/gitea/statefulset.yaml b/templates/gitea/statefulset.yaml index 4f260be..31001a9 100644 --- a/templates/gitea/statefulset.yaml +++ b/templates/gitea/statefulset.yaml @@ -87,6 +87,10 @@ spec: value: {{ .Values.gitea.config.server.SSH_LISTEN_PORT | quote }} - name: SSH_PORT value: {{ .Values.gitea.config.server.SSH_PORT | quote }} + {{- range .Values.statefulset.env }} + - name: {{ .name | quote | nospace }} + value: {{ .value | quote }} + {{- end }} ports: - name: ssh containerPort: {{ .Values.gitea.config.server.SSH_LISTEN_PORT }} diff --git a/values.yaml b/values.yaml index 6cc85ce..dcd1219 100644 --- a/values.yaml +++ b/values.yaml @@ -55,6 +55,9 @@ tolerations: [] affinity: {} statefulset: + env: [] + # - name: VARIABLE + # value: my-value terminationGracePeriodSeconds: 60 persistence: