Skip to content

Commit 46c56e2

Browse files
Merge pull request #138 from illrill/extra-containers
Add extraContainers: [] configuration option
2 parents 28c5260 + c635f3b commit 46c56e2

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

helm/oauth2-proxy/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: oauth2-proxy
2-
version: 6.9.1
2+
version: 6.10.0
33
apiVersion: v2
44
appVersion: 7.4.0
55
home: https://oauth2-proxy.github.io/oauth2-proxy/

helm/oauth2-proxy/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ Parameter | Description | Default
117117
`config.google.groups` | restrict logins to members of these google groups | `[]`
118118
`containerPort` | used to customise port on the deployment | `""`
119119
`extraArgs` | Extra arguments to give the binary. Either as a map with key:value pairs or as a list type, which allows to configure the same flag multiple times. (e.g. `["--allowed-role=CLIENT_ID:CLIENT_ROLE_NAME_A", "--allowed-role=CLIENT_ID:CLIENT_ROLE_NAME_B"]`). | `{}` or `[]`
120+
`extraContainers` | List of extra containers to be added to the pod | `[]`
120121
`extraEnv` | key:value list of extra environment variables to give the binary | `[]`
121122
`extraVolumes` | list of extra volumes | `[]`
122123
`extraVolumeMounts` | list of extra volumeMounts | `[]`
@@ -318,4 +319,4 @@ config:
318319
cookie_domains = [ ".domain.com", ".otherdomain.io" ]
319320
whitelist_domains = [ ".domain.com", ".otherdomain.io"]
320321
provider = "google"
321-
```
322+
```

helm/oauth2-proxy/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,9 @@ spec:
253253
{{- $securityContext := unset .Values.securityContext "enabled" }}
254254
securityContext:
255255
{{- toYaml $securityContext | nindent 10 }}
256+
{{- end }}
257+
{{- if .Values.extraContainers }}
258+
{{- toYaml .Values.extraContainers | nindent 6 }}
256259
{{- end }}
257260
volumes:
258261
{{- with .Values.config.google }}

helm/oauth2-proxy/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,11 @@ extraVolumeMounts: []
175175
# - mountPath: /etc/ssl/certs/
176176
# name: ca-bundle-cert
177177

178+
# Additional containers to be added to the pod.
179+
extraContainers: []
180+
# - name: my-sidecar
181+
# image: nginx:latest
182+
178183
priorityClassName: ""
179184

180185
# Host aliases, useful when working "on premise" where (public) DNS resolver does not know about my hosts.

0 commit comments

Comments
 (0)