Skip to content

Commit 1f5ed3a

Browse files
committed
Switch from kustomize to kubectl kustomize
1 parent 614c1a3 commit 1f5ed3a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,21 +54,21 @@ run: generate fmt vet manifests install-configmap-sidecars install-crd-cwnp
5454

5555
# Install CRDs into a cluster
5656
install: manifests
57-
kustomize build config/crd | kubectl --kubeconfig kubeconfig apply -f -
57+
kubectl kustomize config/crd | kubectl --kubeconfig kubeconfig apply -f -
5858

5959
# Uninstall CRDs from a cluster
6060
uninstall: manifests
61-
kustomize build config/crd | kubectl --kubeconfig kubeconfig delete -f -
61+
kubectl kustomize config/crd | kubectl --kubeconfig kubeconfig delete -f -
6262

6363
# Deploy controller in the configured Kubernetes cluster in ~/.kube/config
6464
deploy: install-crd-cwnp manifests secret kind-load-image
65-
cd config/manager && kustomize edit set image controller=${IMG}:${VERSION}
66-
kustomize build config/default | kubectl apply -f -
65+
cd config/manager && kubectl kustomize edit set image controller=${IMG}:${VERSION}
66+
kubectl kustomize config/default | kubectl apply -f -
6767

6868
# clean up deployed resources in the configured Kubernetes cluster in ~/.kube/config
6969
cleanup: manifests
70-
cd config/manager && kustomize edit set image controller=${IMG}:${VERSION}
71-
kustomize build config/default | kubectl delete -f -
70+
cd config/manager && kubectl kustomize edit set image controller=${IMG}:${VERSION}
71+
kubectl kustomize config/default | kubectl delete -f -
7272

7373
# Generate manifests e.g. CRD, RBAC etc.
7474
manifests: controller-gen

0 commit comments

Comments
 (0)