Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
[stable/oauth2-proxy] Add ingress extraPaths support
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Barrientos <[email protected]>
  • Loading branch information
mbarrien committed Jun 3, 2020
1 parent 88a5176 commit 1af9558
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/oauth2-proxy/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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/
Expand Down
1 change: 1 addition & 0 deletions stable/oauth2-proxy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
4 changes: 4 additions & 0 deletions stable/oauth2-proxy/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -21,6 +22,9 @@ spec:
- host: {{ $host }}
http:
paths:
{{ if $extraPaths }}
{{ toYaml $extraPaths | indent 10 }}
{{- end }}
- path: {{ $ingressPath }}
backend:
serviceName: {{ $serviceName }}
Expand Down
6 changes: 6 additions & 0 deletions stable/oauth2-proxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1af9558

Please sign in to comment.