Skip to content

Commit 3582cd3

Browse files
committed
clean content of dist/install.yaml before update
1 parent ba4754d commit 3582cd3

File tree

8 files changed

+16
-8
lines changed

8 files changed

+16
-8
lines changed

docs/book/src/component-config-tutorial/testdata/project/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,11 @@ docker-buildx: ## Build and push docker image for the manager for cross-platform
118118
.PHONY: build-installer
119119
build-installer: manifests generate kustomize ## Generate a consolidated YAML with CRDs and deployment.
120120
mkdir -p dist
121+
echo "---" > dist/install.yaml # Clean previous content
121122
@if [ -d "config/crd" ]; then \
122123
$(KUSTOMIZE) build config/crd > dist/install.yaml; \
124+
echo "---" >> dist/install.yaml; \
123125
fi
124-
echo "---" >> dist/install.yaml # Add a document separator before appending
125126
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
126127
$(KUSTOMIZE) build config/default >> dist/install.yaml
127128

docs/book/src/cronjob-tutorial/testdata/project/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,11 @@ docker-buildx: ## Build and push docker image for the manager for cross-platform
118118
.PHONY: build-installer
119119
build-installer: manifests generate kustomize ## Generate a consolidated YAML with CRDs and deployment.
120120
mkdir -p dist
121+
echo "---" > dist/install.yaml # Clean previous content
121122
@if [ -d "config/crd" ]; then \
122123
$(KUSTOMIZE) build config/crd > dist/install.yaml; \
124+
echo "---" >> dist/install.yaml; \
123125
fi
124-
echo "---" >> dist/install.yaml # Add a document separator before appending
125126
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
126127
$(KUSTOMIZE) build config/default >> dist/install.yaml
127128

pkg/plugins/golang/v4/scaffolds/internal/templates/makefile.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,11 @@ docker-buildx: ## Build and push docker image for the manager for cross-platform
192192
.PHONY: build-installer
193193
build-installer: manifests generate kustomize ## Generate a consolidated YAML with CRDs and deployment.
194194
mkdir -p dist
195+
echo "---" > dist/install.yaml # Clean previous content
195196
@if [ -d "config/crd" ]; then \
196197
$(KUSTOMIZE) build config/crd > dist/install.yaml; \
198+
echo "---" >> dist/install.yaml; \
197199
fi
198-
echo "---" >> dist/install.yaml # Add a document separator before appending
199200
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
200201
$(KUSTOMIZE) build config/default >> dist/install.yaml
201202

testdata/project-v4-multigroup-with-deploy-image/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,11 @@ docker-buildx: ## Build and push docker image for the manager for cross-platform
118118
.PHONY: build-installer
119119
build-installer: manifests generate kustomize ## Generate a consolidated YAML with CRDs and deployment.
120120
mkdir -p dist
121+
echo "---" > dist/install.yaml # Clean previous content
121122
@if [ -d "config/crd" ]; then \
122123
$(KUSTOMIZE) build config/crd > dist/install.yaml; \
124+
echo "---" >> dist/install.yaml; \
123125
fi
124-
echo "---" >> dist/install.yaml # Add a document separator before appending
125126
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
126127
$(KUSTOMIZE) build config/default >> dist/install.yaml
127128

testdata/project-v4-multigroup/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,11 @@ docker-buildx: ## Build and push docker image for the manager for cross-platform
118118
.PHONY: build-installer
119119
build-installer: manifests generate kustomize ## Generate a consolidated YAML with CRDs and deployment.
120120
mkdir -p dist
121+
echo "---" > dist/install.yaml # Clean previous content
121122
@if [ -d "config/crd" ]; then \
122123
$(KUSTOMIZE) build config/crd > dist/install.yaml; \
124+
echo "---" >> dist/install.yaml; \
123125
fi
124-
echo "---" >> dist/install.yaml # Add a document separator before appending
125126
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
126127
$(KUSTOMIZE) build config/default >> dist/install.yaml
127128

testdata/project-v4-with-deploy-image/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,11 @@ docker-buildx: ## Build and push docker image for the manager for cross-platform
118118
.PHONY: build-installer
119119
build-installer: manifests generate kustomize ## Generate a consolidated YAML with CRDs and deployment.
120120
mkdir -p dist
121+
echo "---" > dist/install.yaml # Clean previous content
121122
@if [ -d "config/crd" ]; then \
122123
$(KUSTOMIZE) build config/crd > dist/install.yaml; \
124+
echo "---" >> dist/install.yaml; \
123125
fi
124-
echo "---" >> dist/install.yaml # Add a document separator before appending
125126
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
126127
$(KUSTOMIZE) build config/default >> dist/install.yaml
127128

testdata/project-v4-with-grafana/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,11 @@ docker-buildx: ## Build and push docker image for the manager for cross-platform
118118
.PHONY: build-installer
119119
build-installer: manifests generate kustomize ## Generate a consolidated YAML with CRDs and deployment.
120120
mkdir -p dist
121+
echo "---" > dist/install.yaml # Clean previous content
121122
@if [ -d "config/crd" ]; then \
122123
$(KUSTOMIZE) build config/crd > dist/install.yaml; \
124+
echo "---" >> dist/install.yaml; \
123125
fi
124-
echo "---" >> dist/install.yaml # Add a document separator before appending
125126
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
126127
$(KUSTOMIZE) build config/default >> dist/install.yaml
127128

testdata/project-v4/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,11 @@ docker-buildx: ## Build and push docker image for the manager for cross-platform
118118
.PHONY: build-installer
119119
build-installer: manifests generate kustomize ## Generate a consolidated YAML with CRDs and deployment.
120120
mkdir -p dist
121+
echo "---" > dist/install.yaml # Clean previous content
121122
@if [ -d "config/crd" ]; then \
122123
$(KUSTOMIZE) build config/crd > dist/install.yaml; \
124+
echo "---" >> dist/install.yaml; \
123125
fi
124-
echo "---" >> dist/install.yaml # Add a document separator before appending
125126
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
126127
$(KUSTOMIZE) build config/default >> dist/install.yaml
127128

0 commit comments

Comments
 (0)