From cff0e04e3cefbe255a2ad1e92d1862206587cd3c Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Tue, 12 Oct 2021 13:36:41 +0200 Subject: [PATCH] build: remove unneeded empty YAML document from deployment artifacts The generated files under the deploy/ directory contain an empty YAML document that may cause confusion for some versions of kubectl. Dropping the unneeded `---` start of the file for the header should make parsing of the deployment artifacts a little less error prone. Signed-off-by: Niels de Vos --- deploy/rbd/kubernetes/csi-config-map.yaml | 1 - deploy/rbd/kubernetes/csidriver.yaml | 1 - deploy/scc.yaml | 1 - tools/yamlgen/main.go | 3 +-- 4 files changed, 1 insertion(+), 5 deletions(-) diff --git a/deploy/rbd/kubernetes/csi-config-map.yaml b/deploy/rbd/kubernetes/csi-config-map.yaml index a358a16cc..44ef712a4 100644 --- a/deploy/rbd/kubernetes/csi-config-map.yaml +++ b/deploy/rbd/kubernetes/csi-config-map.yaml @@ -1,4 +1,3 @@ ---- # # /!\ DO NOT MODIFY THIS FILE # diff --git a/deploy/rbd/kubernetes/csidriver.yaml b/deploy/rbd/kubernetes/csidriver.yaml index ef0eb1390..1ece4e96e 100644 --- a/deploy/rbd/kubernetes/csidriver.yaml +++ b/deploy/rbd/kubernetes/csidriver.yaml @@ -1,4 +1,3 @@ ---- # # /!\ DO NOT MODIFY THIS FILE # diff --git a/deploy/scc.yaml b/deploy/scc.yaml index 37730959a..36c1973a7 100644 --- a/deploy/scc.yaml +++ b/deploy/scc.yaml @@ -1,4 +1,3 @@ ---- # # /!\ DO NOT MODIFY THIS FILE # diff --git a/tools/yamlgen/main.go b/tools/yamlgen/main.go index d90655919..eb255c2f6 100644 --- a/tools/yamlgen/main.go +++ b/tools/yamlgen/main.go @@ -25,8 +25,7 @@ import ( "github.com/ceph/ceph-csi/api/deploy/ocp" ) -const header = `--- -# +const header = `# # /!\ DO NOT MODIFY THIS FILE # # This file has been automatically generated by Ceph-CSI yamlgen.