Skip to content

Commit a66683b

Browse files
xaijfaltermeier
authored andcommitted
Make LandingPage optional
Fixes #75 Signed-off-by: Olaf Lessenich <[email protected]>
1 parent c16c7f2 commit a66683b

6 files changed

+14
-1
lines changed

charts/theia-cloud/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 1.1.0-next.1
18+
version: 1.1.0-next.2
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/theia-cloud/templates/landing-page-config-map.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.landingPage.enabled }}
12
{{- $logoFileExtension := tpl (.Values.landingPage.logoFileExtension | toString) . -}}
23
apiVersion: v1
34
kind: ConfigMap
@@ -48,3 +49,4 @@ binaryData:
4849
{{ printf "logo.%s: " $logoFileExtension }}{{ $.Files.Get $path | b64enc }}
4950
{{ end }}
5051
{{- end }}
52+
{{- end }}

charts/theia-cloud/templates/landing-page-ingress-path-based.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.landingPage.enabled }}
12
{{- if .Values.hosts.usePaths }}
23
apiVersion: networking.k8s.io/v1
34
kind: Ingress
@@ -41,4 +42,5 @@ spec:
4142
number: 80
4243
path: /{{ if .Values.hosts.configuration.landing }}{{ tpl (.Values.hosts.configuration.landing | toString) . }}(/|$)(.*){{ end }}
4344
pathType: Prefix
45+
{{- end }}
4446
{{- end }}

charts/theia-cloud/templates/landing-page-ingress.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.landingPage.enabled }}
12
{{- if not .Values.hosts.usePaths }}
23
apiVersion: networking.k8s.io/v1
34
kind: Ingress
@@ -34,4 +35,5 @@ spec:
3435
number: 80
3536
path: /
3637
pathType: Prefix
38+
{{- end }}
3739
{{- end }}

charts/theia-cloud/templates/landing-page.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.landingPage.enabled }}
12
{{- $logoFileName := printf "logo.%s" (tpl (.Values.landingPage.logoFileExtension | toString) .) -}}
23
apiVersion: apps/v1
34
kind: Deployment
@@ -48,7 +49,9 @@ spec:
4849
- name: landing-page-config
4950
configMap:
5051
name: landing-page-config
52+
{{- end}}
5153
---
54+
{{- if .Values.landingPage.enabled }}
5255
apiVersion: v1
5356
kind: Service
5457
metadata:
@@ -65,3 +68,4 @@ spec:
6568
protocol: TCP
6669
port: 80
6770
targetPort: 80
71+
{{- end }}

charts/theia-cloud/values.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ hosts:
9090
# -- Values related to the landing page
9191
# @default -- (see details below)
9292
landingPage:
93+
# -- Whether the landing page shall be enabled
94+
enabled: true
95+
9396
# -- the landing page image to use
9497
image: theiacloud/theia-cloud-landing-page:1.1.0-next
9598

0 commit comments

Comments
 (0)