Skip to content

Commit

Permalink
schulportal-client
Browse files Browse the repository at this point in the history
  • Loading branch information
schulportal-client-gha committed Dec 9, 2024
1 parent 86fc635 commit 2a8fd7e
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 3 deletions.
4 changes: 2 additions & 2 deletions automation/schulportal-client/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
appVersion: spsh-1387
appVersion: SPSH-1571
description: Helm-Chart for schulportal-client
name: schulportal-client
type: application
version: 0.0.0-spsh-1387-20241209-1306
version: 0.0.0-spsh-1571-20241209-1319
5 changes: 4 additions & 1 deletion automation/schulportal-client/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
tls:
- hosts:
- {{ .Values.frontendHostname }}
ingressClassName: {{ .Values.ingress.ingressClassName }}
rules:
- host: {{.Values.frontendHostname}}
- host: {{ .Values.frontendHostname }}
http:
paths:
- path: {{ .Values.ingress.path }}
Expand Down
26 changes: 26 additions & 0 deletions automation/schulportal-client/templates/ingress2nd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{{- if .Values.ingress.enabled2nd -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ template "common.names.name" . }}-2nd
namespace: {{ template "common.names.namespace" . }}
labels:
{{- include "common.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
ingressClassName: {{ .Values.ingress.ingressClassName }}
rules:
- host: {{.Values.frontend2ndHostname}}
http:
paths:
- path: {{ .Values.ingress.path }}
pathType: {{ .Values.ingress.pathType }}
backend:
service:
name: {{ template "common.names.name" . }}
port:
number: {{ .Values.service.ports.http }}
{{- end }}
3 changes: 3 additions & 0 deletions automation/schulportal-client/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ image:
restartPolicy: Always

frontendHostname: ""
frontend2ndHostname: ""

containerSecurityContext:
enabled: true
Expand All @@ -33,6 +34,8 @@ resources:
memory: 200Mi

ingress:
# Only enable if 2nd host name is defined
enabled2nd: false
enabled: true
ingressClassName: nginx
path: /
Expand Down

0 comments on commit 2a8fd7e

Please sign in to comment.