Skip to content

Commit

Permalink
Added the ability to specify a command for the container
Browse files Browse the repository at this point in the history
  • Loading branch information
pierluigilenoci committed Aug 28, 2024
1 parent 1daccb7 commit 1e91d6a
Show file tree
Hide file tree
Showing 3 changed files with 8 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.11
version: 7.7.12
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/224
3 changes: 3 additions & 0 deletions helm/oauth2-proxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ spec:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ include "oauth2-proxy.version" . }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if .Values.image.command }}
command: {{ .Values.image.command | toYaml }}
{{- 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 1e91d6a

Please sign in to comment.