diff --git a/helm-chart/templates/acend-ingres.yaml b/helm-chart/templates/acend-ingres.yaml index 03d49fe2..a02581b9 100644 --- a/helm-chart/templates/acend-ingres.yaml +++ b/helm-chart/templates/acend-ingres.yaml @@ -1,5 +1,6 @@ {{- $fullName := include "acend-website-chart.fullname" . -}} {{- $svcPort := .Values.service.port -}} +{{- $releaseName := .Release.Name -}} {{- if eq .Release.Name "latest" -}} --- apiVersion: networking.k8s.io/v1 @@ -52,8 +53,8 @@ metadata: {{- with .Values.ingress.annotations }} annotations: {{- toYaml . | nindent 4 }} - nginx.ingress.kubernetes.io/auth-type: basic - nginx.ingress.kubernetes.io/auth-secret: staging-basic-auth + nginx.ingress.kubernetes.io/auth-signin: https://github-oauth-proxy.acend.ch/oauth2/start?rd=https%3A%2F%2Fwebsite-{{ $releaseName }}.test.acend.ch + nginx.ingress.kubernetes.io/auth-url: https://github-oauth-proxy.acend.ch/oauth2/auth {{- end }} spec: ingressClassName: {{ .Values.ingress.ingressClass }}