Skip to content

Commit

Permalink
Use default openshift ingress (#414)
Browse files Browse the repository at this point in the history
* use default openshift ingress

* update comments
  • Loading branch information
shaynafinocchiaro authored and atye committed Jun 21, 2024
1 parent 4f777d4 commit 1a30df4
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 17 deletions.
16 changes: 8 additions & 8 deletions charts/csm-authorization/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ description: |
storage enablers for Dell EMC storage products. CSM for Authorization provides storage and Kubernetes administrators the ability
to apply RBAC for Dell CSI Drivers.
dependencies:
- name: cert-manager
version: 1.11.0
repository: https://charts.jetstack.io
condition: cert-manager.enabled
- name: ingress-nginx
version: 4.0.19
repository: https://kubernetes.github.io/ingress-nginx
condition: ingress-nginx.enabled
- name: cert-manager
version: 1.11.0
repository: https://charts.jetstack.io
condition: cert-manager.enabled
- name: ingress-nginx
version: 4.0.19
repository: https://kubernetes.github.io/ingress-nginx
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,25 +33,25 @@ 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 }}
- http:
Expand Down
10 changes: 8 additions & 2 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

0 comments on commit 1a30df4

Please sign in to comment.