Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use default openshift ingress #414

Merged
merged 2 commits into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/csm-authorization/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ dependencies:
- name: ingress-nginx
version: 4.0.19
repository: https://kubernetes.github.io/ingress-nginx
condition: ingress-nginx.enabled
condition: nginx.enabled
19 changes: 12 additions & 7 deletions charts/csm-authorization/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,19 @@ kind: Ingress
metadata:
name: proxy-server
namespace: {{ include "custom.namespace" . }}
{{- if .Values.authorization.proxyServerIngress.annotations }}
annotations:
{{- if eq .Values.openshift true }}
route.openshift.io/termination: "edge"
{{- end }}
{{- if .Values.authorization.proxyServerIngress.annotations }}
{{- range $key, $value := .Values.authorization.proxyServerIngress.annotations }}
{{ $key }}: {{ tpl $value $ | quote }}
{{- end }}
{{- end }}
spec:
{{- if eq .Values.nginx.enabled true }}
ingressClassName: {{ .Values.authorization.proxyServerIngress.ingressClassName }}
{{- end }}
tls:
- hosts:
- {{ .Values.authorization.hostname }}
Expand All @@ -28,24 +33,24 @@ spec:
- host: {{ .Values.authorization.hostname }}
http:
paths:
- path: /
pathType: Prefix
backend:
- backend:
service:
name: proxy-server
port:
number: 8080
path: /
pathType: Prefix
{{- if .Values.authorization.proxyServerIngress.hosts }}
{{- range .Values.authorization.proxyServerIngress.hosts }}
- host: {{ tpl . $}}
http:
paths:
- path: /
pathType: Prefix
backend:
- backend:
service:
name: proxy-server
port:
number: 8080
path: /
pathType: Prefix
{{- end }}
{{- end}}
12 changes: 9 additions & 3 deletions charts/csm-authorization/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# if enabled, nginx ingress controller will be deployed
# set to true if installing on an OpenShift Container Platform
# if enabled, the OpenShift Ingress Operator will be used
# if you have your own ingress controller, keep this false and set the appropriate annotations for the ingresses in the authorization section
ingress-nginx:
openshift: false

# set to true if installing on a Kubernetes Container Platform
# if enabled, NGINX Ingress Controller will be deployed
# if you have your own ingress controller, keep this false and set the appropriate annotations for the ingresses in the authorization section
nginx:
enabled: true

# if enabled, cert-manager will be deployed
Expand Down Expand Up @@ -60,4 +66,4 @@ vault:
address: https://10.0.0.1:8400
kvEnginePath: secret
skipCertificateValidation: true


Loading