File tree Expand file tree Collapse file tree 3 files changed +42
-21
lines changed
common/templates/kubernetes/fragments
k8s_fedora_coreos_v1/templates Expand file tree Collapse file tree 3 files changed +42
-21
lines changed Original file line number Diff line number Diff line change @@ -17,32 +17,11 @@ if [ ! -z "$NO_PROXY" ]; then
17
17
export NO_PROXY
18
18
fi
19
19
20
- ssh_cmd=" ssh -F /srv/magnum/.ssh/config root@localhost"
21
-
22
20
echo " Waiting for Kubernetes API..."
23
21
until [ " ok" = " $( kubectl get --raw=' /healthz' ) " ]; do
24
22
sleep 5
25
23
done
26
24
27
- if [ -z " ${HELM_CLIENT_URL} " ] ; then
28
- HELM_CLIENT_URL=" https://get.helm.sh/helm-$HELM_CLIENT_TAG -linux-amd64.tar.gz"
29
- fi
30
- i=0
31
- until curl -o /srv/magnum/helm-client.tar.gz " ${HELM_CLIENT_URL} " ; do
32
- i=$(( i + 1 ))
33
- [ $i -lt 5 ] || break ;
34
- sleep 5
35
- done
36
-
37
- if ! echo " ${HELM_CLIENT_SHA256} /srv/magnum/helm-client.tar.gz" | sha256sum -c - ; then
38
- echo " ERROR helm-client.tar.gz computed checksum did NOT match, exiting."
39
- exit 1
40
- fi
41
-
42
- source /etc/bashrc
43
- $ssh_cmd tar xzvf /srv/magnum/helm-client.tar.gz linux-amd64/helm -O > /srv/magnum/bin/helm
44
- $ssh_cmd chmod +x /srv/magnum/bin/helm
45
-
46
25
helm_install_cmd=" helm upgrade --install magnum . --namespace kube-system --values values.yaml --render-subchart-notes"
47
26
helm_history_cmd=" helm history magnum --namespace kube-system"
48
27
if [[ " ${HELM_CLIENT_TAG} " == v2.* ]]; then
Original file line number Diff line number Diff line change
1
+ step=" install-helm"
2
+ echo " START: ${step} "
3
+
4
+ set +x
5
+ . /etc/sysconfig/heat-params
6
+ set -ex
7
+
8
+ if [ ! -z " $HTTP_PROXY " ]; then
9
+ export HTTP_PROXY
10
+ fi
11
+
12
+ if [ ! -z " $HTTPS_PROXY " ]; then
13
+ export HTTPS_PROXY
14
+ fi
15
+
16
+ if [ ! -z " $NO_PROXY " ]; then
17
+ export NO_PROXY
18
+ fi
19
+
20
+ ssh_cmd=" ssh -F /srv/magnum/.ssh/config root@localhost"
21
+
22
+ if [ -z " ${HELM_CLIENT_URL} " ] ; then
23
+ HELM_CLIENT_URL=" https://get.helm.sh/helm-$HELM_CLIENT_TAG -linux-amd64.tar.gz"
24
+ fi
25
+ i=0
26
+ until curl -o /srv/magnum/helm-client.tar.gz " ${HELM_CLIENT_URL} " ; do
27
+ i=$(( i + 1 ))
28
+ [ $i -lt 5 ] || break ;
29
+ sleep 5
30
+ done
31
+
32
+ if ! echo " ${HELM_CLIENT_SHA256} /srv/magnum/helm-client.tar.gz" | sha256sum -c - ; then
33
+ echo " ERROR helm-client.tar.gz computed checksum did NOT match, exiting."
34
+ exit 1
35
+ fi
36
+
37
+ source /etc/bashrc
38
+ $ssh_cmd tar xzvf /srv/magnum/helm-client.tar.gz linux-amd64/helm -O > /srv/magnum/bin/helm
39
+ $ssh_cmd chmod +x /srv/magnum/bin/helm
40
+
41
+ echo " END: ${step} "
Original file line number Diff line number Diff line change @@ -1501,6 +1501,7 @@ resources:
1501
1501
- get_file : ../../common/templates/kubernetes/fragments/enable-auto-scaling.sh
1502
1502
- get_file : ../../common/templates/kubernetes/fragments/enable-cinder-csi.sh
1503
1503
# Helm Based Installation Configuration Scripts
1504
+ - get_file : ../../common/templates/kubernetes/fragments/install-helm.sh
1504
1505
- get_file : ../../common/templates/kubernetes/helm/metrics-server.sh
1505
1506
- str_replace :
1506
1507
template : {get_file: ../../common/templates/kubernetes/helm/prometheus-operator.sh}
You can’t perform that action at this time.
0 commit comments