Skip to content

Commit 7aea1c7

Browse files
Improved the template and added the parameter in the README
1 parent 005456f commit 7aea1c7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

helm/oauth2-proxy/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ The following table lists the configurable parameters of the oauth2-proxy chart
147147
| `htpasswdFile.existingSecret` | existing Kubernetes secret to use for OAuth2 htpasswd file | `""` |
148148
| `httpScheme` | `http` or `https`. `name` used for the port on the deployment. `httpGet` port `name` and `scheme` used for `liveness`- and `readinessProbes`. `name` and `targetPort` used for the service. | `http` |
149149
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
150+
| `image.command` | Define command to be executed by grafana container at startup | `[]` |
150151
| `image.repository` | Image repository | `quay.io/oauth2-proxy/oauth2-proxy` |
151152
| `image.tag` | Image tag | `""` (defaults to appVersion) |
152153
| `imagePullSecrets` | Specify image pull secrets | `nil` (does not add image pull secrets to deployed pods) |

helm/oauth2-proxy/templates/deployment.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,10 @@ spec:
105105
image: "{{ .Values.image.repository }}:{{ include "oauth2-proxy.version" . }}"
106106
imagePullPolicy: {{ .Values.image.pullPolicy }}
107107
{{- if .Values.image.command }}
108-
command: {{ .Values.image.command | toYaml }}
108+
command:
109+
{{- range .Values.image.command }}
110+
- {{ . | quote }}
111+
{{- end }}
109112
{{- end }}
110113
args:
111114
{{- if .Values.alphaConfig.enabled }}

0 commit comments

Comments
 (0)