@@ -154,25 +154,25 @@ snapshot:
154154# #@ Deployment
155155
156156.PHONY : install
157- install : generated kustomize # # Install CRDs into the K8s cluster specified in ~/.kube/config.
157+ install : generated # # Install CRDs into the K8s cluster specified in ~/.kube/config.
158158 @echo " ==> $@ "
159- @$( KUSTOMIZE ) build config/crd | kubectl apply -f -
159+ @kustomize build config/crd | kubectl apply -f -
160160
161161.PHONY : uninstall
162- uninstall : generated kustomize # # Uninstall CRDs from the K8s cluster specified in ~/.kube/config.
162+ uninstall : generated # # Uninstall CRDs from the K8s cluster specified in ~/.kube/config.
163163 @echo " ==> $@ "
164- @$( KUSTOMIZE ) build config/crd | kubectl delete -f -
164+ @kustomize build config/crd | kubectl delete -f -
165165
166166.PHONY : deploy
167- deploy : generated kustomize # # Deploy controller to the K8s cluster specified in ~/.kube/config.
167+ deploy : generated # # Deploy controller to the K8s cluster specified in ~/.kube/config.
168168 @echo " ==> $@ "
169- @cd config/manager && $( KUSTOMIZE ) edit set image controller=${IMG}
170- @$( KUSTOMIZE ) build config/default | kubectl apply -f -
169+ @cd config/manager && kustomize edit set image controller=${IMG}
170+ @kustomize build config/default | kubectl apply -f -
171171
172172.PHONY : undeploy
173173undeploy : # # Undeploy controller from the K8s cluster specified in ~/.kube/config.
174174 @echo " ==> $@ "
175- @$( KUSTOMIZE ) build config/default | kubectl delete -f -
175+ @kustomize build config/default | kubectl delete -f -
176176
177177# # Location to install dependencies to
178178LOCALBIN ?= $(shell pwd) /bin
@@ -190,23 +190,10 @@ clean:
190190 @chmod -Rf u+w internal/ui || true
191191 @rm -rf internal/ui
192192
193- KUSTOMIZE ?= $(LOCALBIN ) /kustomize
194-
195-
196- KUSTOMIZE_INSTALL_SCRIPT ?= "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"
197- .PHONY : kustomize
198- kustomize : $(KUSTOMIZE ) # # Download kustomize locally if necessary.
199- @echo " ==> $@ "
200-
201- $(KUSTOMIZE ) : $(LOCALBIN )
202- @echo " ==> $@ "
203- @rm -rf $(KUSTOMIZE )
204- @curl -s $(KUSTOMIZE_INSTALL_SCRIPT ) | bash -s -- $(subst v,,$(KUSTOMIZE_VERSION ) ) $(LOCALBIN )
205-
206193.PHONY : deployment
207- deployment : kustomize
194+ deployment :
208195 @echo " ==> $@ "
209- @$( KUSTOMIZE ) build config/default > deployment.yaml
196+ @kustomize build config/default > deployment.yaml
210197
211198.PHONY : docs
212199docs : generated
@@ -225,7 +212,7 @@ dev-install:
225212 @echo " deleting pods..."
226213 # @kubectl delete --force --selector app.kubernetes.io/name=pomerium pods || true
227214 @kubectl delete deployment/pomerium -n pomerium --wait || true
228- @$( KUSTOMIZE ) build config/dev/local --load-restrictor LoadRestrictionsNone | kubectl apply --filename -
215+ @kustomize build config/dev/local --load-restrictor LoadRestrictionsNone | kubectl apply --filename -
229216
230217.PHONY : dev-logs
231218dev-logs :
@@ -234,7 +221,7 @@ dev-logs:
234221.PHONY : dev-gen-secrets
235222dev-gen-secrets :
236223 @echo " ==> $@ "
237- @$( KUSTOMIZE ) build config/dev/gen_secrets | kubectl apply --filename -
224+ @kustomize build config/dev/gen_secrets | kubectl apply --filename -
238225
239226.PHONY : dev-build
240227dev-build :
0 commit comments