Skip to content

Commit 8a7f2c1

Browse files
Merge pull request #230 from pierluigilenoci/added_command
feat: added the ability to specify a command for the container
2 parents e0b756b + a509ffd commit 8a7f2c1

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

helm/oauth2-proxy/Chart.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: oauth2-proxy
2-
version: 7.7.12
2+
version: 7.7.13
33
apiVersion: v2
44
appVersion: 7.6.0
55
home: https://oauth2-proxy.github.io/oauth2-proxy/
@@ -34,8 +34,8 @@ maintainers:
3434
kubeVersion: ">=1.9.0-0"
3535
annotations:
3636
artifacthub.io/changes: |
37-
- kind: fixed
38-
description: Updated the Redis chart to the latest version
37+
- kind: added
38+
description: Added the ability to specify a command for the container.
3939
links:
4040
- name: Github PR
41-
url: https://github.com/oauth2-proxy/manifests/pull/223
41+
url: https://github.com/oauth2-proxy/manifests/pull/230

helm/oauth2-proxy/README.md

+1
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

+6
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ spec:
104104
- name: {{ .Chart.Name }}
105105
image: "{{ .Values.image.repository }}:{{ include "oauth2-proxy.version" . }}"
106106
imagePullPolicy: {{ .Values.image.pullPolicy }}
107+
{{- if .Values.image.command }}
108+
command:
109+
{{- range .Values.image.command }}
110+
- {{ . | quote }}
111+
{{- end }}
112+
{{- end }}
107113
args:
108114
{{- if .Values.alphaConfig.enabled }}
109115
- --alpha-config=/etc/oauth2_proxy/oauth2_proxy.yml

helm/oauth2-proxy/values.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ image:
7878
# appVersion is used by default
7979
tag: ""
8080
pullPolicy: "IfNotPresent"
81+
command: []
8182

8283
# Optionally specify an array of imagePullSecrets.
8384
# Secrets must be manually created in the namespace.

0 commit comments

Comments
 (0)