Extend K8S and RIC installation instructions
[it/dep.git] / ric-aux / 80-Auxiliary-Functions / helm / mc-stack / charts / elasticsearch / examples / upgrade / Makefile
1 default: test
2
3 include ../../../helpers/examples.mk
4
5 RELEASE := helm-es-upgrade
6
7 # Right now the version is hardcoded because helm install will ignore
8 # anything with an alpha tag when trying to install the latest release
9 # This hardcoding can be removed once we drop the alpha tag
10 # The "--set terminationGracePeriod=121" always makes sure that a rolling
11 # upgrade is forced for this test
12 install:
13         helm repo add elastic https://helm.elastic.co && \
14         helm upgrade --wait --timeout=600 --install $(RELEASE) elastic/elasticsearch --version 7.0.0-alpha1 --set clusterName=upgrade ; \
15         kubectl rollout status sts/upgrade-master --timeout=600s
16         helm upgrade --wait --timeout=600 --set terminationGracePeriod=121 --install $(RELEASE) ../../ --set clusterName=upgrade ; \
17         kubectl rollout status sts/upgrade-master --timeout=600s
18
19 init:
20         helm init --client-only
21
22 test: init install goss
23
24 purge:
25         helm del --purge $(RELEASE)