-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (32 loc) · 1.44 KB
/
Makefile
File metadata and controls
38 lines (32 loc) · 1.44 KB
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
SHELL := /usr/bin/env bash
GIT_SHA1=$(shell git rev-parse HEAD)
.PHONY: install_database
install_database:
@set -euo pipefail; \
echo "Installing database chart: cas-postgres/cas-postgres-cluster..."; \
helm repo add cas-postgres https://bcgov.github.io/cas-postgres/; \
helm repo update; \
helm upgrade --install --atomic --wait-for-jobs --timeout 1800s --namespace "$(GGIRCS_NAMESPACE_PREFIX)-$(ENVIRONMENT)" \
--values ./helm/cas-metabase-postgres-cluster/values.yaml \
--values ./helm/cas-metabase-postgres-cluster/values-$(ENVIRONMENT).yaml \
cas-metabase-db cas-postgres/cas-postgres-cluster --version 1.2.0;
.PHONY: install_app
install_app:
@set -euo pipefail; \
echo "Installing metabase chart..."; \
helm dep up ./helm/cas-metabase; \
helm upgrade --install --atomic --wait-for-jobs --timeout 1800s --namespace "$(GGIRCS_NAMESPACE_PREFIX)-$(ENVIRONMENT)" \
--values ./helm/cas-metabase/values-$(ENVIRONMENT).yaml \
cas-metabase ./helm/cas-metabase; \
.PHONY: install
install: install_database install_app
.PHONY: lint_chart
lint_chart: ## Checks the configured helm chart template definitions against the remote schema
lint_chart:
@set -euo pipefail; \
helm dep up ./helm/cas-metabase; \
helm template --validate \
--set gcsProdBackupSAKey="fake-sa-key" \
--set ciipDatabaseHost="cas-ciip-portal-patroni-readonly.fake-env.svc.cluster.local" \
--values ./helm/cas-metabase/values-prod.yaml \
cas-metabase ./helm/cas-metabase;