Skip to content

Commit

Permalink
Merge pull request #230 from pierluigilenoci/added_command
Browse files Browse the repository at this point in the history
feat: added the ability to specify a command for the container
  • Loading branch information
pierluigilenoci authored Aug 28, 2024
2 parents e0b756b + a509ffd commit 8a7f2c1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
8 changes: 4 additions & 4 deletions helm/oauth2-proxy/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: oauth2-proxy
version: 7.7.12
version: 7.7.13
apiVersion: v2
appVersion: 7.6.0
home: https://oauth2-proxy.github.io/oauth2-proxy/
Expand Down Expand Up @@ -34,8 +34,8 @@ maintainers:
kubeVersion: ">=1.9.0-0"
annotations:
artifacthub.io/changes: |
- kind: fixed
description: Updated the Redis chart to the latest version
- kind: added
description: Added the ability to specify a command for the container.
links:
- name: Github PR
url: https://github.com/oauth2-proxy/manifests/pull/223
url: https://github.com/oauth2-proxy/manifests/pull/230
1 change: 1 addition & 0 deletions helm/oauth2-proxy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ The following table lists the configurable parameters of the oauth2-proxy chart
| `htpasswdFile.existingSecret` | existing Kubernetes secret to use for OAuth2 htpasswd file | `""` |
| `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` |
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `image.command` | Define command to be executed by grafana container at startup | `[]` |
| `image.repository` | Image repository | `quay.io/oauth2-proxy/oauth2-proxy` |
| `image.tag` | Image tag | `""` (defaults to appVersion) |
| `imagePullSecrets` | Specify image pull secrets | `nil` (does not add image pull secrets to deployed pods) |
Expand Down
6 changes: 6 additions & 0 deletions helm/oauth2-proxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ spec:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ include "oauth2-proxy.version" . }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if .Values.image.command }}
command:
{{- range .Values.image.command }}
- {{ . | quote }}
{{- end }}
{{- end }}
args:
{{- if .Values.alphaConfig.enabled }}
- --alpha-config=/etc/oauth2_proxy/oauth2_proxy.yml
Expand Down
1 change: 1 addition & 0 deletions helm/oauth2-proxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ image:
# appVersion is used by default
tag: ""
pullPolicy: "IfNotPresent"
command: []

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

0 comments on commit 8a7f2c1

Please sign in to comment.