-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathinstall.sh
executable file
·39 lines (26 loc) · 1.03 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env bash
# Copyright (C) 2021 Michael Joseph Walsh - All Rights Reserved
# You may use, distribute and modify this code under the
# terms of the the license.
#
# You should have received a copy of the license with
# this file. If not, please email <[email protected]>
set -a
skip_encrypted_variables=true
. ../.env
plantuml_server_protocol="${plantuml_server_protocol,,}"
if [ "${plantuml_server_protocol}" == "https" ]; then
plantuml_server_entrypoint="websecure"
plantuml_server_tls="true"
else
plantuml_server_entrypoint="web"
plantuml_server_tls="false"
fi
is_current_context_correct
is_cluster_running
images_into_registry plantuml_server_images
template_file ./templates/plantuml-server-chart-values.yaml.tpl plantuml-server-chart-values.yaml
notify "Spinning up PlantUML-Server..."
helm repo add nemonik https://nemonik.github.io/helm-charts/
helm repo update
helm install plantuml-server nemonik/plantuml-server --namespace ${plantuml_server_namespace} --create-namespace -f plantuml-server-chart-values.yaml