Skip to content

Commit

Permalink
Merge pull request #835 from acend/oauth-pr-pages
Browse files Browse the repository at this point in the history
use oauthproxy for pr test ingress
  • Loading branch information
splattner authored Jul 25, 2024
2 parents 8a2233b + eb90e7b commit 54bfdff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions helm-chart/templates/acend-ingres.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit 54bfdff

Please sign in to comment.