-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·17 lines (13 loc) · 872 Bytes
/
deploy.sh
File metadata and controls
executable file
·17 lines (13 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
namespace=$1
if [ -z "$namespace" ]; then
echo "Using default namespace 'theia-prod'."
namespace="theia-prod"
fi
helm dependency update ./charts/theia-cloud-combined
helm upgrade theia-cloud-base theia-cloud-repo/theia-cloud-base --install -f theia-base-helm-values.yml
helm upgrade theia-cloud-crds theia-cloud-repo/theia-cloud-crds --install -f theia-crds-helm-values.yml
# this installs the latest version of theia-cloud, theia-appdefinitions and theia-certificates
helm upgrade --install theia-cloud-combined ./charts/theia-cloud-combined --namespace $namespace --create-namespace \
--theia-certificates.wildcardCertificate="$(cat ./prod/wildcard-webview-cert/wildcard_webview_instance_theia_artemis_cit_tum_de.pem)" \
--theia-certificates.wildcardKey="$(cat ./prod/wildcard-webview-cert/wildcard_webview_instance_theia_artemis_cit_tum_de.key)"