-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (22 loc) · 696 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (22 loc) · 696 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Basic Makefile for NamespaceCleaner CRD
.PHONY: install-kind apply-crd apply-cr setup clean
# Install kind cluster
install-kind:
@echo "Creating kind cluster..."
kind create cluster --name namespacecleaner-demo
# Apply the CRD
apply-crd:
@echo "Applying CRD..."
kubectl apply -f config/crd/namespacecleaners.yaml
# Apply the Custom Resource
apply-cr:
@echo "Applying Custom Resource..."
kubectl apply -f example-namespacecleaner.yaml
# Full setup: install kind + apply CRD + apply CR
setup: install-kind apply-crd apply-cr
@echo "Setup complete!"
@kubectl get namespacecleaners
# Clean up
clean:
@echo "Deleting kind cluster..."
kind delete cluster --name namespacecleaner-demo