Skip to content

Commit 518dc3c

Browse files
Merge pull request #152 from mkjpryor/feature/alpha-config-template
Allow alpha config to come from a template
2 parents a66a1f9 + 9ab7aa5 commit 518dc3c

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
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.12.1
2+
version: 6.13.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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ Parameter | Description | Default
107107
`alphaConfig.serverConfigData` | Arbitrary configuration data to append to the server section | `{}`
108108
`alphaConfig.metricsConfigData` | Arbitrary configuration data to append to the metrics section | `{}`
109109
`alphaConfig.configData` | Arbitrary configuration data to append | `{}`
110+
`alphaConfig.configFile` | Arbitrary configuration to append, treated as a Go template and rendered with the root context | `""`
110111
`alphaConfig.existingConfig` | existing Kubernetes configmap to use for the alpha configuration file. See [config template](https://github.com/oauth2-proxy/manifests/blob/master/helm/oauth2-proxy/templates/configmap-alpha.yaml) for the required values | `nil`
111112
`customLabels` | Custom labels to add into metadata | `{}` |
112113
`config.google.adminEmail` | user impersonated by the google service account | `""`

helm/oauth2-proxy/templates/configmap-alpha.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,8 @@ data:
2929
{{- if .Values.alphaConfig.configData }}
3030
{{- toYaml .Values.alphaConfig.configData | nindent 4 }}
3131
{{- end }}
32+
{{- if .Values.alphaConfig.configFile }}
33+
{{- tpl .Values.alphaConfig.configFile $ | nindent 4 }}
34+
{{- end }}
3235
{{- end }}
3336
{{- end }}

helm/oauth2-proxy/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ alphaConfig:
5858
metricsConfigData: {}
5959
# Arbitrary configuration data to append
6060
configData: {}
61+
# Arbitrary configuration to append
62+
# This is treated as a Go template and rendered with the root context
63+
configFile: ""
6164
# Use an existing config map (see configmap-alpha.yaml for required fields)
6265
existingConfig: ~
6366

0 commit comments

Comments
 (0)