-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
25 lines (19 loc) · 1.13 KB
/
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
.PHONY: all deploy build helm
.ONESHELL: test
ifeq ($(K8S_VERSION),)
K8S_VERSION := v1.22.13
endif
k3d:
@curl -s https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash
@k3d cluster create myk3s -i rancher/k3s:$(K8S_VERSION)-k3s1
@kubectl get pod
lint: ## lint helm manifests
@helm lint -f charts/db-operator/values.yaml -f charts/db-operator/ci/ci-1-values.yaml --strict ./charts/db-operator
@helm lint -f charts/db-instances/values.yaml --strict ./charts/db-instances
cert-manager: ## install cert-manager chart if not exist and install local chart using helm upgrade --install command
@helm repo add jetstack https://charts.jetstack.io
@helm repo update
@helm upgrade --install --create-namespace --namespace cert-manager cert-manager jetstack/cert-manager --set installCRDs=true
db-operator: ## install db-operator chart if not exist and install local chart using helm upgrade --install command
@helm upgrade --install --create-namespace --namespace operator my-dboperator charts/db-operator -f charts/db-operator/values.yaml -f charts/db-operator/values-local.yaml
@kubectl rollout status deploy/db-operator -n operator