Skip to content

Commit a6457af

Browse files
committed
Add PACKER_DEBUG variable to makefile for convenience
1 parent 2803015 commit a6457af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ validate: ## Validate packer config
9292
.PHONY: k8s
9393
k8s: validate ## Build default K8s version of EKS Optimized AMI
9494
@echo "Building AMI [os_distro=$(os_distro) kubernetes_version=$(kubernetes_version) arch=$(arch)]"
95-
$(PACKER_BINARY) build -timestamp-ui -color=false $(PACKER_ARGS) $(PACKER_TEMPLATE_FILE)
95+
$(PACKER_BINARY) build -timestamp-ui -color=false $(PACKER_ARGS)$(if $(PACKER_DEBUG),-debug) $(PACKER_TEMPLATE_FILE)
9696

9797
# DEPRECATION NOTICE: `make` targets for each Kubernetes minor version will not be added after 1.28
9898
# Use the `k8s` variable to specify a minor version instead

0 commit comments

Comments
 (0)