Skip to content

Commit 626a159

Browse files
authored
Modify undeploy command to include timeout
Add timeout to undeploy command to prevent hanging.
1 parent 16872a9 commit 626a159

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ deploy: manifests kustomize jq ## Deploy controller to the K8s cluster specified
322322

323323
.PHONY: undeploy
324324
undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
325-
$(KUSTOMIZE) build config/default | $(KUBECTL) delete --ignore-not-found=$(ignore-not-found) -f -
325+
@timeout 120s sh -c '$(KUSTOMIZE) build config/default | $(KUBECTL) delete --ignore-not-found=$(ignore-not-found) -f -' || true
326326

327327
##@ Build Dependencies
328328

0 commit comments

Comments
 (0)