incubator/oauth-proxy Allow path to be configured (#2936)

* incubator/oauth-proxy Allow path to be configured

Allow path to be configured on the ingress. If one has a vhost that
needs to be shared with oauth proxy, then we need to be able to proxy
pass just /oauth2 to the proxy. Thus allowing it to be configured here.

* Update Chart version

* Fix variable inside range loop.
This commit is contained in:
Jesús Roncero
2017-12-17 21:04:35 -08:00
committed by k8s-ci-robot
parent 1bde9b4ac9
commit f7edc873f1
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: oauth-proxy
version: 0.1.0
version: 0.1.2
appVersion: 2.2
description: A reverse proxy that provides authentication with Google, Github or other providers
keywords:
+2 -1
View File
@@ -1,6 +1,7 @@
{{- if .Values.ingress.enabled -}}
{{- $serviceName := include "oauth-proxy.fullname" . -}}
{{- $servicePort := .Values.service.externalPort -}}
{{- $ingressPath := .Values.ingress.path -}}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
@@ -20,7 +21,7 @@ spec:
- host: {{ $host }}
http:
paths:
- path: /
- path: {{ $ingressPath }}
backend:
serviceName: {{ $serviceName }}
servicePort: {{ $servicePort }}
+1
View File
@@ -25,6 +25,7 @@ service:
ingress:
enabled: false
path: /
# Used to create an Ingress record.
# hosts:
# - chart-example.local