File tree 5 files changed +9
-0
lines changed
service-proxy/charts/1.0.0/service-proxy
5 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,11 @@ metadata:
14
14
{{- with .Values.ingress.annotations }}
15
15
annotations :
16
16
{{- toYaml . | nindent 4 }}
17
+ {{- if $.Values.oauth2proxy.enabled }}
17
18
nginx.ingress.kubernetes.io/auth-signin : https://auth-proxy.{{ required ".domain missing" $.Values.domain }}/oauth2/start
18
19
nginx.ingress.kubernetes.io/auth-url : https://auth-proxy.{{ required ".domain missing" $.Values.domain }}/oauth2/auth
19
20
nginx.ingress.kubernetes.io/service-upstream : " true"
21
+ {{- end }}
20
22
{{- end }}
21
23
spec :
22
24
{{- if .Values.ingress.className }}
Original file line number Diff line number Diff line change 1
1
# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors
2
2
# SPDX-License-Identifier: Apache-2.0
3
3
4
+ {{- if .Values.oauth2proxy.enabled }}
4
5
apiVersion : apps/v1
5
6
kind : Deployment
6
7
metadata :
84
85
securityContext :
85
86
runAsUser : 0
86
87
terminationGracePeriodSeconds : 30
88
+ {{- end }}
Original file line number Diff line number Diff line change 1
1
# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors
2
2
# SPDX-License-Identifier: Apache-2.0
3
3
4
+ {{- if .Values.oauth2proxy.enabled }}
4
5
{{- $fullName := include "oauth2-proxy.fullname" . }}
5
6
apiVersion : networking.k8s.io/v1
6
7
kind : Ingress
29
30
- hosts :
30
31
- auth-proxy.{{ required ".domain missing" $.Values.domain }}
31
32
secretName : {{ $fullName }}-tls
33
+ {{- end }}
Original file line number Diff line number Diff line change 1
1
# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors
2
2
# SPDX-License-Identifier: Apache-2.0
3
3
4
+ {{- if .Values.oauth2proxy.enabled }}
4
5
apiVersion : v1
5
6
kind : Service
6
7
metadata :
17
18
selector :
18
19
k8s-app : oauth2-proxy
19
20
type : ClusterIP
21
+ {{- end }}
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ ingress:
39
39
disco : " true"
40
40
41
41
oauth2proxy :
42
+ enabled : false
42
43
image :
43
44
registry : " docker.io"
44
45
repository : " bitnami/oauth2-proxy"
You can’t perform that action at this time.
0 commit comments