forked from mattermost/mattermost-helm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (28 loc) · 907 Bytes
/
Makefile
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
.PHONY: install clean package ltvalues
DIST_ROOT=dist
KUBE_INSTALL := $(shell command -v kubectl 2> /dev/null)
HELM_INSTALL := $(shell command -v helm 2> /dev/null)
SUB_CHARTS := $(shell ls mattermost-helm/charts)
all: package
check:
ifndef KUBE_INSTALL
$(error "kubectl is not available please install from https://kubernetes.io/")
endif
ifndef HELM_INSTALL
$(error "helm is not available please install from https://github.com/kubernetes/helm")
endif
.init:
helm init --client-only
touch $@
package: check .init
mkdir -p dist
rm -f mattermost-helm/charts/*.tgz
helm package mattermost-helm/charts/* -d mattermost-helm/charts
helm package mattermost-helm -d $(DIST_ROOT)
clean:
rm -rf $(DIST_ROOT)
rm -f mattermost-helm/charts/*.tgz
install: check
helm install dist/mattermost-helm*.*
ltvalues:
cp ../platform-private/kubernetes/values_loadtest.yaml mattermost-helm/values.yaml