1+ # to be executed on kubernetes control nodes
12REPO_BASE_DIR := $(shell git rev-parse --show-toplevel)
23
34include ${REPO_BASE_DIR}/scripts/common.Makefile
@@ -23,40 +24,16 @@ helmfile-lint: .check-helmfile-installed helmfile.yaml ## Lints the helmfile
2324 set -a; source $(REPO_CONFIG_LOCATION ) ; set +a; \
2425 helmfile lint
2526
26- .PHONY : .helmfile-local-post-install
27- .helmfile-local-post-install : # # Post install steps for local helmfile deployment
28- @$(MAKE ) -s configure-local-hosts
29- @echo " " ;
30- @echo " Cluster has been deployed locally: https://$( MACHINE_FQDN) " ;
31- @echo " For secure connections self-signed certificates are used." ;
32- @echo " " ;
33-
3427.PHONY : helmfile-apply
3528helmfile-apply : .check-helmfile-installed helmfile.yaml # # Applies the helmfile configuration
3629 set -a; source $(REPO_CONFIG_LOCATION ) ; set +a; \
3730 helmfile -f $(REPO_BASE_DIR ) /charts/helmfile.yaml apply
3831
39- @if [ "$(MACHINE_FQDN)" = "osparc.local" ]; then \
40- $(MAKE) -s .helmfile-local-post-install; \
41- fi
42-
4332.PHONY : helmfile-sync
4433helmfile-sync : .check-helmfile-installed helmfile.yaml # # Syncs the helmfile configuration (use `helmfile-apply` to deploy the app)
4534 set -a; source $(REPO_CONFIG_LOCATION ) ; set +a; \
4635 helmfile -f $(REPO_BASE_DIR ) /charts/helmfile.yaml sync
4736
48- @if [ "$(MACHINE_FQDN)" = "osparc.local" ]; then \
49- $(MAKE) -s .helmfile-local-post-install; \
50- fi
51-
52- .PHONY : configure-local-hosts
53- configure-local-hosts : $(REPO_CONFIG_LOCATION ) # # Adds local hosts entries for the machine
54- # "Updating /etc/hosts with k8s $(MACHINE_FQDN) hosts ..."
55- @set -a; source $(REPO_CONFIG_LOCATION ) ; set +a; \
56- grep -q " 127.0.0.1 $$ K8S_MONITORING_FQDN" /etc/hosts || echo " 127.0.0.1 $$ K8S_MONITORING_FQDN" | sudo tee -a /etc/hosts
57- @set -a; source $(REPO_CONFIG_LOCATION ) ; set +a; \
58- grep -q " 127.0.0.1 $$ K8S_PRIVATE_FQDN" /etc/hosts || echo " 127.0.0.1 $$ K8S_PRIVATE_FQDN" | sudo tee -a /etc/hosts
59-
6037.PHONY : helmfile-diff
6138helmfile-diff : .check-helmfile-installed helmfile.yaml # # Shows the differences that would be applied by helmfile
6239 @set -a; source $(REPO_CONFIG_LOCATION ) ; set +a; \
0 commit comments