-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathMakefile
39 lines (29 loc) · 1.24 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
CURRENT_WORKING_DIR=$(shell pwd)
TOOLKIT_IMAGE := eu.gcr.io/swade1987/kubernetes-toolkit:1.17.2
init:
brew install k3d
cluster:
k3d cluster create --agents 2 gitops
destroy:
k3d cluster delete gitops
install-flux:
./scripts/flux-init.sh
check-duplicate-release-name:
clear
docker run --rm --name check-duplicate-release-name -v $(CURRENT_WORKING_DIR)/kustomize:/kustomize $(TOOLKIT_IMAGE) bash -c "`cat bin/check-duplicate-release-name`"
kubeval-environments:
clear
docker run --rm --name kubeval-environments -v $(CURRENT_WORKING_DIR)/kustomize:/kustomize $(TOOLKIT_IMAGE) bash -c "`cat bin/kubeval-each-environment`"
hrval-environments:
clear
docker run --rm --name hrval-environments -v $(CURRENT_WORKING_DIR)/kustomize:/kustomize $(TOOLKIT_IMAGE) bash -c "`cat bin/kubeval-each-environment`"
deprek8-check:
clear
docker run --rm --name kubeval-charts -v $(CURRENT_WORKING_DIR)/kustomize:/kustomize $(TOOLKIT_IMAGE) bash -c "`cat bin/deprek8s-check`"
kustomization-yaml-fix:
docker run --rm --name kustomization-yaml-fix -v $(CURRENT_WORKING_DIR)/kustomize:/kustomize $(TOOLKIT_IMAGE) kustomization-yaml-fix /kustomize
test-%:
mkdir -p _test
kustomize build kustomize/$* > _test/$*.yaml
@echo
@echo The output can be found at _test/$*.yaml