[bitnami/kubeapps] Allow passing extraEnvVars to authProxy (#7831)

This commit is contained in:
Mac Chaffee
2021-10-18 03:14:08 -04:00
committed by GitHub
parent 0a26eaafd6
commit 0e9eab78d7
4 changed files with 12 additions and 1 deletions

View File

@@ -33,4 +33,4 @@ maintainers:
name: kubeapps
sources:
- https://github.com/kubeapps/kubeapps
version: 7.5.7
version: 7.5.8

View File

@@ -409,6 +409,7 @@ Once you have installed Kubeapps follow the [Getting Started Guide](https://gith
| `authProxy.scope` | OAuth scope specification | `openid email groups` |
| `authProxy.emailDomain` | Allowed email domains | `*` |
| `authProxy.additionalFlags` | Additional flags for oauth2-proxy | `[]` |
| `authProxy.extraEnvVars` | Array with extra environment variables to add to the Auth Proxy container | `[]` |
| `authProxy.containerPort` | Auth Proxy HTTP container port | `3000` |
| `authProxy.containerSecurityContext.enabled` | Enabled Auth Proxy containers' Security Context | `true` |
| `authProxy.containerSecurityContext.runAsUser` | Set Auth Proxy container's Security Context runAsUser | `1001` |

View File

@@ -151,6 +151,9 @@ spec:
secretKeyRef:
name: {{ template "kubeapps.oauth2_proxy-secret.name" . }}
key: cookieSecret
{{- if .Values.authProxy.extraEnvVars }}
{{- include "common.tplvalues.render" (dict "value" .Values.authProxy.extraEnvVars "context" $) | nindent 12 }}
{{- end }}
ports:
- name: proxy
containerPort: {{ .Values.authProxy.containerPort }}

View File

@@ -1354,6 +1354,13 @@ authProxy:
## - --oidc-issuer-url=https://accounts.google.com # Only needed if provider is oidc
##
additionalFlags: []
## @param authProxy.extraEnvVars Array with extra environment variables to add to the Auth Proxy container
## e.g:
## extraEnvVars:
## - name: FOO
## value: "bar"
##
extraEnvVars: []
## @param authProxy.containerPort Auth Proxy HTTP container port
##
containerPort: 3000