@@ -888,7 +888,7 @@ spec:
888
888
- host : {{ $host | quote }}
889
889
http :
890
890
paths :
891
- - path : /.well-known/lock-master -configuration
891
+ - path : /.well-known/lock-server -configuration
892
892
pathType : Exact
893
893
backend :
894
894
service :
@@ -898,3 +898,60 @@ spec:
898
898
{{- end }}
899
899
{{- end }}
900
900
{{- end }}
901
+
902
+ ---
903
+
904
+ {{ if and (index .Values "global" "auth-server" "lockEnabled") (index .Values "global" "auth-server" "ingress" "lockEnabled") -}}
905
+ {{ $fullName := include "nginx-ingress.fullname" . -}}
906
+ {{- $ingressPath := .Values.ingress.path -}}
907
+ apiVersion : networking.k8s.io/v1
908
+ kind : Ingress
909
+ metadata :
910
+ name : {{ $fullName }}-lock
911
+ labels :
912
+ app : {{ $fullName }}-lock
913
+ {{- if .Values.ingress.additionalLabels }}
914
+ {{ toYaml .Values.ingress.additionalLabels | indent 4 }}
915
+ {{- end }}
916
+ {{- if index .Values.global "auth-server" "ingress" "lockLabels" }}
917
+ {{ toYaml (index .Values.global "auth-server" "ingress" "lockLabels") | indent 4 }}
918
+ {{- end }}
919
+ annotations :
920
+ nginx.ingress.kubernetes.io/ssl-redirect : " false"
921
+ nginx.ingress.kubernetes.io/proxy-read-timeout : " 300"
922
+ nginx.ingress.kubernetes.io/rewrite-target : /jans-auth/
923
+ {{- if index .Values.global "auth-server" "ingress" "lockAdditionalAnnotations" }}
924
+ {{ toYaml (index .Values.global "auth-server" "ingress" "lockAdditionalAnnotations") | indent 4 }}
925
+ {{- end }}
926
+ {{- if .Values.ingress.additionalAnnotations }}
927
+ {{ toYaml .Values.ingress.additionalAnnotations | indent 4 }}
928
+ {{- end }}
929
+ spec :
930
+ ingressClassName : {{ .Values.ingress.ingressClassName }}
931
+ {{- if .Values.ingress.tls }}
932
+ tls :
933
+ {{- range .Values.ingress.tls }}
934
+ - hosts :
935
+ {{- range .hosts }}
936
+ - {{ . | quote }}
937
+ {{- end }}
938
+ secretName : {{ .secretName }}
939
+ {{- end }}
940
+ {{- end }}
941
+ rules :
942
+ {{- range .Values.ingress.hosts }}
943
+ {{- $host := . -}}
944
+ {{- with $ }}
945
+ - host : {{ $host | quote }}
946
+ http :
947
+ paths :
948
+ - path : /jans-lock
949
+ pathType : Exact
950
+ backend :
951
+ service :
952
+ name : {{ index .Values "global" "auth-server" "authServerServiceName" }}
953
+ port :
954
+ number : 8080
955
+ {{- end }}
956
+ {{- end }}
957
+ {{- end }}
0 commit comments