@@ -210,10 +210,6 @@ kind-deploy:
210210 @echo "📄 Adding localhost entries for ingress hosts..."
211211 @grep -qxF "127.0.0.1 aggregator.local" /etc/hosts || sudo -- sh -c "echo '127.0.0.1 aggregator.local' >> /etc/hosts"
212212 @grep -qxF "127.0.0.1 wsl.local" /etc/hosts || sudo -- sh -c "echo '127.0.0.1 wsl.local' >> /etc/hosts"
213- @if [ -f /mnt/c/Windows/System32/drivers/etc/hosts ]; then \
214- echo "📄 Detected Windows hosts file, adding ingress host entries..."; \
215- grep -qxF "127.0.0.1 aggregator.local" /mnt/c/Windows/System32/drivers/etc/hosts || sudo -- sh -c "echo '127.0.0.1 aggregator.local' >> /mnt/c/Windows/System32/drivers/etc/hosts"; \
216- fi
217213
218214 @echo "📄 Applying ingress-uma..."
219215 @kubectl apply -f k8s/app/ingress-uma.yaml
@@ -257,9 +253,6 @@ kind-undeploy:
257253 @echo " 🧹 Removing localhost entries..."
258254 @sudo sed -i.bak ' /aggregator\.local/d' /etc/hosts || true
259255 @sudo sed -i.bak ' /wsl\.local/d' /etc/hosts || true
260- @if [ -f /mnt/c/Windows/System32/drivers/etc/hosts ]; then \
261- sudo sed -i.bak ' /aggregator\.local/d' /mnt/c/Windows/System32/drivers/etc/hosts || true ; \
262- fi
263256 @echo " ✅ Deployment stopped (Traefik and cleaner still running)"
264257
265258kind-stop-traefik :
@@ -292,9 +285,6 @@ kind-clean:
292285 @echo " 🧹 Removing localhost entries..."
293286 @sudo sed -i.bak ' /aggregator\.local/d' /etc/hosts || true
294287 @sudo sed -i.bak ' /wsl\.local/d' /etc/hosts || true
295- @if [ -f /mnt/c/Windows/System32/drivers/etc/hosts ]; then \
296- sudo sed -i.bak ' /aggregator\.local/d' /mnt/c/Windows/System32/drivers/etc/hosts || true ; \
297- fi
298288 @echo " 🗑️ Removing generated key files..."
299289 @rm -f private_key.pem
300290 @echo " ✅ Cleanup complete"
0 commit comments