@@ -13,7 +13,7 @@ include Makefile.vars.mk
13
13
# KIND module
14
14
include kind/kind.mk
15
15
16
- vshnpostgresql : stackgres-setup certmanager-setup prometheus-setup
16
+ vshnpostgresql : stackgres-setup certmanager-setup prometheus-setup # # Install everything needed to use PostgreSQL by VSHN locally
17
17
18
18
.PHONY : help
19
19
help : # # Show this help
@@ -27,19 +27,22 @@ lint: ## All-in-one linting
27
27
crossplane-setup : $(crossplane_sentinel ) # # Install local Kubernetes cluster and install Crossplane
28
28
29
29
$(crossplane_sentinel ) : export KUBECONFIG = $(KIND_KUBECONFIG )
30
- $(crossplane_sentinel ) : kind-setup local-pv-setup
30
+ $(crossplane_sentinel ) : kind-setup local-pv-setup load-comp-image
31
31
helm repo add crossplane https://charts.crossplane.io/stable
32
32
helm upgrade --install crossplane --create-namespace --namespace syn-crossplane crossplane/crossplane \
33
33
--set " args[0]='--debug'" \
34
34
--set " args[1]='--enable-composition-functions'" \
35
35
--set " args[2]='--enable-environment-configs'" \
36
36
--set " xfn.enabled=true" \
37
37
--set " xfn.args={--debug}" \
38
+ --set " xfn.image.repository=ghcr.io/vshn/appcat-comp-functions" \
39
+ --set " xfn.image.tag=latest" \
38
40
--wait
39
41
@touch $@
40
42
41
43
stackgres-setup : export KUBECONFIG = $(KIND_KUBECONFIG )
42
- stackgres-setup : $(crossplane_sentinel )
44
+ stackgres-setup : $(crossplane_sentinel ) # # Install StackGres
45
+ helm repo add stackgres-charts https://stackgres.io/downloads/stackgres-k8s/stackgres/helm/
43
46
helm upgrade --install --create-namespace --namespace stackgres stackgres-operator stackgres-charts/stackgres-operator
44
47
45
48
certmanager-setup : export KUBECONFIG = $(KIND_KUBECONFIG )
@@ -67,7 +70,7 @@ $(k8up_sentinel): kind-setup
67
70
kubectl -n k8up-system wait --for condition=Available deployment/k8up --timeout 60s
68
71
@touch $@
69
72
70
- local-pv-setup : $(local_pv_sentinel )
73
+ local-pv-setup : $(local_pv_sentinel ) # # Installs an alternative local-pv provider, that has slightly more features
71
74
72
75
$(local_pv_sentinel ) : export KUBECONFIG = $(KIND_KUBECONFIG )
73
76
$(local_pv_sentinel ) :
@@ -91,5 +94,8 @@ $(prometheus_sentinel): kind-setup-ingress
91
94
@echo -e " ***\n*** Installed Prometheus in http://127.0.0.1.nip.io:8088/prometheus/ and AlertManager in http://127.0.0.1.nip.io:8088/alertmanager/.\n***"
92
95
@touch $@
93
96
97
+ load-comp-image : # # Load the appcat-comp image if it exists
98
+ [[ " $$ (docker images -q ghcr.io/vshn/appcat-comp-functions 2> /dev/null)" != " " ]] && kind load docker-image --name kindev ghcr.io/vshn/appcat-comp-functions || true
99
+
94
100
.PHONY : clean
95
101
clean : kind-clean # # Clean up local dev environment
0 commit comments