mirror of
https://github.com/khuedoan/homelab.git
synced 2024-12-22 20:14:32 +07:00
8d00d55eb1
This is a breaking change and requires cluster rebuild (carefully replacing the ApplicationSets may should work but I didn't bother at the current alpha stage): - ApplicationSets are merged into a single root one to use the progressive sync feature when it's ready. - Switched to server side apply to avoid CRDs not ready issues. Also replace the apply script with Ansible, since the Ansible Helm dependency update feature was released.
56 lines
1.0 KiB
Makefile
56 lines
1.0 KiB
Makefile
.POSIX:
|
|
.PHONY: *
|
|
.EXPORT_ALL_VARIABLES:
|
|
|
|
KUBECONFIG = $(shell pwd)/metal/kubeconfig.yaml
|
|
KUBE_CONFIG_PATH = $(KUBECONFIG)
|
|
|
|
default: metal system external smoke-test post-install clean
|
|
|
|
configure:
|
|
./scripts/configure
|
|
git status
|
|
|
|
metal:
|
|
make -C metal
|
|
|
|
system:
|
|
make -C system
|
|
|
|
external:
|
|
make -C external
|
|
|
|
smoke-test:
|
|
make -C test filter=Smoke
|
|
|
|
post-install:
|
|
@./scripts/hacks
|
|
|
|
tools:
|
|
@docker run \
|
|
--rm \
|
|
--interactive \
|
|
--tty \
|
|
--network host \
|
|
--env "KUBECONFIG=${KUBECONFIG}" \
|
|
--volume "/var/run/docker.sock:/var/run/docker.sock" \
|
|
--volume $(shell pwd):$(shell pwd) \
|
|
--volume ${HOME}/.ssh:/root/.ssh \
|
|
--volume ${HOME}/.terraform.d:/root/.terraform.d \
|
|
--volume homelab-tools-cache:/root/.cache \
|
|
--volume homelab-tools-nix:/nix \
|
|
--workdir $(shell pwd) \
|
|
docker.io/nixos/nix nix --experimental-features 'nix-command flakes' develop
|
|
|
|
test:
|
|
make -C test
|
|
|
|
clean:
|
|
docker compose --project-directory ./metal/roles/pxe_server/files down
|
|
|
|
docs:
|
|
mkdocs serve
|
|
|
|
git-hooks:
|
|
pre-commit install
|