Skip to content

Commit

Permalink
Make LandingPage optional
Browse files Browse the repository at this point in the history
Fixes eclipse-theia#75

Signed-off-by: Olaf Lessenich <[email protected]>
  • Loading branch information
xai committed Feb 11, 2025
1 parent 3903368 commit a895703
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/theia-cloud-base/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ servicerole:

certmanager:
# -- the namespace where the cert-manager is installed
namespace: cert-manager
namespace: cert-manager
2 changes: 2 additions & 0 deletions charts/theia-cloud/templates/landing-page-config-map.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.landingPage.enabled }}
{{- $logoFileExtension := tpl (.Values.landingPage.logoFileExtension | toString) . -}}
apiVersion: v1
kind: ConfigMap
Expand Down Expand Up @@ -48,3 +49,4 @@ binaryData:
{{ printf "logo.%s: " $logoFileExtension }}{{ $.Files.Get $path | b64enc }}
{{ end }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.landingPage.enabled }}
{{- if .Values.hosts.usePaths }}
apiVersion: networking.k8s.io/v1
kind: Ingress
Expand Down Expand Up @@ -41,4 +42,5 @@ spec:
number: 80
path: /{{ if .Values.hosts.configuration.landing }}{{ tpl (.Values.hosts.configuration.landing | toString) . }}(/|$)(.*){{ end }}
pathType: Prefix
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/theia-cloud/templates/landing-page-ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.landingPage.enabled }}
{{- if not .Values.hosts.usePaths }}
apiVersion: networking.k8s.io/v1
kind: Ingress
Expand Down Expand Up @@ -34,4 +35,5 @@ spec:
number: 80
path: /
pathType: Prefix
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions charts/theia-cloud/templates/landing-page.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.landingPage.enabled }}
{{- $logoFileName := printf "logo.%s" (tpl (.Values.landingPage.logoFileExtension | toString) .) -}}
apiVersion: apps/v1
kind: Deployment
Expand Down Expand Up @@ -48,7 +49,9 @@ spec:
- name: landing-page-config
configMap:
name: landing-page-config
{{- end}}
---
{{- if .Values.landingPage.enabled }}
apiVersion: v1
kind: Service
metadata:
Expand All @@ -65,3 +68,4 @@ spec:
protocol: TCP
port: 80
targetPort: 80
{{- end }}
3 changes: 3 additions & 0 deletions charts/theia-cloud/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ hosts:
# -- Values related to the landing page
# @default -- (see details below)
landingPage:
# -- Whether the landing page shall be enabled
enabled: true

# -- the landing page image to use
image: theiacloud/theia-cloud-landing-page:1.1.0-next

Expand Down

0 comments on commit a895703

Please sign in to comment.