1- # SPDX-License-Identifier: AGPL-3 .0-or-later
2- # Justfile - hyperpolymath standard task runner
1+ # SPDX-License-Identifier: PMPL-1 .0-or-later
2+ # Justfile - IPv6 site enforcer deployment automation
33
44default :
55 @ just --list
66
7- # Build the project
8- build :
9- @ echo " Building..."
7+ # Deploy IPv6 site enforcer to Kubernetes cluster
8+ deploy :
9+ @ echo " Deploying IPv6 site enforcer..."
10+ kubectl apply -f manifests/ namespace.yaml
11+ kubectl apply -f manifests/ configmap.yaml
12+ kubectl apply -f manifests/ deployment.yaml
13+ kubectl apply -f manifests/ service.yaml
14+ kubectl apply -f manifests/ networkpolicy.yaml
15+ @ echo " IPv6 site enforcer deployed"
16+ @ just status
1017
11- # Run tests
12- test :
13- @ echo " Testing..."
18+ # Remove IPv6 site enforcer from cluster
19+ undeploy :
20+ @ echo " Removing IPv6 site enforcer..."
21+ kubectl delete -f manifests/ --ignore-not-found=true
22+ @ echo " Cleanup complete"
23+
24+ # Show deployment status
25+ status :
26+ @ echo " === IPv6 Site Enforcer Status ==="
27+ @ kubectl -n ipv6-enforcer get all 2 >/ dev/ null || echo " Not deployed yet"
28+
29+ # Watch pod logs
30+ logs :
31+ kubectl -n ipv6-enforcer logs -f deployment/ ipv6-site-enforcer --all-containers=true
32+
33+ # Validate manifests
34+ validate :
35+ @ echo " Validating Kubernetes manifests..."
36+ @ for file in manifests/ *.yaml; do \
37+ echo " Checking $$file..." ; \
38+ kubectl apply --dry-run=client -f $$file > / dev/ null; \
39+ done
40+ @ echo " All manifests valid"
1441
15- # Run lints
42+ # Test DNS64 resolution
43+ test-dns64 DOMAIN = " example.com":
44+ @ echo " Testing DNS64 resolution for {{ DOMAIN}} ..."
45+ kubectl -n ipv6-enforcer exec deployment/ ipv6-site-enforcer -c unbound-dns64 -- \
46+ dig AAAA {{ DOMAIN}} @127.0.0.1
47+
48+ # Run lint checks
1649lint :
1750 @ echo " Linting..."
1851
52+ # Run tests
53+ test :
54+ @ echo " Testing..."
55+
1956# Clean build artifacts
2057clean :
21- @ echo " Cleaning..."
58+ @ just undeploy
2259
2360# Format code
2461fmt :
@@ -30,4 +67,3 @@ check: lint test
3067# Prepare a release
3168release VERSION :
3269 @ echo " Releasing {{ VERSION}} ..."
33-
0 commit comments