Skip to content

Commit 5ee028c

Browse files
authored
Configurable cookie name (#10)
* Exported the cookie-name in the values * Add the new field cookieName in the values file * Removed the default value linked to helm release * Update values.yaml Fixing lint error.
1 parent 9c0ad1c commit 5ee028c

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: 3.2.8
2+
version: 3.2.9
33
apiVersion: v2
44
appVersion: 5.1.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
@@ -70,6 +70,7 @@ Parameter | Description | Default
7070
`config.existingSecret` | existing Kubernetes secret to use for OAuth2 credentials. See [secret template](https://github.com/helm/charts/blob/master/stable/oauth2-proxy/templates/secret.yaml) for the required values | `nil`
7171
`config.configFile` | custom [oauth2_proxy.cfg](https://github.com/pusher/oauth2_proxy/blob/master/contrib/oauth2_proxy.cfg.example) contents for settings not overridable via environment nor command line | `""`
7272
`config.existingConfig` | existing Kubernetes configmap to use for the configuration file. See [config template](https://github.com/helm/charts/blob/master/stable/oauth2-proxy/templates/configmap.yaml) for the required values | `nil`
73+
`config.cookieName` | The name of the cookie that oauth2-proxy will create. | `""`
7374
`config.google.adminEmail` | user impersonated by the google service account | `""`
7475
`config.google.serviceAccountJson` | google service account json contents | `""`
7576
`config.google.existingConfig` | existing Kubernetes configmap to use for the service account file. See [google secret template](https://github.com/helm/charts/blob/master/stable/oauth2-proxy/templates/google-secret.yaml) for the required values | `nil`

helm/oauth2-proxy/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ spec:
4848
imagePullPolicy: {{ .Values.image.pullPolicy }}
4949
args:
5050
- --http-address=0.0.0.0:4180
51+
{{- if .Values.config.cookieName }}
52+
- --cookie-name={{ .Values.config.cookieName }}
53+
{{- end }}
5154
{{- range $key, $value := .Values.extraArgs }}
5255
{{- if $value }}
5356
- --{{ $key }}={{ $value }}

helm/oauth2-proxy/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ config:
1010
# Example:
1111
# existingSecret: secret
1212
cookieSecret: "XXXXXXXXXX"
13+
# The name of the cookie that oauth2-proxy will create
14+
# If left empty, it will default to the release name
15+
cookieName: ""
1316
google: {}
1417
# adminEmail: xxxx
1518
# serviceAccountJson: xxxx

0 commit comments

Comments
 (0)