You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by as...@apache.org on 2021/02/16 09:25:26 UTC

[camel-k] branch master updated: chore(cli): Exclude manifests directory from embedded resources

This is an automated email from the ASF dual-hosted git repository.

astefanutti pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/master by this push:
     new 57b7622  chore(cli): Exclude manifests directory from embedded resources
57b7622 is described below

commit 57b76227bbb8a410442e19c61fb15f4b65f22a3d
Author: Antonin Stefanutti <an...@stefanutti.fr>
AuthorDate: Mon Feb 15 11:53:05 2021 +0100

    chore(cli): Exclude manifests directory from embedded resources
---
 config/manifests/.vfsignore |  1 +
 pkg/resources/resources.go  | 22 ----------------------
 2 files changed, 1 insertion(+), 22 deletions(-)

diff --git a/config/manifests/.vfsignore b/config/manifests/.vfsignore
new file mode 100644
index 0000000..bee78e6
--- /dev/null
+++ b/config/manifests/.vfsignore
@@ -0,0 +1 @@
+# This dir and subdirs are not included in VFS
diff --git a/pkg/resources/resources.go b/pkg/resources/resources.go
index 211e6b7..08860be 100644
--- a/pkg/resources/resources.go
+++ b/pkg/resources/resources.go
@@ -153,21 +153,6 @@ var assets = func() http.FileSystem {
 
 			compressedContent: []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xac\x53\x4d\x6f\x9b\x40\x14\xbc\xef\xaf\x18\x99\x4b\x22\xf9\xa3\xed\xd1\x3d\xd1\xc4\x56\x51\x23\x5b\x0a\x4e\xa3\x1c\x9f\xe1\x19\x9e\x02\xfb\xe8\xee\x12\xe2\x7f\x5f\x2d\xb6\x9b\x44\xbd\x66\x6f\x88\x61\x3e\x76\x86\x04\xb3\xcf\x3b\x26\xc1\x9d\x14\x6c\x3d\x97\x08\x8a\x50\x33\xd2\x8e\x8a\x9a\x91\xeb\x21\x0c\xe4\x18\x6b\xed\x6d\x49\x41\xd4\xe2\x2a\xcd\xd7\xd7\xe8\x6d\xc9\x0e\x6a\x19\xea\xd0\xaa\x63\x93\xa0\x50\x1b\x9c\xec\x [...]
 		},
-		"/manifests": &vfsgen۰DirInfo{
-			name:    "manifests",
-			modTime: time.Time{},
-		},
-		"/manifests/bases": &vfsgen۰DirInfo{
-			name:    "bases",
-			modTime: time.Time{},
-		},
-		"/manifests/bases/camel-k.clusterserviceversion.yaml": &vfsgen۰CompressedFileInfo{
-			name:             "camel-k.clusterserviceversion.yaml",
-			modTime:          time.Time{},
-			uncompressedSize: 7818,
-
-			compressedContent: []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x59\x6d\x73\xa3\xb8\x96\xfe\xee\x5f\xa1\x4d\xaa\xf6\x76\xd7\x74\x1c\x6c\xe3\xa9\xb1\xa7\xa6\xf6\x12\xe3\x38\x4a\x90\x88\x03\x4e\xda\xde\xda\xda\x91\x41\xc1\xc2\x80\x58\x10\xc6\x70\xf7\xfe\xf7\x2d\x09\x9c\xb6\xd3\x49\x77\xcf\x6e\x2f\x5f\x62\xd0\x79\x79\xce\x39\xcf\x39\x48\xe4\x1c\x5c\xfc\xbc\xab\x73\x0e\x2c\xe6\xd1\x24\xa7\x3e\x10\x1c\x88\x0d\x05\x46\x4a\xbc\x0d\x05\x0e\x7f\x16\x25\xc9\x28\xb8\xe6\x45\xe2\x13\xc1\x [...]
-		},
 		"/prometheus": &vfsgen۰DirInfo{
 			name:    "prometheus",
 			modTime: time.Time{},
@@ -493,7 +478,6 @@ var assets = func() http.FileSystem {
 		fs["/crd"].(os.FileInfo),
 		fs["/default"].(os.FileInfo),
 		fs["/manager"].(os.FileInfo),
-		fs["/manifests"].(os.FileInfo),
 		fs["/prometheus"].(os.FileInfo),
 		fs["/rbac"].(os.FileInfo),
 		fs["/samples"].(os.FileInfo),
@@ -526,12 +510,6 @@ var assets = func() http.FileSystem {
 		fs["/manager/operator-deployment.yaml"].(os.FileInfo),
 		fs["/manager/operator-service-account.yaml"].(os.FileInfo),
 	}
-	fs["/manifests"].(*vfsgen۰DirInfo).entries = []os.FileInfo{
-		fs["/manifests/bases"].(os.FileInfo),
-	}
-	fs["/manifests/bases"].(*vfsgen۰DirInfo).entries = []os.FileInfo{
-		fs["/manifests/bases/camel-k.clusterserviceversion.yaml"].(os.FileInfo),
-	}
 	fs["/prometheus"].(*vfsgen۰DirInfo).entries = []os.FileInfo{
 		fs["/prometheus/operator-pod-monitor.yaml"].(os.FileInfo),
 		fs["/prometheus/operator-prometheus-rule.yaml"].(os.FileInfo),