From 1e91d6af9d94803345cbbaff703000d5ea7d8c26 Mon Sep 17 00:00:00 2001 From: Pierluigi Lenoci Date: Wed, 28 Aug 2024 16:50:53 +0200 Subject: [PATCH] Added the ability to specify a command for the container --- helm/oauth2-proxy/Chart.yaml | 8 ++++---- helm/oauth2-proxy/templates/deployment.yaml | 3 +++ helm/oauth2-proxy/values.yaml | 1 + 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/helm/oauth2-proxy/Chart.yaml b/helm/oauth2-proxy/Chart.yaml index b60fb40..5761e92 100644 --- a/helm/oauth2-proxy/Chart.yaml +++ b/helm/oauth2-proxy/Chart.yaml @@ -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/ @@ -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 diff --git a/helm/oauth2-proxy/templates/deployment.yaml b/helm/oauth2-proxy/templates/deployment.yaml index a303dd6..cae3ccb 100644 --- a/helm/oauth2-proxy/templates/deployment.yaml +++ b/helm/oauth2-proxy/templates/deployment.yaml @@ -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 diff --git a/helm/oauth2-proxy/values.yaml b/helm/oauth2-proxy/values.yaml index d898743..c9ef103 100644 --- a/helm/oauth2-proxy/values.yaml +++ b/helm/oauth2-proxy/values.yaml @@ -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.