Skip to content

Commit a94916e

Browse files
authored
Fix theia-cloud helm chart not being updateable (#69)
Properly quote the `rules.host` when loading from cluster on `helm upgrade`. This is required, as a `*` is a special char in yaml and will break the parsing on `upgrade`. `*` is a common wildcard character for host names so it should be supported. With this the upgrading should work again. Also add a note to the values file, that updating the `allWildcardInstances` will not work with `helm upgrade`, which is intended for now.
1 parent 646abbc commit a94916e

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

charts/theia-cloud/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ 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: 0.12.0-next.0
18+
version: 0.11.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
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
24-
appVersion: "0.12.0-next"
24+
appVersion: "0.11.1"

charts/theia-cloud/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# theia-cloud
22

3-
![Version: 0.12.0-next.0](https://img.shields.io/badge/Version-0.12.0--next.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.12.0-next](https://img.shields.io/badge/AppVersion-0.12.0--next-informational?style=flat-square)
3+
![Version: 0.11.2](https://img.shields.io/badge/Version-0.11.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.11.1](https://img.shields.io/badge/AppVersion-0.11.1-informational?style=flat-square)
44

55
A Helm chart for Theia Cloud
66

@@ -23,7 +23,7 @@ A Helm chart for Theia Cloud
2323
| demoApplication.pullSecret | string | `""` | the image pull secret. Leave empty if registry is public |
2424
| demoApplication.timeout | string | `"30"` | Limit in minutes |
2525
| hosts | object | (see details below) | You may adjust the hostname below. |
26-
| hosts.allWildcardInstances | list | `["*.webview."]` | all additional wildcard hostnames that may be required in the launched Theia-applications, e.g. "*.webview." which leads to "*.webview.ws.192.168.39.173.nip.io" to expose webviews. Please note that this means that this usually means that all "ingressHostnamePrefixes" patterns from all app definitions need to be added. These are required to configure TLS (if enabled via ingress.tls == true) |
26+
| hosts.allWildcardInstances | list | `["*.webview."]` | all additional wildcard hostnames that may be required in the launched Theia-applications, e.g. "*.webview." which leads to "*.webview.ws.192.168.39.173.nip.io" to expose webviews. Please note that this means that this usually means that all "ingressHostnamePrefixes" patterns from all app definitions need to be added. IMPORTANT: If this gets updated, the helm chart needs to be re-installed because helm upgrade will not properly update this at the moment. These are required to configure TLS (if enabled via ingress.tls == true) |
2727
| hosts.configuration | object | (see details below) | Configuration for the hostnames. Contains the baseHost and afixes for all services |
2828
| hosts.configuration.baseHost | string | `"192.168.39.173.nip.io"` | baseHost configures the host for all services. Depending on hosts.usePaths the services will be prepended as a subdomain or appended as a path |
2929
| hosts.configuration.instance | string | `"instances"` | afix for deployed instances |

charts/theia-cloud/templates/instances-ingress-path-based.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ spec:
4646
{{- else }}
4747
rules:
4848
{{ range $rule := (lookup "networking.k8s.io/v1" "Ingress" .Release.Namespace (tpl (.Values.ingress.instanceName | toString) .)).spec.rules }}
49-
- host: {{ .host }}
49+
- host: {{ .host | quote }}
5050
{{ if .http }}
5151
http:
5252
paths:

charts/theia-cloud/templates/instances-ingress.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ spec:
4646
{{- else }}
4747
rules:
4848
{{ range $rule := (lookup "networking.k8s.io/v1" "Ingress" .Release.Namespace (tpl (.Values.ingress.instanceName | toString) .)).spec.rules }}
49-
- host: {{ .host }}
49+
- host: {{ .host | quote }}
5050
{{ if .http }}
5151
http:
5252
paths:

charts/theia-cloud/values.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ hosts:
8181
# "*.webview." which leads to "*.webview.ws.192.168.39.173.nip.io" to expose webviews.
8282
# Please note that this means that this usually means that all "ingressHostnamePrefixes" patterns from
8383
# all app definitions need to be added.
84+
# IMPORTANT: If this gets updated, the helm chart needs to be re-installed because
85+
# helm upgrade will not properly update this at the moment.
8486
# These are required to configure TLS (if enabled via ingress.tls == true)
8587
allWildcardInstances: ["*.webview."]
8688

0 commit comments

Comments
 (0)