fix: dot context on ingress (#796)

Signed-off-by: Waldemar Faist <cubic@coldice.net>
This commit is contained in:
CuBiC 2021-04-16 11:37:25 +02:00 committed by GitHub
parent 4976fa0801
commit 64bc4e2f6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 6 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
name: traefik-forward-auth name: traefik-forward-auth
description: A minimal forward authentication service that provides OAuth/SSO login and authentication for the traefik reverse proxy/load balancer description: A minimal forward authentication service that provides OAuth/SSO login and authentication for the traefik reverse proxy/load balancer
type: application type: application
version: 1.0.9 version: 1.0.10
appVersion: 2.2.0 appVersion: 2.2.0
keywords: keywords:
- traefik - traefik

View File

@ -1,6 +1,6 @@
# traefik-forward-auth # traefik-forward-auth
![Version: 1.0.8](https://img.shields.io/badge/Version-1.0.8-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.2.0](https://img.shields.io/badge/AppVersion-2.2.0-informational?style=flat-square) ![Version: 1.0.10](https://img.shields.io/badge/Version-1.0.10-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.2.0](https://img.shields.io/badge/AppVersion-2.2.0-informational?style=flat-square)
A minimal forward authentication service that provides OAuth/SSO login and authentication for the traefik reverse proxy/load balancer A minimal forward authentication service that provides OAuth/SSO login and authentication for the traefik reverse proxy/load balancer
@ -177,4 +177,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Join our [Discord](https://discord.gg/sTMX7Vh) community - Join our [Discord](https://discord.gg/sTMX7Vh) community
---------------------------------------------- ----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.5.0](https://github.com/norwoodj/helm-docs/releases/v1.5.0) Autogenerated from chart metadata using [helm-docs v1.5.0](https://github.com/norwoodj/helm-docs/releases/v1.5.0)

View File

@ -1,9 +1,10 @@
{{- if .Values.ingress.enabled -}} {{- if .Values.ingress.enabled -}}
{{- $fullName := include "traefik-forward-auth.fullname" . -}} {{- $fullName := include "traefik-forward-auth.fullname" . -}}
{{- $svcPort := .Values.service.port -}} {{- $svcPort := .Values.service.port -}}
{{- if semverCompare "<1.14-0" .Capabilities.KubeVersion.GitVersion -}} {{- $apiVersion := .Capabilities.KubeVersion.GitVersion -}}
{{- if semverCompare "<1.14-0" $apiVersion -}}
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
{{- else if semverCompare "<1.19-0" .Capabilities.KubeVersion.GitVersion -}} {{- else if semverCompare "<1.19-0" $apiVersion -}}
apiVersion: networking.k8s.io/v1beta1 apiVersion: networking.k8s.io/v1beta1
{{- else -}} {{- else -}}
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
@ -40,7 +41,7 @@ spec:
paths: paths:
{{- range .paths }} {{- range .paths }}
- path: {{ . }} - path: {{ . }}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }} {{- if semverCompare ">=1.19-0" $apiVersion }}
pathType: Prefix pathType: Prefix
backend: backend:
service: service: