tweax
This commit is contained in:
9
Makefile
9
Makefile
@@ -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"
|
||||
Reference in New Issue
Block a user