Skip to content

Commit

Permalink
Merge pull request #30 from cinaq/mx_nfs
Browse files Browse the repository at this point in the history
openshift route support
  • Loading branch information
vktrbrlv authored Jul 11, 2024
2 parents d450b7e + 0201247 commit 5b4039f
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/app-mendix/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: app-mendix
version: 3.0.1
version: 3.0.2
description: Mendix Application Chart.
icon: https://cinaq.github.io/helm-charts/icons/mendix-logo.png
maintainers:
Expand Down
1 change: 0 additions & 1 deletion charts/app-mendix/templates/pv.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{ if .Values.nfsVolume.enabled }}
---
apiVersion: v1
kind: PersistentVolume
metadata:
Expand Down
1 change: 0 additions & 1 deletion charts/app-mendix/templates/pvc.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{ if .Values.nfsVolume.enabled }}
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
Expand Down
26 changes: 26 additions & 0 deletions charts/app-mendix/templates/route.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{{- if .Values.route.enabled }}
{{- $serviceName := include "app-mendix.fullname" . -}}
{{- $servicePort := .Values.service.externalPort -}}
apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: {{ .Release.Name }}
labels:
{{- include "app-mendix.labels" . | nindent 4 }}
{{- with .Values.route.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
host: {{ .Values.route.host }}
port:
targetPort: {{ $servicePort }}
to:
kind: Service
name: {{ $serviceName }}
{{- if .Values.route.tls.enabled }}
tls:
termination: edge
insecureEdgeTerminationPolicy: Redirect
{{- end }}
{{- end }}
15 changes: 11 additions & 4 deletions charts/app-mendix/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,21 +75,28 @@ service:
ingress:
enabled: true
ingressClassName: nginx
domain: paas
domain: app.example.com
annotations: {}
addHosts: false
hosts: []
tls:
enabled: false
# Secrets must be manually created in the namespace.
secretName: secret-tls

# Enable to create openshift route
route:
enabled: false
host: app.example.com
annotations: {}
tls:
enabled: false

networkPolicy:
enabled: true
ingress:
allowed: true
autoscale:
# only affects slave deployment
# If enabled, slave replicas starts with minSlaveReplicas
enabled: false
minSlaveReplicas: 1
maxSlaveReplicas: 3
Expand Down Expand Up @@ -141,6 +148,6 @@ metrics:
nfsVolume:
enabled: false
name: mendix-nfs
server: 172.19.0.6
server: nfs.example.com
path: /mnt/mendixdata
storage: 10Gi

0 comments on commit 5b4039f

Please sign in to comment.