This commit is contained in:
2025-12-11 04:39:25 -05:00
parent c2942cd7fc
commit 2d58744254
4 changed files with 58 additions and 12 deletions

View File

@@ -23,7 +23,12 @@ certs:
# Deploy to Kubernetes
deploy:
kubectl apply -f deploy.yaml
@if [ ! -f .ca-bundle.txt ]; then \
echo "Error: .ca-bundle.txt not found. Run 'make certs' first."; \
exit 1; \
fi
@CA_BUNDLE=$$(cat .ca-bundle.txt) && \
sed "s|CA_BUNDLE_PLACEHOLDER|$$CA_BUNDLE|g" deploy.yaml | kubectl apply -f -
# Undeploy from Kubernetes
undeploy:
@@ -111,4 +116,4 @@ help:
@echo " status - Check webhook status"
@echo " clean - Remove all resources"
@echo " restart - Restart webhook deployment"
@echo " help - Show this help"
@echo " help - Show this help"