diff --git a/stable/oauth2-proxy/Chart.yaml b/stable/oauth2-proxy/Chart.yaml index bdc7833a2ff6..899700e4e9df 100644 --- a/stable/oauth2-proxy/Chart.yaml +++ b/stable/oauth2-proxy/Chart.yaml @@ -1,5 +1,5 @@ name: oauth2-proxy -version: 3.1.0 +version: 3.2.0 apiVersion: v1 appVersion: 5.1.0 home: https://pusher.github.io/oauth2_proxy/ diff --git a/stable/oauth2-proxy/README.md b/stable/oauth2-proxy/README.md index f244cce86a66..b6fe0c5e6d11 100644 --- a/stable/oauth2-proxy/README.md +++ b/stable/oauth2-proxy/README.md @@ -84,6 +84,7 @@ Parameter | Description | Default `imagePullSecrets` | Specify image pull secrets | `nil` (does not add image pull secrets to deployed pods) `ingress.enabled` | Enable Ingress | `false` `ingress.path` | Ingress accepted path | `/` +`ingress.extraPaths` | Ingress extra paths to prepend to every host configuration. Useful when configuring [custom actions with AWS ALB Ingress Controller](https://kubernetes-sigs.github.io/aws-alb-ingress-controller/guide/ingress/annotation/#actions). | `[]` `ingress.annotations` | Ingress annotations | `nil` `ingress.hosts` | Ingress accepted hostnames | `nil` `ingress.tls` | Ingress TLS configuration | `nil` diff --git a/stable/oauth2-proxy/templates/ingress.yaml b/stable/oauth2-proxy/templates/ingress.yaml index a5a53482a5b0..12ac3e090c9d 100644 --- a/stable/oauth2-proxy/templates/ingress.yaml +++ b/stable/oauth2-proxy/templates/ingress.yaml @@ -2,6 +2,7 @@ {{- $serviceName := include "oauth2-proxy.fullname" . -}} {{- $servicePort := .Values.service.port -}} {{- $ingressPath := .Values.ingress.path -}} +{{- $extraPaths := .Values.ingress.extraPaths -}} apiVersion: extensions/v1beta1 kind: Ingress metadata: @@ -21,6 +22,9 @@ spec: - host: {{ $host }} http: paths: +{{ if $extraPaths }} +{{ toYaml $extraPaths | indent 10 }} +{{- end }} - path: {{ $ingressPath }} backend: serviceName: {{ $serviceName }} diff --git a/stable/oauth2-proxy/values.yaml b/stable/oauth2-proxy/values.yaml index 852d37b96f0a..1268ea9f05cb 100644 --- a/stable/oauth2-proxy/values.yaml +++ b/stable/oauth2-proxy/values.yaml @@ -85,6 +85,12 @@ ingress: # Used to create an Ingress record. # hosts: # - chart-example.local + # Extra paths to prepend to every host configuration. This is useful when working with annotation based services. + # extraPaths: + # - path: /* + # backend: + # serviceName: ssl-redirect + # servicePort: use-annotation # annotations: # kubernetes.io/ingress.class: nginx # kubernetes.io/tls-acme: "true"