Skip to content

Commit

Permalink
clean content of dist/install.yaml before update
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas016 committed Jan 31, 2024
1 parent ba4754d commit f2e7c2c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,11 @@ docker-buildx: ## Build and push docker image for the manager for cross-platform
.PHONY: build-installer
build-installer: manifests generate kustomize ## Generate a consolidated YAML with CRDs and deployment.
mkdir -p dist
echo "---" > dist/install.yaml # Clean previous content
@if [ -d "config/crd" ]; then \
$(KUSTOMIZE) build config/crd > dist/install.yaml; \
echo "---" >> dist/install.yaml # Add a document separator before appending
fi
echo "---" >> dist/install.yaml # Add a document separator before appending
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
$(KUSTOMIZE) build config/default >> dist/install.yaml
Expand Down

0 comments on commit f2e7c2c

Please sign in to comment.