Skip to content

Commit 49982f9

Browse files
dhaiducekopenshift-merge-bot[bot]
authored andcommitted
Remove leading newline from CRD
The leading newline is no longer a thing. Signed-off-by: Dale Haiducek <19750917+dhaiducek@users.noreply.github.com>
1 parent 75d4e2f commit 49982f9

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Makefile

+1-2
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ run:
120120
manifests: kustomize controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
121121
$(CONTROLLER_GEN) crd rbac:roleName=governance-policy-propagator paths="./..." output:crd:artifacts:config=deploy/crds output:rbac:artifacts:config=deploy/rbac
122122
mv deploy/crds/policy.open-cluster-management.io_policies.yaml deploy/crds/kustomize/policy.open-cluster-management.io_policies.yaml
123-
# Add a newline so that the format matches what kubebuilder generates
124-
@printf "\n---\n" > deploy/crds/policy.open-cluster-management.io_policies.yaml
123+
@printf -- "---\n" > deploy/crds/policy.open-cluster-management.io_policies.yaml
125124
$(KUSTOMIZE) build deploy/crds/kustomize >> deploy/crds/policy.open-cluster-management.io_policies.yaml
126125

127126
.PHONY: generate

deploy/crds/policy.open-cluster-management.io_policies.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
---
32
apiVersion: apiextensions.k8s.io/v1
43
kind: CustomResourceDefinition

0 commit comments

Comments
 (0)